com.tivoli.twg.engine
Class TWGConActiveConsole

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGConObject
      extended bycom.tivoli.twg.engine.TWGConActiveConsole

public class TWGConActiveConsole
extends TWGConObject

Console object used to shadow the state of a TWGActiveConsole object in the Director Server.


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConActiveConsole(long obj_id)
          Constructor for TWGConActiveConsole with given object ID
 
Method Summary
 void Delete()
          Destructor for TWGConObject: remove object from hash table
 long getAssociationID()
          Return association object ID of currently active association
static TWGConActiveConsole getCurrent()
          Get reference to current console
 long getFilterID()
          Return filter object ID of currently active filter
 java.lang.String getHostName()
          Return host associated with active console
 long getLogonTime()
          Get logon time for user
 java.lang.String getUserID()
          Return user ID associated with active console
 boolean isCurrentConsole()
          Return true if is current logon's console
static boolean isServerDatabaseActive()
          Deprecated. see TWGConDatabase
static boolean isServerDatabaseEnabled()
          Deprecated. see TWGConDatabase
 java.lang.String toString()
          Generate string representation of object
 void UpdateUsingShadowRecord(byte[] rec, int rec_off, int rec_len)
          Update object using shadow record created by the the engine object which is matched with this class.
 
Methods inherited from class com.tivoli.twg.engine.TWGConObject
AllObjects, AllObjects, DeleteObjects, DeregisterListener, FindObject, getBaseClassName, LookUpShadowClass, ObjectID, ProcessUpdateRequest, RegisterListener, SetObjectID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TWGConActiveConsole

public TWGConActiveConsole(long obj_id)
                    throws DuplicateObjectIDException
Constructor for TWGConActiveConsole with given object ID

Parameters:
obj_id - - object ID of console object
Throws:
DuplicateObjectIDException - if ID is duplicate of existing object ID
Method Detail

Delete

public void Delete()
Destructor for TWGConObject: remove object from hash table

Overrides:
Delete in class TWGConObject

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] rec,
                                    int rec_off,
                                    int rec_len)
Update object using shadow record created by the the engine object which is matched with this class.

Specified by:
UpdateUsingShadowRecord in class TWGConObject
Parameters:
rec - - byte array containing opaque representation of shadowed attributes
rec_off - - offset of shadow record in byte array
rec_len - - length of shadow record in byte array

toString

public java.lang.String toString()
Generate string representation of object

Overrides:
toString in class TWGConObject
Returns:
string representation

getUserID

public java.lang.String getUserID()
Return user ID associated with active console

Returns:
user-id

getHostName

public java.lang.String getHostName()
Return host associated with active console

Returns:
host name

getFilterID

public long getFilterID()
Return filter object ID of currently active filter

Returns:
object ID of current filter, or 0 if none

getAssociationID

public long getAssociationID()
Return association object ID of currently active association

Returns:
object ID of current association, or 0 if none

isCurrentConsole

public boolean isCurrentConsole()
Return true if is current logon's console

Returns:
true if current, false if other logon

getLogonTime

public long getLogonTime()
Get logon time for user


getCurrent

public static TWGConActiveConsole getCurrent()
Get reference to current console

Returns:
reference to current console

isServerDatabaseEnabled

public static boolean isServerDatabaseEnabled()
Deprecated. see TWGConDatabase

Is our database enabled (configured to be active)

Returns:
true if enabled (may not be active), false if disabled (always true for pre-V2.11 servers)
Since:
V2.11

isServerDatabaseActive

public static boolean isServerDatabaseActive()
Deprecated. see TWGConDatabase

Is our database active

Returns:
true if active, false if inactive (always true for pre-V2.11 servers)
Since:
V2.11