com.tivoli.twg.engine
Class TWGSetAttributeCommand

java.lang.Object
  extended bycom.tivoli.twg.libs.Command
      extended bycom.tivoli.twg.engine.TWGSetAttributeCommand

public class TWGSetAttributeCommand
extends Command

Command class for issuing set requests to TWGGetSetInterface supporting objects in the Director Server


Field Summary
 
Fields inherited from class com.tivoli.twg.libs.Command
CMD_SENDER_FLAG, CMDRET_CREATE_CMDPKT_FAILED, CMDRET_ENCRYPT_FAIL, CMDRET_ENQUEUE_LOCAL_FAILED, CMDRET_INVALID_DEST_ADDRESS, CMDRET_NO_LOCAL_SVCNODE_IMPL, CMDRET_SECURE_FAIL, CMDRET_SEND_BUFFER_FAILED, CMDRET_SEND_FAILED, CMDRET_SEND_TIMEOUT, CMDRET_SERVICEFAILED, CMDRET_SESS_DISABLED_LCL, CMDRET_SESS_DISABLED_RMT, CMDRET_SESS_UNAVAIL_LCL, CMDRET_SESS_UNAVAIL_RMT, CMDRET_SESS_WAIT_DONE, CMDRET_SESS_WAIT_EXPIRED, CMDRET_SESS_WAITING, COMMAND_TYPE_INPUT, COMMAND_TYPE_OUTPUT, DEFAULT_CMD_TIMEOUT, ENQUEUE_FAILED_COPYDATA, ENQUEUE_FAILED_NO_DESTPATH, ENQUEUE_FAILED_NO_PROCESS_HANDLE, ENQUEUE_FAILED_NO_SVC_NODE_HANDLE, ENQUEUE_FAILED_SECURITY, ENQUEUE_GENERAL_FAILURE, JNI_BUFFER_NULL, JNI_ENTRY_POINT_NOT_LOADED, JNI_HANDLE_NULL, JNI_INITIALIZE_FAILED, RMI_LOOKUP_ERROR, SESSION_NONE, SESSION_PREFERRED, SESSION_REQUIRED
 
Constructor Summary
TWGSetAttributeCommand(java.util.Locale locale, LongValueSet oids, java.lang.String[] aids, DataValue[] vals)
          Constructor for attribute set command, using given list of object IDs and list of attribute names.
TWGSetAttributeCommand(long oid, java.lang.String[] aids, DataValue[] vals)
          Constructor for attribute set command, using given object ID and list of attribute names.
TWGSetAttributeCommand(long oid, java.lang.String aid, DataValue val)
          Constructor for attribute set command, using given object ID and attribute name.
TWGSetAttributeCommand(LongValueSet oids, java.lang.String[] aids, DataValue[] vals)
          Constructor for attribute set command, using given list of object IDs and list of attribute names.
TWGSetAttributeCommand(LongValueSet oids, java.lang.String aid, DataValue val)
          Constructor for attribute set command, using given list of object IDs and an attribute name.
 
Method Summary
 java.lang.String getAttributeID(int i)
          Get nth attribute ID
 int getAttributeIDCount()
          Get number of attribute IDs sent
 boolean getAttributeSetSuccess(long oid, java.lang.String aid)
          Return true if set of given attribute of given object ID was successful
 long getObjectID(int i)
          Get nth object ID
 int getObjectIDCount()
          Get number of object IDs sent
 
Methods inherited from class com.tivoli.twg.libs.Command
AddInputParm, AddInputParm, AddObjectAsInputParm, AddObjectAsOutputParm, AddOutputParm, AddOutputParm, addToDebugStrings, AllocateBuffer, AttachInputParm, AttachOutputParm, CmdId, CommandCode, commandCodeDebugString, CommandComplete, CompressObject, debugPrint, DecompressObject, DestinationAddress, DetachInputParm, DetachOutputParm, FreeBuffer, FreeInputsAfterSend, getCmdType, GetObjectFromInputParm, GetObjectFromOutputParm, getSenderServiceNode, hexDump, InputParm, InputParm, InputParmLength, IsFlatInputBuffer, IsFlatOutputBuffer, IsPostponedReply, MakeFlatInputBuffer, MakeFlatOutputBuffer, NumInputParms, NumOutputParms, OutputParm, OutputParm, OutputParmLength, Postpo neReply, ResetIndex, ResetInput, ResetOutput, ReturnAddress, ReturnCode, ReturnCodeToString, RootDestinationAddress, RootReturnAddress, SessionHold, SessionMode, SessionRelease, SessionWaitTime, setCmdType, setCmdTypeInput, setCmdTypeOutput, SetCommandCode, setCommandCodeDebugString, setCommandCompleteListener, SetDestinationAddress, SetNewID, SetReturnAddress, SetReturnCode, setSenderServiceNode, SetSessionHold, SetSessionMode, SetSessionRelease, SetSessionWaitTime, SetTimeOut, TimeOut, toString, UseFlatInputBuffer, UseFlatOutputBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TWGSetAttributeCommand

public TWGSetAttributeCommand(LongValueSet oids,
                              java.lang.String[] aids,
                              DataValue[] vals)
Constructor for attribute set command, using given list of object IDs and list of attribute names. Command will set the given attributes from each of the given objects.

Parameters:
oids - - list of object IDs
aids - - list of attribute ID strings
vals - - list of values for each attribute to be set

TWGSetAttributeCommand

public TWGSetAttributeCommand(long oid,
                              java.lang.String[] aids,
                              DataValue[] vals)
Constructor for attribute set command, using given object ID and list of attribute names. Command will set the given attributes from the given object.

Parameters:
oid - - object ID
aids - - list of attribute ID strings
vals - - list of values for each attribute to be set

TWGSetAttributeCommand

public TWGSetAttributeCommand(long oid,
                              java.lang.String aid,
                              DataValue val)
Constructor for attribute set command, using given object ID and attribute name. Command will set the given attribute from the given object.

Parameters:
oid - - object ID
aid - - attribute ID string
val - - value for attribute to be set

TWGSetAttributeCommand

public TWGSetAttributeCommand(LongValueSet oids,
                              java.lang.String aid,
                              DataValue val)
Constructor for attribute set command, using given list of object IDs and an attribute name. Command will set the given attribute from each of the given objects.

Parameters:
oids - - list of object IDs
aid - - attribute ID string
val - - value for attribute to be set

TWGSetAttributeCommand

public TWGSetAttributeCommand(java.util.Locale locale,
                              LongValueSet oids,
                              java.lang.String[] aids,
                              DataValue[] vals)
Constructor for attribute set command, using given list of object IDs and list of attribute names. Command will set the given attributes from each of the given objects.

Parameters:
locale - - locale to use for get
oids - - list of object IDs
aids - - list of attribute ID strings
vals - - list of values for each attribute to be set
Method Detail

getAttributeSetSuccess

public boolean getAttributeSetSuccess(long oid,
                                      java.lang.String aid)
Return true if set of given attribute of given object ID was successful

Parameters:
oid - - object ID
aid - - attribute ID
Returns:
true if value was set successfully

getObjectIDCount

public int getObjectIDCount()
Get number of object IDs sent

Returns:
number of object IDs

getAttributeIDCount

public int getAttributeIDCount()
Get number of attribute IDs sent

Returns:
number of attribute IDs

getObjectID

public long getObjectID(int i)
Get nth object ID

Returns:
object ID value

getAttributeID

public java.lang.String getAttributeID(int i)
Get nth attribute ID

Returns:
attribute ID value