Search in sources :

Example 6 with TaskFactoryService

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;
}
Also used : TaskFactoryService(com.vmware.xenon.services.common.TaskFactoryService)

Example 7 with TaskFactoryService

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;
}
Also used : TaskFactoryService(com.vmware.xenon.services.common.TaskFactoryService)

Example 8 with TaskFactoryService

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;
}
Also used : TaskFactoryService(com.vmware.xenon.services.common.TaskFactoryService)

Aggregations

TaskFactoryService (com.vmware.xenon.services.common.TaskFactoryService)8