org.duracloud.client.exec
Class ExecutorImpl

java.lang.Object
  extended by org.duracloud.client.exec.ExecutorImpl
All Implemented Interfaces:
org.duracloud.exec.Executor

public class ExecutorImpl
extends Object
implements org.duracloud.exec.Executor

Allows for communication with Duraboss executor


Constructor Summary
ExecutorImpl(String host, String port, org.duracloud.common.model.Credential credential)
           
ExecutorImpl(String host, String port, org.duracloud.common.web.RestHttpHelper restHelper)
           
ExecutorImpl(String host, String port, String context, org.duracloud.common.model.Credential credential)
           
ExecutorImpl(String host, String port, String context, org.duracloud.common.web.RestHttpHelper restHelper)
           
 
Method Summary
protected  void checkResponse(org.duracloud.common.web.RestHttpHelper.HttpResponse response, int expectedCode)
           
 Map<String,String> getStatus()
           
 Set<String> getSupportedActions()
           
 void performAction(String actionName, String actionParameters)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorImpl

public ExecutorImpl(String host,
                    String port,
                    org.duracloud.common.model.Credential credential)

ExecutorImpl

public ExecutorImpl(String host,
                    String port,
                    org.duracloud.common.web.RestHttpHelper restHelper)

ExecutorImpl

public ExecutorImpl(String host,
                    String port,
                    String context,
                    org.duracloud.common.model.Credential credential)

ExecutorImpl

public ExecutorImpl(String host,
                    String port,
                    String context,
                    org.duracloud.common.web.RestHttpHelper restHelper)
Method Detail

getSupportedActions

public Set<String> getSupportedActions()
Specified by:
getSupportedActions in interface org.duracloud.exec.Executor

performAction

public void performAction(String actionName,
                          String actionParameters)
                   throws org.duracloud.exec.error.InvalidActionRequestException
Specified by:
performAction in interface org.duracloud.exec.Executor
Throws:
org.duracloud.exec.error.InvalidActionRequestException

getStatus

public Map<String,String> getStatus()
Specified by:
getStatus in interface org.duracloud.exec.Executor

stop

public void stop()
Specified by:
stop in interface org.duracloud.exec.Executor

checkResponse

protected void checkResponse(org.duracloud.common.web.RestHttpHelper.HttpResponse response,
                             int expectedCode)
                      throws org.duracloud.exec.error.ExecutorException,
                             org.duracloud.exec.error.InvalidActionRequestException
Throws:
org.duracloud.exec.error.ExecutorException
org.duracloud.exec.error.InvalidActionRequestException


Copyright © 2009-2012 DuraSpace. All Rights Reserved.