use of com.vmware.xenon.services.common.TaskFactoryService in project photon-model by vmware.
the class ResourceGroomerTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(EndpointResourceDeletionRequest.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new ResourceGroomerTaskService();
}
};
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 TagGroomerTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(TagDeletionRequest.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new TagGroomerTaskService();
}
};
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 SingleResourceStatsCollectionTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(SingleResourceStatsCollectionTaskState.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new SingleResourceStatsCollectionTaskService();
}
};
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 StatsCollectionTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(StatsCollectionTaskState.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new StatsCollectionTaskService();
}
};
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 SingleResourceStatsAggregationTaskService method createFactory.
public static FactoryService createFactory() {
TaskFactoryService fs = new TaskFactoryService(SingleResourceStatsAggregationTaskState.class) {
@Override
public Service createServiceInstance() throws Throwable {
return new SingleResourceStatsAggregationTaskService();
}
};
fs.setPeerNodeSelectorPath(ServiceUriPaths.DEFAULT_1X_NODE_SELECTOR);
return fs;
}
Aggregations