Search in sources :

Example 1 with TaskFactoryService

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

Example 2 with TaskFactoryService

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

Example 3 with TaskFactoryService

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

Example 4 with TaskFactoryService

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

Example 5 with TaskFactoryService

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

Aggregations

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