|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGObject
com.tivoli.twg.engine.TWGActiveConsole
Transient object representing state and active processes associated with a specific remote management console logon.
Field Summary | |
---|---|
static int |
CONSOLE_CLOSED
Console closed state for TWGActiveConsoleListener.consoleChanged() |
static int |
CONSOLE_OPENED
Console opened state for TWGActiveConsoleListener.consoleChanged() |
Constructor Summary | |
---|---|
TWGActiveConsole(TWGIPCServerLink lnk)
Constructor for active console instance. |
Method Summary | |
---|---|
static void |
addConsoleAndSubtaskListener(TWGConsoleAndSubtaskListener listener)
Add a listener for console and task activation/deactivations |
static void |
addListener(TWGActiveConsoleListener listener)
Add a listener for TWGActiveConsole state change notifications |
static void |
attachAllFiltersToUserConsoles(TWGUser uid)
Attach all filters to all consoles for a given user account. |
static void |
attachAllTasksToUserConsoles(TWGUser uid)
Attach all tasks to all consoles for a given user account. |
static void |
attachCategoryToAllAllowedConsoles(com.tivoli.twg.engine.TWGGroupCategory gcat)
Attach group category to all allowed consoles |
static void |
attachCategoryToAllAllowedConsoles(com.tivoli.twg.engine.TWGTaskCategory tcat)
Attach task category to all allowed consoles |
static void |
attachFilterToAllAllowedConsoles(TWGFilter flt)
Attach filter to all allowed consoles |
static void |
attachObjectsToAlmostAllConsoles(LongValueSet oids,
StringValueSet uids)
Attach set of console-spec shadowed objects to all consoles EXCEPT those in a given list of user accounts. |
static void |
attachObjectsToUserConsoles(LongValueSet oids,
TWGUser uid)
Attach set of console-spec shadowed objects to all consoles for a given user account. |
static void |
attachTaskToAllAllowedConsoles(TWGTask tsk)
Attach task to all allowed consoles |
static void |
checkUserLogon(java.lang.String uid)
Check to see if a user logon would be accepted (based on logon and user limits) |
static void |
CloseLink(TWGIPCServerLink lnk)
Close console associated with given link |
void |
Delete()
Delete method for active console |
static void |
detachAllDisallowedFiltersFromUserConsoles(TWGUser uid)
Detach all disallowed filters from a given user's consoles |
static void |
detachAllDisallowedTasksFromUserConsoles(TWGUser uid)
Detach all disallowed tasks from a given user's consoles |
static void |
detachObjectsFromAlmostAllConsoles(LongValueSet oids,
StringValueSet uids)
Detach set of console-spec shadowed objects from all consoles EXCEPT those in a given list of user accounts. |
static void |
detachObjectsFromUserConsoles(LongValueSet oids,
TWGUser uid)
Detach set of console-spec shadowed objects from all consoles for a given user account. |
static void |
dropFilter(TWGFilter flt)
Drop filter : used to by TWGFilter to announce deletion of filter. |
static void |
filterActivated(TWGFilter flt)
Filter activated notification |
static void |
filterDeactivated(TWGFilter flt)
Filter deactivated notification |
void |
filterMOSChangeNotify(TWGFilter filt,
TWGManagedObjectSet mos,
IntValueSet add_mo_ids,
IntValueSet chg_mo_ids,
IntValueSet del_mo_ids)
Notification method for reporting changes in the membership of the TWGManagedObjectSet associated with the TWGFilter. |
void |
filterSubscribeEnded(TWGFilter filt)
Notifcation of end of subscription to filter : called if filter deleted |
static TWGActiveConsole |
FindConsoleForServiceNode(java.lang.String sn_name)
Find TWGActiveConsole associated with given service node name |
static TWGActiveConsole[] |
findConsolesForUserIDs(java.lang.String[] uid)
Find active consoles for given user IDs |
static StringValueSet |
getAllActiveUserIDs()
Get all active accounts |
TWGAssociation |
getAssociation()
Return reference to active association for session |
java.lang.String[] |
getAttributeIDList()
Attribute ID enumeration : this method is expected to return a List of strings containing the String names of the attributes supported for a given object. |
int |
getAttributeType(java.lang.String id)
Get type of attribute value for given attribute |
DataValue |
getAttributeValue(java.lang.String id,
java.util.Locale loc)
Get value of attribute with given ID |
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
static TWGActiveConsole |
getConsole(Command cmd)
Obtain the active console for a received command. |
TWGFilter |
getFilter()
Return reference to active filter for session |
static long |
GetGlobalShadowVersion()
Read current global state version |
java.lang.String |
getHostName()
Get hostname. |
byte[] |
GetShadowRecord(java.util.Locale locale)
Get buffer containing current values of the shadowed attributes to be delivered to the console shadow class. |
long |
GetShadowVersion()
Get object state version. |
TWGUser |
getUser()
Return user associated with console session |
static void |
HandleUpdateRequest(Command cmd)
Handler for requests for shadowed object updates. |
static void |
managedObjectChanged(long chg_mo_id,
int reason_code)
Handle notification of changed managed object instance |
static void |
managedObjectCreated(long new_mo_id)
Handle notification of new managed object instance |
static void |
managedObjectDeleted(long del_mo_id)
Handle notification of deleted managed object instance |
static void |
managedObjectsChanged(IntValueSet chg_mo_ids)
Handle notification of changed managed object instances |
static void |
managedObjectsChanged(IntValueSet chg_mo_ids,
StringValueSet db_classnames)
Handle notification of changed managed object instances (database content) |
static void |
newUserCreatedNotify(TWGUser usr)
Notify of new user created |
static long |
nextShadowVersion()
Get next state version : increments the global state version |
void |
objectAddToConsole(TWGConsoleSpecShadowedObject obj)
Associate console-specific shadowed object with active console instance. |
static void |
objectCreated(long oid,
TWGShadowedObject obj)
Method used to signal new shadowed object |
static void |
objectDeleted(long obj_id)
Method used to signal that a TWGShadowedObject has been deleted |
static void |
objectRemoveFromAllConsoles(long obj_id)
Disassociate console-specific shadowed object from all consoles. |
static void |
objectRemoveFromAllUserConsoles(java.lang.String uid,
TWGConsoleSpecShadowedObject obj)
Disassociate console-specific shadowed object from all consoles associated with a specific user ID |
void |
objectRemoveFromConsole(long obj_id)
Disassociate console-specific shadowed object with console instance. |
void |
objectRemoveFromConsole(TWGConsoleSpecShadowedObject obj)
Disassociate console-specific shadowed object with console instance. |
static void |
objectUpdated(TWGBaseShadowedObject obj)
Method used to signal the change of the shadowed state of a shadowed object instance. |
static void |
ProcessWizardGetPropertiesRequest(Command cmd)
Process a request for the WizardTasks properties keys and values from both the static classes/WizardTasks.properties file and the user data file data/WizardTasks.prop. |
static void |
ProcessWizardPutPropertiesRequest(Command cmd)
Process a request to put property key/value pairs in data/WizardTasks.prop |
static void |
removeConsoleAndSubtaskListener(TWGConsoleAndSubtaskListener listener)
Remove a previously registered listener |
static void |
removeListener(TWGActiveConsoleListener listener)
Remove a previously registered listener |
void |
setAllUsersShadowed(boolean enab)
Enable/disable shadowing of all user objects |
void |
setAssociation(TWGAssociation new_association)
Set new active association for console session |
boolean |
setAttributeValue(java.lang.String id,
DataValue val)
Set value of attribute with given ID |
void |
setFilter(TWGFilter new_filter)
Set new active filter for console session |
void |
SetObjectID(long oid)
Change the object ID to a new value |
void |
setUser(TWGUser new_user)
Set user object associated with console session |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
UpdateShadowVersion()
Update object state version. |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, Destroy, DumpTWGObjects, FindObject, isDeleted, isNewObject, isPersistent, isPersistent, isValid, isValid, ObjectID, setDistinctObjectID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONSOLE_OPENED
public static final int CONSOLE_CLOSED
Constructor Detail |
public TWGActiveConsole(TWGIPCServerLink lnk)
lnk
- - IPC link for consoleMethod Detail |
public void SetObjectID(long oid) throws DuplicateObjectIDException
SetObjectID
in class TWGObject
oid
- - new object ID value
DuplicateObjectIDException
- if ID is duplicatepublic void Delete()
Delete
in class TWGObject
public TWGUser getUser()
public TWGAssociation getAssociation()
public TWGFilter getFilter()
public void setUser(TWGUser new_user)
new_user
- - user object to be associated with sessionpublic void setAssociation(TWGAssociation new_association)
new_association
- - new association to be used as active
associationpublic void setFilter(TWGFilter new_filter)
new_filter
- - new filter to be used as active filterpublic static void CloseLink(TWGIPCServerLink lnk)
lnk
- - link to be closedpublic java.lang.String toString()
Object.toString()
public static TWGActiveConsole FindConsoleForServiceNode(java.lang.String sn_name)
sn_name
- - name of service node to be found
public static TWGActiveConsole getConsole(Command cmd)
cmd
- the received command
public void objectAddToConsole(TWGConsoleSpecShadowedObject obj)
obj
- - object to be associatedpublic void objectRemoveFromConsole(long obj_id)
obj_id
- - object ID of object to be disassociated.public void objectRemoveFromConsole(TWGConsoleSpecShadowedObject obj)
obj
- - object to be disassociated.public static void objectRemoveFromAllConsoles(long obj_id)
obj_id
- - object ID to be disassociatedpublic static void objectRemoveFromAllUserConsoles(java.lang.String uid, TWGConsoleSpecShadowedObject obj)
uid
- - user IDobj
- - object to be disassociated.public static long nextShadowVersion()
public static long GetGlobalShadowVersion()
public static void objectUpdated(TWGBaseShadowedObject obj)
obj
- - reference to object instance which has been
created/updatedpublic static void objectDeleted(long obj_id)
obj_id
- - ObjectID of object which has been deletedpublic static void objectCreated(long oid, TWGShadowedObject obj)
oid
- - Object IDobj
- - New objectpublic static void HandleUpdateRequest(Command cmd)
Command format is as follows:
- input 0: Long64 timestamp value of caller's level (0=initial)
- input 1: locale string (4 character ASCIIZ string)
cmd
- - IPC command requesting updatespublic static void ProcessWizardGetPropertiesRequest(Command cmd)
cmd
- - A TWGWizardLoadSaveCommandpublic static void ProcessWizardPutPropertiesRequest(Command cmd)
cmd
- - A TWGWizardLoadSaveCommandpublic void UpdateShadowVersion()
UpdateShadowVersion
in interface TWGBaseShadowedObject
public long GetShadowVersion()
GetShadowVersion
in interface TWGBaseShadowedObject
public java.lang.String GetConShadowClass()
GetConShadowClass
in interface TWGBaseShadowedObject
public byte[] GetShadowRecord(java.util.Locale locale)
GetShadowRecord
in interface TWGBaseShadowedObject
locale
- - Locale of requested data
public static void addListener(TWGActiveConsoleListener listener)
listener
- TWGActiveConsoleListener to be addpublic static void removeListener(TWGActiveConsoleListener listener)
listener
- TWGActiveConsoleListener to be removedpublic static void addConsoleAndSubtaskListener(TWGConsoleAndSubtaskListener listener)
listener
- TWGConsoleAndSubtaskListener to be addpublic static void removeConsoleAndSubtaskListener(TWGConsoleAndSubtaskListener listener)
listener
- TWGConsoleAndSubtaskListener to be removedpublic static void managedObjectCreated(long new_mo_id)
new_mo_id
- - new managed object IDpublic static void managedObjectChanged(long chg_mo_id, int reason_code)
chg_mo_id
- - changed managed object IDreason_code
- - change reason codepublic static void managedObjectsChanged(IntValueSet chg_mo_ids, StringValueSet db_classnames)
chg_mo_ids
- - changed managed object IDs (changed during call)db_classnames
- - classnames (without package) of database tables
updated for given managed objects : "*" implies all tablespublic static void managedObjectsChanged(IntValueSet chg_mo_ids)
chg_mo_ids
- - changed managed object IDs (changed during call)public static void managedObjectDeleted(long del_mo_id)
del_mo_id
- - deleted managed object IDpublic void filterMOSChangeNotify(TWGFilter filt, TWGManagedObjectSet mos, IntValueSet add_mo_ids, IntValueSet chg_mo_ids, IntValueSet del_mo_ids)
filterMOSChangeNotify
in interface TWGFilterSubscriber
filt
- - TWGFilter notifying of changemos
- - TWGManagedObjectSet associated with changed filteradd_mo_ids
- - Set of TWGManagedObject persistent IDs added to
the TWGManagedObjectSetchg_mo_ids
- - Set of TWGManagedObject persistent IDs changed in
the TWGManagedObjectSetdel_mo_ids
- - Set of TWGManagedObject persistent IDs deleted
from the TWGManagedObjectSetpublic void filterSubscribeEnded(TWGFilter filt)
filterSubscribeEnded
in interface TWGFilterSubscriber
filt
- - TWGFilter ending subscriptionpublic static void filterActivated(TWGFilter flt)
flt
- - reference to filter which has become activepublic static void filterDeactivated(TWGFilter flt)
flt
- - reference to filter which has become inactivepublic java.lang.String[] getAttributeIDList()
getAttributeIDList
in interface TWGGetSetInterface
public DataValue getAttributeValue(java.lang.String id, java.util.Locale loc)
getAttributeValue
in interface TWGGetSetInterface
id
- - attribute ID requestedloc
- - locale to use for value, if applicable
public boolean setAttributeValue(java.lang.String id, DataValue val)
setAttributeValue
in interface TWGGetSetInterface
id
- - attribute ID to be setval
- - attribute value to be set
public int getAttributeType(java.lang.String id)
getAttributeType
in interface TWGGetSetInterface
id
- - attribute ID
public static void dropFilter(TWGFilter flt)
flt
- - filter to be deletedpublic static TWGActiveConsole[] findConsolesForUserIDs(java.lang.String[] uid)
uid
- - user ID list
public static StringValueSet getAllActiveUserIDs()
public static void attachFilterToAllAllowedConsoles(TWGFilter flt)
flt
- - filter to be attachedpublic static void attachTaskToAllAllowedConsoles(TWGTask tsk)
tsk
- - task to be attachedpublic static void attachCategoryToAllAllowedConsoles(com.tivoli.twg.engine.TWGGroupCategory gcat)
gcat
- - category to be attachedpublic static void attachCategoryToAllAllowedConsoles(com.tivoli.twg.engine.TWGTaskCategory tcat)
public static void attachObjectsToUserConsoles(LongValueSet oids, TWGUser uid)
oids
- - object IDs of console-spec objects to attachuid
- - user objectpublic static void detachObjectsFromUserConsoles(LongValueSet oids, TWGUser uid)
oids
- - object IDs of console-spec objects to detachuid
- - user objectpublic static void attachObjectsToAlmostAllConsoles(LongValueSet oids, StringValueSet uids)
oids
- - object IDs of console-spec objects to attachuids
- - user ids of the users to excludepublic static void detachObjectsFromAlmostAllConsoles(LongValueSet oids, StringValueSet uids)
oids
- - object IDs of console-spec objects to detachuids
- - user ids of the users to excludepublic static void attachAllFiltersToUserConsoles(TWGUser uid)
uid
- - user objectpublic static void detachAllDisallowedFiltersFromUserConsoles(TWGUser uid)
uid
- - user objectpublic static void attachAllTasksToUserConsoles(TWGUser uid)
uid
- - user objectpublic static void detachAllDisallowedTasksFromUserConsoles(TWGUser uid)
uid
- - user objectpublic void setAllUsersShadowed(boolean enab)
enab
- - true if enabling, false if disablingpublic static void newUserCreatedNotify(TWGUser usr)
usr
- - user object createdpublic static void checkUserLogon(java.lang.String uid) throws TWGUserIDCountExceededException, TWGLogonCountExceededException
uid
- - user ID
TWGUserIDCountExceededException
- if too many active user-ids
TWGLogonCountExceededException
- if too many active logonspublic java.lang.String getHostName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |