|
|||||||||||
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.TWGPersistentObject
com.tivoli.twg.engine.TWGManagedObjectFactory
com.tivoli.twg.engine.cluster.TWGClusterManagedObjectFactory
Base class for representing the managed object factory for Clusters.
Field Summary | |
---|---|
static java.lang.String |
MO_CLASS
Name of TWGManagedObject class supported by factory |
static java.lang.String |
NLSCLASS
Name of NLS resource used for Cluster managed object support |
Fields inherited from class com.tivoli.twg.engine.TWGManagedObjectFactory |
---|
INSTANCE_OF_CALLBACK, INSTANCE_OF_NO, INSTANCE_OF_NO_RESPONSE, INSTANCE_OF_YES |
Fields inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
CLASS_NAME, SIZEOF_BYTE, SIZEOF_CHAR, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
TWGClusterManagedObjectFactory()
Default constructor |
|
TWGClusterManagedObjectFactory(java.lang.String managedObjectClassName)
Constructor |
Method Summary | |
---|---|
void |
Activate()
Activate the topology processing. |
static long |
createClusterGroup(long obj_id)
Create cluster group for given cluster object ID, if not already created. |
void |
Deactivate()
Deactivate the topology processing |
void |
Delete()
Delete method |
static IntValueSet |
getClustersForMOID(int moid)
Return set of cluster object IDs which a given object is a member |
static TWGClusterManagedObjectFactory |
GetFactory()
Get instance of cluster managed object factory |
byte |
instanceOf(com.tivoli.twg.engine.TWGMofInstanceOf mofInstanceOf,
TWGManagedObject managedObject)
Test a managed object instance for inclusion into a managed object factory class. |
void |
managedObjectChanged(TWGManagedObject twgmo,
int reason)
Notification method for TWGManagedObject type and/or content change. |
void |
managedObjectCreated(TWGManagedObject twgmo)
Notification method for TWGManagedObject creation. |
void |
managedObjectDestroyed(TWGManagedObject twgmo)
Notification method for TWGManagedObject deletion. |
void |
ServerCommandReceived(java.lang.String cmdname,
Command cmd)
Handler method for delivering TWGServerCommands for Native Managed Object specific commands |
void |
StartDiscoveryPass()
Start a discovery pass: operation should return quickly, with actual discovery logic not being completed before the method returns. |
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
Destroy, enableAsyncWrites, fromPersistID, isNewPersistentStore, isSaveRequired, PersistID, restore, restoreAll, save, save, setSaveRequired, terminate, toPersistID |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, 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 java.lang.String MO_CLASS
public static final java.lang.String NLSCLASS
Constructor Detail |
public TWGClusterManagedObjectFactory() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- if MO class not loadedpublic TWGClusterManagedObjectFactory(java.lang.String managedObjectClassName) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- if MO class not loadedMethod Detail |
public void Delete()
Delete
in class TWGManagedObjectFactory
public static TWGClusterManagedObjectFactory GetFactory()
public byte instanceOf(com.tivoli.twg.engine.TWGMofInstanceOf mofInstanceOf, TWGManagedObject managedObject)
instanceOf
in class TWGManagedObjectFactory
mofInstanceOf
- Reference to TWGMofInstanceOf callback interface object.managedObject
- Reference of managed object instance to be tested.
public void Activate() throws ManagedObjectFactoryActivateException
Activate
in class TWGManagedObjectFactory
ManagedObjectFactoryActivateException
- if errorpublic void Deactivate()
Deactivate
in class TWGManagedObjectFactory
public void StartDiscoveryPass()
StartDiscoveryPass
in class TWGManagedObjectFactory
public void managedObjectCreated(TWGManagedObject twgmo)
managedObjectCreated
in interface TWGManagedObjectLifeCycleListener
twgmo
- - Reference to newly created TWGManagedObjectpublic void managedObjectDestroyed(TWGManagedObject twgmo)
managedObjectDestroyed
in interface TWGManagedObjectLifeCycleListener
twgmo
- - Reference to TWGManagedObject to be deletedpublic void managedObjectChanged(TWGManagedObject twgmo, int reason)
managedObjectChanged
in interface TWGManagedObjectLifeCycleListener
twgmo
- - Reference to modified TWGManagedObjectreason
- - reason for change notificationpublic static IntValueSet getClustersForMOID(int moid)
moid
- - persistent managed object ID of possible cluster memberpublic void ServerCommandReceived(java.lang.String cmdname, Command cmd)
ServerCommandReceived
in interface TWGServerCommandHandler
cmdname
- - name of extension commandcmd
- - command instance receivedpublic static long createClusterGroup(long obj_id)
obj_id
- - object ID of cluster object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |