Search in sources :

Example 1 with GCPEnumerationAdapterService

use of com.vmware.photon.controller.model.adapters.gcp.enumeration.GCPEnumerationAdapterService in project photon-model by vmware.

the class GCPAdapters method startServices.

/**
 * The helper function to start all GCP adapter services.
 * @param host The host service.
 * @throws Throwable Exceptions during provisioning gcp adapters.
 */
public static void startServices(ServiceHost host) throws Throwable {
    try {
        host.startService(new GCPEnumerationAdapterService());
        host.startService(new GCPStatsService());
    } catch (Exception e) {
        host.log(Level.WARNING, "Exception staring provisioning gcp adapters: %s", Utils.toString(e));
    }
}
Also used : GCPStatsService(com.vmware.photon.controller.model.adapters.gcp.stats.GCPStatsService) GCPEnumerationAdapterService(com.vmware.photon.controller.model.adapters.gcp.enumeration.GCPEnumerationAdapterService)

Aggregations

GCPEnumerationAdapterService (com.vmware.photon.controller.model.adapters.gcp.enumeration.GCPEnumerationAdapterService)1 GCPStatsService (com.vmware.photon.controller.model.adapters.gcp.stats.GCPStatsService)1