Instance of ObjectRegistryImpl
This class participates in the engine library.
Service for registering and querying custom objects. Objects must conform to the Engine API by implementing the base_object object.
This class participates in the engine library.
Object API structure for storing sub structures: object_config.pointers and object_config.status.
object = object.object_config
Unique instance identifier.
String = object.object_id
The type of this object.
String = object.object_type
Version of the object class.
String = object.object_version
Object load and execution state. Follows: 0 unitialized, 1 through 3 variant, 4 ready, 5 destroyed.
int = object.ready_state
Adds the specified object to the registry, and automatically registers the object with the transaction service.
b = addObject( o )
b as boolean: Returns true if the object was added to the registry.
Verifies whether an object can be added to the registry.
b = canRegister( o )
b as boolean: Returns true if the specified object defines an
Returns the object matching the specified identifier or index.
o = getObject( v )
o as object: Object with the specified identifier or index.
Returns the unique id of the object.
i = getObjectId( )
i as String: The unique object instance id.
Returns an array of registered objects.
a = getObjects( )
a as array: Array of registered objects.
Returns the object identifier mapping.
a = getObjectsMap( )
a as array: Array of object identifiers directly mapped to the objects array.
Returns the type of the object.
t = getObjectType( )
t as String: The type of the object instance.
Returns the version of the object.
v = getObjectVersion( )
v as String: The version of the object instance.
Returns the object_config.pointers sub structure.
o = getPointers( )
o as object: The object_config.pointers substructure.
Returns the state of the object.
s = getReadyState( )
s as int: The object ready state.
Returns the object_config.status sub structure.
o = getStatus( )
o as object: The object_config.status substructure.
Returns true if the specified object is in the registry.
b = isRegistered( o )
b as boolean: Returns true if the object is in the registry.
Removes the specified object from the registry.
b = removeObject( o, b )
b as boolean: Returns true if the object was removed.
Invokes the destroy method on the specified object. Object must be registered.
b = sendDestroyTo( o )
b as boolean: Returns true if the object defined a destroy method and the method was invoked.
Sends a termination signal to all registered objects for preparation to be destroyed. This method causes all objects to be removed from the registry, and to have any sigterm method invoked.
void sendSigterm( )