public static void startServices(ServiceHost host, boolean isSynchronousStart) throws Throwable { if (isSynchronousStart) { StartServicesHelper.startServicesSynchronously(host, SERVICES_METADATA); } else { StartServicesHelper.startServices(host, SERVICES_METADATA); } } }
/** * Use this method to start the set of services synchronously. */ public static void startServicesSynchronously( ServiceHost host, ServiceMetadata[] servicesMetadata) { startServicesSynchronously(host, tryAddPrivilegedService(host), servicesMetadata); }
/** * Use this method to start the set of services asynchronously. * * @see com.vmware.photon.controller.model.PhotonModelServices#startServices(ServiceHost) */ public static DeferredResult<Void> startServices(ServiceHost host, ServiceMetadata[] servicesMetadata) { return startServices(host, tryAddPrivilegedService(host), servicesMetadata); }
/** * Use this method to start the set of services synchronously. */ public static void startServicesSynchronously( ServiceHost host, Consumer<Class<? extends Service>> addPrivilegedService, ServiceMetadata[] servicesMetadata) { PhotonModelUtils.waitToComplete(startServices(host, addPrivilegedService, servicesMetadata)); }
/** * Helper method to execute multiple DeferredResult<List<Operation>>'s and return the combined * list of their ops. */ @SafeVarargs public static DeferredResult<List<Operation>> allOf(DeferredResult<List<Operation>> ... drs) { return allOf(Arrays.asList(drs)); }
/** * Use this method to start the set of services asynchronously. * * @see com.vmware.photon.controller.model.PhotonModelServices#startServices(ServiceHost) */ public static void startServices(ServiceHost host, ServiceMetadata[] servicesMetadata) { startServices(host, tryAddPrivilegedService(host), servicesMetadata); }
public static void startServices(ServiceHost host, boolean isSynchronousStart) throws Throwable { if (isSynchronousStart) { StartServicesHelper.startServicesSynchronously(host, SERVICES_METADATA); } else { StartServicesHelper.startServices(host, SERVICES_METADATA); } } }
/** * Use this method to start the set of services synchronously. */ public static void startServicesSynchronously( ServiceHost host, ServiceMetadata[] servicesMetadata) { startServicesSynchronously(host, tryAddPrivilegedService(host), servicesMetadata); }
public static void startServices(ServiceHost host, boolean isSynchronousStart) throws Throwable { if (isSynchronousStart) { StartServicesHelper.startServicesSynchronously(host, SERVICES_METADATA); } else { StartServicesHelper.startServices(host, SERVICES_METADATA); } } }
public static void startServices(ServiceHost host, boolean isSynchronousStart) throws Throwable { if (isSynchronousStart) { StartServicesHelper.startServicesSynchronously(host, SERVICES_METADATA); } else { StartServicesHelper.startServices(host, SERVICES_METADATA); } setFactoryToAvailable(host, ResourceMetricsService.FACTORY_LINK); }