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 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); }
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, Consumer<Class<? extends Service>> addPrivilegedService, ServiceMetadata[] servicesMetadata) { PhotonModelUtils.waitToComplete(startServices(host, addPrivilegedService, 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 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); } setFactoryToAvailable(host, ResourceMetricsService.FACTORY_LINK); }