com.ibm.sysmgt.sdk.remote
Class Call

java.lang.Object
  extended bycom.ibm.sysmgt.sdk.remote.Call

public class Call
extends java.lang.Object

Class used for command communication between client and server


Constructor Summary
Call()
          Constructor
Call(LoginSession session)
           
 
Method Summary
 java.lang.String getMethodName()
          getMethodName
 java.util.Vector getParams()
          getParams - get parameters of command object
 LoginSession getSession()
          getSession - get session object of this communication
 java.lang.String getTargetObjectURI()
          getTargetObjectURI - get service name
 int getTimeout()
          getTimeout
 Response invoke()
          invoke - send the command synchronously
 void setMethodName(java.lang.String methodName)
          setMethodName
 void setParam(java.lang.Object object)
          setParam - set parameter for command
 void setParams(java.util.Vector params)
          setParams - set parameters of the command object
 void setSession(LoginSession session)
          setSession - set session object for this communication
 void setTargetObjectURI(java.lang.String targetObjectURI)
          setTargetObjectURI - set service name.
 void setTimeout(int value)
          setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Call

public Call()
Constructor


Call

public Call(LoginSession session)
Parameters:
session -
Method Detail

invoke

public Response invoke()
                throws ServerCommunicationException,
                       RequestFailedException
invoke - send the command synchronously

Throws:
ServerCommunicationException
RequestFailedException

setTimeout

public void setTimeout(int value)
setTimeout

Parameters:
value - of the timeout in milliseconds

getTimeout

public int getTimeout()
getTimeout


setParams

public void setParams(java.util.Vector params)
setParams - set parameters of the command object


getParams

public java.util.Vector getParams()
getParams - get parameters of command object


setTargetObjectURI

public void setTargetObjectURI(java.lang.String targetObjectURI)
setTargetObjectURI - set service name. one of the input parameters of sdk command

Parameters:
targetObjectURI - stringvalue of service name

getTargetObjectURI

public java.lang.String getTargetObjectURI()
getTargetObjectURI - get service name


setMethodName

public void setMethodName(java.lang.String methodName)
setMethodName

Parameters:
methodName - - method to be invoked

getMethodName

public java.lang.String getMethodName()
getMethodName


getSession

public LoginSession getSession()
getSession - get session object of this communication

Returns:
session

setSession

public void setSession(LoginSession session)
setSession - set session object for this communication

Parameters:
session -

setParam

public void setParam(java.lang.Object object)
setParam - set parameter for command

Parameters:
object -