Package com.emc.storageos.model

Examples of com.emc.storageos.model.TaskList


     * @param id
     *        the ID of the resource.
     * @return the tasks associated with the resource.
     */
    protected Tasks<T> doGetTasks(URI id) {
        TaskList response = client.get(TaskList.class, getIdUrl() + "/tasks", id);
        return new Tasks<T>(client, response.getTaskList(), resourceClass);
    }
View Full Code Here


     * @param args
     *        the path arguments.
     * @return the tasks object.
     */
    protected Tasks<T> postTasks(String path, Object... args) {
        TaskList tasks = client.post(TaskList.class, path, args);
        return new Tasks<T>(client, tasks.getTaskList(), resourceClass);
    }
View Full Code Here

     * @param args
     *        the path arguments.
     * @return the tasks object.
     */
    protected Tasks<T> postTasks(Object request, String path, Object... args) {
        TaskList tasks = client.post(TaskList.class, request, path, args);
        return new Tasks<T>(client, tasks.getTaskList(), resourceClass);
    }
View Full Code Here

     * @param uri
     *        the URI to post to.
     * @return the tasks object.
     */
    protected Tasks<T> postTasksURI(Object request, URI uri) {
        TaskList tasks = client.postURI(TaskList.class, request, uri);
        return new Tasks<T>(client, tasks.getTaskList(), resourceClass);
    }
View Full Code Here

     *
     * @param create Create parameters.
     * @return List of Tasks for monitoring progress of the operation.
     */
    public Tasks<DataStoreRestRep> createOnCommodity(CommodityDataStoreParam create) {
        TaskList tasks = client.post(TaskList.class, create, DATA_STORES_URL + COMMODITY_PATH);
        return new Tasks<DataStoreRestRep>(client, tasks.getTaskList(), DataStoreRestRep.class);
      
    }
View Full Code Here

     * @param id
     *        the ID of the resource.
     * @return the tasks associated with the resource.
     */
    protected Tasks<T> doGetTasks(URI id) {
        TaskList response = client.get(TaskList.class, getIdUrl() + "/tasks", id);
        return new Tasks<T>(client, response.getTaskList(), resourceClass);
    }
View Full Code Here

     * @param args
     *        the path arguments.
     * @return the tasks object.
     */
    protected Tasks<T> postTasks(String path, Object... args) {
        TaskList tasks = client.post(TaskList.class, path, args);
        return new Tasks<T>(client, tasks.getTaskList(), resourceClass);
    }
View Full Code Here

     * @param args
     *        the path arguments.
     * @return the tasks object.
     */
    protected Tasks<T> postTasks(Object request, String path, Object... args) {
        TaskList tasks = client.post(TaskList.class, request, path, args);
        return new Tasks<T>(client, tasks.getTaskList(), resourceClass);
    }
View Full Code Here

     * @param uri
     *        the URI to post to.
     * @return the tasks object.
     */
    protected Tasks<T> postTasksURI(Object request, URI uri) {
        TaskList tasks = client.postURI(TaskList.class, request, uri);
        return new Tasks<T>(client, tasks.getTaskList(), resourceClass);
    }
View Full Code Here

     *
     * @see com.emc.storageos.model.block.VolumeDeleteTypeEnum
     */
    public Tasks<VolumeRestRep> deactivate(List<URI> ids, VolumeDeleteTypeEnum deletionType) {
        URI uri = client.uriBuilder(baseUrl + "/deactivate").queryParam("type", deletionType).build();
        TaskList tasks = client.postURI(TaskList.class, new BulkDeleteParam(ids), uri);
        return new Tasks<>(client, tasks.getTaskList(), resourceClass);
    }
View Full Code Here

TOP

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

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.