com.tivoli.twg.engine
Class ManagedObjectStateChangeCommand

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

public class ManagedObjectStateChangeCommand
extends Command

This class is used to build or parse a managed object state change notification command.


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
 
Method Summary
 void CommandComplete()
          Callback method invoked when command is completed.
static byte[] getAddressEntryRecord(Command cmd)
          Method to get the address record for the managed object being reported.
static long getMofoid(Command cmd)
          Method to get the managed object factory ID of the object being reported.
static long getMoid(Command cmd)
          Method to get the managed object ID of the object being reported.
static java.lang.String getName(Command cmd)
          Method to get the name/label of the managed object being reported.
static int getNewState(Command cmd)
          Method to get the new state of the managed object.
static int getOldState(Command cmd)
          Method to get the old state of the managed object.
static boolean hasAddressEntryRecord(Command cmd)
          Method to determine if the managed object returns an actual address record or null.
 
Methods inherited from class com.tivoli.twg.libs.Command
AddInputParm, AddInputParm, AddObjectAsInputParm, AddObjectAsOutputParm, AddOutputParm, AddOutputParm, addToDebugStrings, AllocateBuffer, AttachInputParm, AttachOutputParm, CmdId, CommandCode, commandCodeDebugString, 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, PostponeReply, 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
 

Method Detail

CommandComplete

public void CommandComplete()
Callback method invoked when command is completed.

Overrides:
CommandComplete in class Command

getOldState

public static final int getOldState(Command cmd)
Method to get the old state of the managed object. The state values are defined in TWGManagedObject as static final int MOSTATE_*.

Parameters:
cmd - Command object to retrieve value from
Returns:
managed object's old state
See Also:
TWGManagedObject

getNewState

public static final int getNewState(Command cmd)
Method to get the new state of the managed object. The state values are defined in TWGManagedObject as static final int MOSTATE_*.

Parameters:
cmd - Command object to retrieve value from
Returns:
managed object's new state
See Also:
TWGManagedObject

getMoid

public static final long getMoid(Command cmd)
Method to get the managed object ID of the object being reported.

Parameters:
cmd - Command object to retrieve value from
Returns:
long managed object ID

getMofoid

public static final long getMofoid(Command cmd)
Method to get the managed object factory ID of the object being reported.

Parameters:
cmd - Command object to retrieve value from
Returns:
long MOF ID

hasAddressEntryRecord

public static final boolean hasAddressEntryRecord(Command cmd)
Method to determine if the managed object returns an actual address record or null.


getAddressEntryRecord

public static final byte[] getAddressEntryRecord(Command cmd)
Method to get the address record for the managed object being reported.

Parameters:
cmd - Command object to retrieve value from
Returns:
byte[] address record or null if the managed object does not properly support address entry records.
See Also:
AddressEntryShadow

getName

public static final java.lang.String getName(Command cmd)
Method to get the name/label of the managed object being reported.

Returns:
a String.