com.tivoli.twg.engine
Class NativeManagedObjectGetIPCPaths

java.lang.Object
  extended bycom.tivoli.twg.libs.Command
      extended bycom.tivoli.twg.engine.TWGServerCommand
          extended bycom.tivoli.twg.engine.NativeManagedObjectGetIPCPaths

public class NativeManagedObjectGetIPCPaths
extends TWGServerCommand

Command class for requesting preferred IPC paths for a set of native managed object instances.


Field Summary
static java.lang.String CMDNAME
          Command name for requesting IPC paths for a set of native objects
static int OUTPUT_PATH_OFFSET
          Output parms include a result byte (byte 0) and a compressed unicode IPC path (if successful)
static byte OUTPUT_STATUS_NOT_NATIVEMO
           
static byte OUTPUT_STATUS_OFFLINE
           
static byte OUTPUT_STATUS_OK
           
 
Fields inherited from class com.tivoli.twg.engine.TWGServerCommand
INVALID_PARAMETER_RC, TWGSERVERNAME, UNSUPPORTED_CMD
 
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
NativeManagedObjectGetIPCPaths(long[] idlist)
          Construct command for requsting IPC paths
 
Method Summary
 java.lang.String GetPreferredPath(int index)
          Get preferred path for i-th native managed object (index in list of IDs provided for input).
 int NumberOfInputIDs()
          Return number of native managed object IDs inputted
 boolean wasNotNativeManagedObject(int index)
          Return true if i-th managed object was not a native managed object
 boolean wasOffline(int index)
          Return true if i-th managed object was offline
 
Methods inherited from class com.tivoli.twg.engine.TWGServerCommand
ServerCommandName
 
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
 

Field Detail

CMDNAME

public static final java.lang.String CMDNAME
Command name for requesting IPC paths for a set of native objects

See Also:
Constant Field Values

OUTPUT_PATH_OFFSET

public static final int OUTPUT_PATH_OFFSET
Output parms include a result byte (byte 0) and a compressed unicode IPC path (if successful)

See Also:
Constant Field Values

OUTPUT_STATUS_OK

public static final byte OUTPUT_STATUS_OK
See Also:
Constant Field Values

OUTPUT_STATUS_OFFLINE

public static final byte OUTPUT_STATUS_OFFLINE
See Also:
Constant Field Values

OUTPUT_STATUS_NOT_NATIVEMO

public static final byte OUTPUT_STATUS_NOT_NATIVEMO
See Also:
Constant Field Values
Constructor Detail

NativeManagedObjectGetIPCPaths

public NativeManagedObjectGetIPCPaths(long[] idlist)
Construct command for requsting IPC paths

Parameters:
idlist - - array of native managed object IDs
Method Detail

GetPreferredPath

public java.lang.String GetPreferredPath(int index)
Get preferred path for i-th native managed object (index in list of IDs provided for input). Data only valid after command completed.

Parameters:
index - - index of object whose path is to be returned
Returns:
IPC path as string, or null if object isn't native object or if object isn't currently on-line

wasOffline

public boolean wasOffline(int index)
Return true if i-th managed object was offline

Parameters:
index - - index of object which is to be checked
Returns:
true if object was offline (no path returned)

wasNotNativeManagedObject

public boolean wasNotNativeManagedObject(int index)
Return true if i-th managed object was not a native managed object

Parameters:
index - - index of object which is to be checked
Returns:
true if object was not a native managed object (no path returned)

NumberOfInputIDs

public int NumberOfInputIDs()
Return number of native managed object IDs inputted

Returns:
number of IDs