|
|||||||||||
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.TWGNativeManagedObjectFactory
Base class for representing the managed object factory for Director native clients.
Field Summary | |
---|---|
static java.lang.String |
MO_CLASS
Name of TWGManagedObject class supportd by factory |
static java.lang.String |
NLSCLASS
Name of NLS resource used for native 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 | |
---|---|
TWGNativeManagedObjectFactory()
Default constructor |
|
TWGNativeManagedObjectFactory(java.lang.String managedObjectClassName)
Constructor |
Method Summary | |
---|---|
void |
Activate()
Activate the topology processing. |
void |
CommandComplete(Command cmd)
Handle completed commands: used internally |
void |
Deactivate()
Deactivate the topology processing |
void |
Delete()
Delete method : unregister command handlers |
long |
getAgentPingInterval()
Get agent ping interval for TWG group |
boolean |
getAutoAddEnabled()
Returns current setting of Auto-Add feature |
boolean |
getAutoAddSupported()
Indicates if auto-add of unknown clients is supported |
static TWGNativeManagedObjectFactory |
GetFactory()
Get instance of native managed object factory |
protected TWGManagedObject |
getManagedObjectByFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
Get managed object by managed object fingerprint |
protected byte[] |
getOurAddressEntryRecord(TWGManagedObject obj)
Address entry record support method. |
static int |
GetTWGGroupTag()
Get TWG group tag |
byte |
instanceOf(com.tivoli.twg.engine.TWGMofInstanceOf mofInstanceOf,
TWGManagedObject managedObject)
Test a managed object instance for inclusion into a managed object factory class. |
static boolean |
IsSNIDInTWGGroup(byte[] snidbuf,
int snidoff)
Test SNID to see if system is member of TWG group |
void |
keysChanged()
Key set changed |
void |
ServerCommandReceived(java.lang.String cmdname,
Command cmd)
Handler method for delivering TWGServerCommands for Native Managed Object specific commands |
void |
setAgentPingInterval(long pingInterval)
Set agent ping interval for TWG group |
boolean |
setAutoAddEnabled(boolean enab)
Change setting of auto-add feature : subclasses should replace thid method with their own implementations. |
void |
setPingInterval(long intr)
f7693 Set ping interval, in milliseconds. |
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 TWGNativeManagedObjectFactory() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- if MO class not loadedpublic TWGNativeManagedObjectFactory(java.lang.String managedObjectClassName) throws java.lang.ClassNotFoundException
managedObjectClassName
- - TWGManagedObject class name associated with factory
java.lang.ClassNotFoundException
- if MO class not loadedMethod Detail |
public void Delete()
Delete
in class TWGManagedObjectFactory
public static TWGNativeManagedObjectFactory 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.
protected TWGManagedObject getManagedObjectByFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
getManagedObjectByFingerprint
in class TWGManagedObjectFactory
fingerprint
- - managed object fingerprint
public void CommandComplete(Command cmd)
CommandComplete
in interface CommandCompleteListener
cmd
- - Completed commandpublic static boolean IsSNIDInTWGGroup(byte[] snidbuf, int snidoff)
snidbuf
- - buffer for record for system nodesnidoff
- - offset of record
public void Activate() throws ManagedObjectFactoryActivateException
Activate
in class TWGManagedObjectFactory
ManagedObjectFactoryActivateException
- if errorpublic void Deactivate()
Deactivate
in class TWGManagedObjectFactory
public static int GetTWGGroupTag()
public void StartDiscoveryPass() throws ManagedObjectFactoryDiscoverException
StartDiscoveryPass
in class TWGManagedObjectFactory
ManagedObjectFactoryDiscoverException
- if error starting
discovery passpublic void ServerCommandReceived(java.lang.String cmdname, Command cmd)
ServerCommandReceived
in interface TWGServerCommandHandler
cmdname
- - name of extension commandcmd
- - command instance receivedprotected byte[] getOurAddressEntryRecord(TWGManagedObject obj)
getOurAddressEntryRecord
in class TWGManagedObjectFactory
obj
- - Managed object to request address encoding for
public long getAgentPingInterval()
getAgentPingInterval
in class TWGManagedObjectFactory
public void setPingInterval(long intr)
setPingInterval
in class TWGManagedObjectFactory
intr
- - new interval, in millisecondspublic void setAgentPingInterval(long pingInterval)
setAgentPingInterval
in class TWGManagedObjectFactory
pingInterval
- default ping interval to set for TWG group (in milliseconds)
or 0 to disable automatic presence checkpublic final void keysChanged()
keysChanged
in interface com.tivoli.twg.engine.License.KeyListener
public boolean getAutoAddSupported()
getAutoAddSupported
in class TWGManagedObjectFactory
public boolean getAutoAddEnabled()
getAutoAddEnabled
in class TWGManagedObjectFactory
public boolean setAutoAddEnabled(boolean enab)
setAutoAddEnabled
in class TWGManagedObjectFactory
enab
- - true if enabled, false if disabled
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |