use of com.vmware.xenon.services.common.TaskFactoryService in project photon-model by vmware.
the class StatsAggregationTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(StatsAggregationTaskState.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new StatsAggregationTaskService();
}
};
fs.setPeerNodeSelectorPath(ServiceUriPaths.DEFAULT_1X_NODE_SELECTOR);
return fs;
}
use of com.vmware.xenon.services.common.TaskFactoryService in project photon-model by vmware.
the class ResourceEnumerationTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(ResourceEnumerationTaskState.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new ResourceEnumerationTaskService();
}
};
fs.setPeerNodeSelectorPath(ServiceUriPaths.DEFAULT_1X_NODE_SELECTOR);
return fs;
}
use of com.vmware.xenon.services.common.TaskFactoryService in project photon-model by vmware.
the class ImageEnumerationTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(ImageEnumerationTaskState.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new ImageEnumerationTaskService();
}
};
fs.setPeerNodeSelectorPath(ServiceUriPaths.DEFAULT_1X_NODE_SELECTOR);
return fs;
}
Aggregations