com.tivoli.twg.engine
Class TWGLocalManagedObject

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGLocalManagedObject
All Implemented Interfaces:
ClientServiceListener

public class TWGLocalManagedObject
extends java.lang.Object
implements ClientServiceListener

This class is used to keep track of a managed object that represents a client as part of a task activation.


Constructor Summary
TWGLocalManagedObject(long moid, TWGClientTaskList clientTasks, TWGLocalTaskClients clientSet)
          Constructor
 
Method Summary
 void ClientServiceStartCompleted(TWGManagedObject mo, int resultCode)
          Notification method for completion of ClientServiceStart() request.
 void ClientServiceStopCompleted(TWGManagedObject mo, int resultCode)
          Notification method for completion of ClientServiceStop() request
 byte[] getAddressEntryRecord()
          Get the data for this object's address entry record.
 int getClientStatus()
          Get the state of the client task activation/deactivation.
 int getClientTaskStatus()
           
 int getID()
          Get the actual managed object that this TWGLocalManagedObject represents.
 TWGManagedObject getMO()
          Get the actual managed object that this TWGLocalManagedObject represents.
 int getMoState()
          Get the state of the managed object that was determined during task activation.
 int incrementtaskcount()
          Get the actual managed object that this TWGLocalManagedObject represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGLocalManagedObject

public TWGLocalManagedObject(long moid,
                             TWGClientTaskList clientTasks,
                             TWGLocalTaskClients clientSet)
Constructor

Parameters:
moid - object ID of the managed object
clientTasks - TWGClientTaskList to use to look up this TWGLocalManagedObject list of client tasks
clientSet - TWGLocalTaskClients this LMO is a member of
Method Detail

getClientTaskStatus

public int getClientTaskStatus()

ClientServiceStartCompleted

public void ClientServiceStartCompleted(TWGManagedObject mo,
                                        int resultCode)
Notification method for completion of ClientServiceStart() request. If all tasks have been successfully started then the clientSet is notified. If there are more tasks to start then the next task is started. If the task start failed, then any stopTasks() is called.

Specified by:
ClientServiceStartCompleted in interface ClientServiceListener
Parameters:
mo - - TWGManagedObject which request was related to
resultCode - - result code of the request

ClientServiceStopCompleted

public void ClientServiceStopCompleted(TWGManagedObject mo,
                                       int resultCode)
Notification method for completion of ClientServiceStop() request

Specified by:
ClientServiceStopCompleted in interface ClientServiceListener
Parameters:
mo - - TWGManagedObject which request was related to
resultCode - - result code of the request

getID

public int getID()
Get the actual managed object that this TWGLocalManagedObject represents.

Returns:
TWGManagedObject

incrementtaskcount

public int incrementtaskcount()
Get the actual managed object that this TWGLocalManagedObject represents.

Returns:
TWGManagedObject

getMO

public TWGManagedObject getMO()
Get the actual managed object that this TWGLocalManagedObject represents.

Returns:
TWGManagedObject

getMoState

public final int getMoState()
Get the state of the managed object that was determined during task activation. See TWGManagedObjectConstants for constants starting with MOSTATE_


getClientStatus

public final int getClientStatus()
Get the state of the client task activation/deactivation. See TWGManagedObjectConstants for constants starting with CLIENT_SERVICE_


getAddressEntryRecord

public final byte[] getAddressEntryRecord()
Get the data for this object's address entry record.

Returns:
byte[]