Interface ManagedObjectMetaData<O extends java.lang.Enum<O>>
-
- All Known Implementing Classes:
ManagedObjectMetaDataImpl
public interface ManagedObjectMetaData<O extends java.lang.Enum<O>>
Meta-data of aManagedObject
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
getBoundManagedObjectName
java.lang.String getBoundManagedObjectName()
Obtains the name of theManagedObject
bound within theManagedObjectScope
.- Returns:
- Name of the
ManagedObject
bound within theManagedObjectScope
.
-
getLogger
java.util.logging.Logger getLogger()
Obtains theLogger
for theManagedObject
.- Returns:
Logger
for theManagedObject
.
-
getObjectType
java.lang.Class<?> getObjectType()
Obtains the type of theObject
returned from theManagedObject
.- Returns:
- Type of the
Object
returned from theManagedObject
.
-
getInstanceIndex
int getInstanceIndex()
Obtains the instance index of the
ManagedObject
bound to theManagedObjectIndex
.ManagedObjectSource
instances that invokeProcessState
instances with the same type of Object may all be bound to the sameManagedObjectIndex
.- Returns:
- Instance index of the
ManagedObject
bound to theManagedObjectIndex
.
-
getFunctionLoop
FunctionLoop getFunctionLoop()
Obtains theFunctionLoop
for theManagedObject
.- Returns:
FunctionLoop
for theManagedObject
.
-
getSourcingManagerReference
AssetManagerReference getSourcingManagerReference()
Obtains theAssetManagerReference
that manages the sourcing of theManagedObject
.- Returns:
AssetManagerReference
that manages the sourcing of theManagedObject
.
-
getManagedObjectSource
ManagedObjectSource<?,?> getManagedObjectSource()
Obtains theManagedObjectSource
for theManagedObject
.- Returns:
ManagedObjectSource
for theManagedObject
.
-
getManagedObjectPool
ManagedObjectPool getManagedObjectPool()
Obtains theManagedObjectPool
for theManagedObject
.- Returns:
ManagedObjectPool
for theManagedObject
.
-
getStartupFunctions
ManagedObjectStartupFunction[] getStartupFunctions()
Obtains theManagedObjectStartupFunction
instances for theManagedObjectSource
.- Returns:
ManagedObjectStartupFunction
instances for theManagedObjectSource
.
-
getMonitorClock
MonitorClock getMonitorClock()
Obtains theMonitorClock
.- Returns:
MonitorClock
.
-
getTimeout
long getTimeout()
Obtains the time out in milliseconds for the asynchronous operation to complete.- Returns:
- Time out in milliseconds.
-
isContextAwareManagedObject
boolean isContextAwareManagedObject()
Indicates if theManagedObject
implementsContextAwareManagedObject
.- Returns:
true
if theManagedObject
implementsContextAwareManagedObject
.
-
isManagedObjectAsynchronous
boolean isManagedObjectAsynchronous()
Indicates if the
ManagedObject
implementsAsynchronousManagedObject
.Should the
ManagedObject
implementAsynchronousManagedObject
then it will require checking if ready.- Returns:
true
if theManagedObject
implementsAsynchronousManagedObject
.
-
getOperationsManagerReference
AssetManagerReference getOperationsManagerReference()
Obtains theAssetManagerReference
that manages asynchronous operations on theManagedObject
.- Returns:
AssetManagerReference
that manages asynchronous operations on theManagedObject
.
-
getGovernanceMetaData
ManagedObjectGovernanceMetaData<?>[] getGovernanceMetaData()
Obtains theManagedObjectGovernanceMetaData
applicable to thisManagedObject
.- Returns:
ManagedObjectGovernanceMetaData
applicable to thisManagedObject
.
-
isCoordinatingManagedObject
boolean isCoordinatingManagedObject()
Indicates if theManagedObject
implementsCoordinatingManagedObject
.- Returns:
true
if theManagedObject
implementsCoordinatingManagedObject
.
-
checkReady
FunctionState checkReady(ManagedFunctionContainer managedFunction, ManagedObjectReadyCheck check, ManagedObjectContainer currentContainer)
Creates a
FunctionState
to check if the dependencies of thisManagedObject
are ready.Should a
ManagedObject
not be ready, then will latch theManagedFunctionContainer
to wait for theManagedObject
to be ready.- Parameters:
managedFunction
-ManagedFunctionContainer
requesting the check of theManagedObject
to be ready.check
-ManagedObjectReadyCheck
.currentContainer
- Optional able to include the currentManagedObjectContainer
for thisManagedObjectMetaData
in ready check. May benull
to not include.- Returns:
FunctionState
instances to check if the dependencies of thisManagedObject
are ready.
-
createObjectRegistry
ObjectRegistry<O> createObjectRegistry(ManagedFunctionContainer currentContainer)
Creates theObjectRegistry
for theManagedObject
.- Parameters:
currentContainer
-ManagedFunctionContainer
.- Returns:
ObjectRegistry
.
-
getPreLoadAdministration
ManagedObjectAdministrationMetaData<?,?,?>[] getPreLoadAdministration()
Obtains the pre-loadManagedObjectAdministrationMetaData
.- Returns:
- Pre-load
ManagedObjectAdministrationMetaData
.
-
recycle
FunctionState recycle(ManagedObject managedObject, ManagedObjectCleanup cleanupSequence)
Creates theFunctionState
for the recycling of theManagedObject
.- Parameters:
managedObject
-ManagedObject
to be recycled. Obtained by theRecycleManagedObjectParameter.getManagedObject()
.cleanupSequence
-ManagedObjectCleanup
.- Returns:
FunctionState
for the recycling thisManagedObject
ornull
if no recycling is required for thisManagedObject
.
-
-