Package com.emc.storageos.model

Examples of com.emc.storageos.model.TaskResourceRep


     * @param taskId
     *        the ID of the task to retrieve.
     * @return the task.
     */
    protected Task<T> doGetTask(URI id, URI taskId) {
        TaskResourceRep response = client.get(TaskResourceRep.class, getIdUrl() + "/tasks/{taskId}", id, taskId);
        return new Task<T>(client, response, resourceClass);
    }
View Full Code Here


     * @param args
     *        the path arguments.
     * @return the task object.
     */
    protected Task<T> postTask(String path, Object... args) {
        TaskResourceRep task = client.post(TaskResourceRep.class, path, args);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

     * @param args
     *        the path arguments.
     * @return the task object.
     */
    protected Task<T> postTask(Object request, String path, Object... args) {
        TaskResourceRep task = client.post(TaskResourceRep.class, request, path, args);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

     * @param uri
     *        the URI to post to.
     * @return the task object.
     */
    protected Task<T> postTaskURI(URI uri) {
        TaskResourceRep task = client.postURI(TaskResourceRep.class, uri);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

     * @param uri
     *        the URI to post to.
     * @return the task object.
     */
    protected Task<T> deleteTaskURI(URI uri) {
        TaskResourceRep task = client.deleteURI(TaskResourceRep.class, uri);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

     * @param args
     *        the path arguments.
     * @return the task object.
     */
    protected Task<T> deleteTask(String path, Object... args) {
        TaskResourceRep task = client.delete(TaskResourceRep.class, path, args);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

     * @param uri
     *        the URI to post to.
     * @return the task object.
     */
    protected Task<T> postTaskURI(Object request, URI uri) {
        TaskResourceRep task = client.postURI(TaskResourceRep.class, request, uri);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

     * @param args
     *        the path arguments.
     * @return the task object.
     */
    protected Task<T> putTask(Object request, String path, Object... args) {
        TaskResourceRep task = client.put(TaskResourceRep.class, request, path, args);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

     * @param id
     *        the ID of the data store to deactivate.
     * @return a task for monitoring the progress of the operation.
     */
    public Task<DataStoreRestRep> deactivate(URI id) {
        TaskResourceRep task = client.post(TaskResourceRep.class, DATA_STORES_URL + ID_PATH + DEACTIVATE_PATH, id);
        return new Task<DataStoreRestRep>(client, task, DataStoreRestRep.class);
    }
View Full Code Here

     *
     * @param create Create parameters.
     * @return Task for monitoring progress of the operation.
     */
    public Task<DataStoreRestRep> createOnFileSystem(FileSystemsDataStoreParam create) {
        TaskResourceRep task = client.post(TaskResourceRep.class, create, DATA_STORES_URL + FILESYSTEMS_PATH);
        return new Task<DataStoreRestRep>(client, task, DataStoreRestRep.class);
    }
View Full Code Here

TOP

Related Classes of com.emc.storageos.model.TaskResourceRep

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.