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 theManagedObjectbound within theManagedObjectScope.- Returns:
- Name of the
ManagedObjectbound within theManagedObjectScope.
-
getLogger
java.util.logging.Logger getLogger()
Obtains theLoggerfor theManagedObject.- Returns:
Loggerfor theManagedObject.
-
getObjectType
java.lang.Class<?> getObjectType()
Obtains the type of theObjectreturned from theManagedObject.- Returns:
- Type of the
Objectreturned from theManagedObject.
-
getInstanceIndex
int getInstanceIndex()
Obtains the instance index of the
ManagedObjectbound to theManagedObjectIndex.ManagedObjectSourceinstances that invokeProcessStateinstances with the same type of Object may all be bound to the sameManagedObjectIndex.- Returns:
- Instance index of the
ManagedObjectbound to theManagedObjectIndex.
-
getFunctionLoop
FunctionLoop getFunctionLoop()
Obtains theFunctionLoopfor theManagedObject.- Returns:
FunctionLoopfor theManagedObject.
-
getSourcingManager
AssetManager getSourcingManager()
Obtains theAssetManagerthat manages the sourcing of theManagedObject.- Returns:
AssetManagerthat manages the sourcing of theManagedObject.
-
getManagedObjectSource
ManagedObjectSource<?,?> getManagedObjectSource()
Obtains theManagedObjectSourcefor theManagedObject.- Returns:
ManagedObjectSourcefor theManagedObject.
-
getManagedObjectPool
ManagedObjectPool getManagedObjectPool()
Obtains theManagedObjectPoolfor theManagedObject.- Returns:
ManagedObjectPoolfor theManagedObject.
-
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 theManagedObjectimplementsContextAwareManagedObject.- Returns:
trueif theManagedObjectimplementsContextAwareManagedObject.
-
isManagedObjectAsynchronous
boolean isManagedObjectAsynchronous()
Indicates if the
ManagedObjectimplementsAsynchronousManagedObject.Should the
ManagedObjectimplementAsynchronousManagedObjectthen it will require checking if ready.- Returns:
trueif theManagedObjectimplementsAsynchronousManagedObject.
-
getOperationsManager
AssetManager getOperationsManager()
Obtains theAssetManagerthat manages asynchronous operations on theManagedObject.- Returns:
AssetManagerthat manages asynchronous operations on theManagedObject.
-
getGovernanceMetaData
ManagedObjectGovernanceMetaData<?>[] getGovernanceMetaData()
Obtains theManagedObjectGovernanceMetaDataapplicable to thisManagedObject.- Returns:
ManagedObjectGovernanceMetaDataapplicable to thisManagedObject.
-
isCoordinatingManagedObject
boolean isCoordinatingManagedObject()
Indicates if theManagedObjectimplementsCoordinatingManagedObject.- Returns:
trueif theManagedObjectimplementsCoordinatingManagedObject.
-
checkReady
FunctionState checkReady(ManagedFunctionContainer managedFunction, ManagedObjectReadyCheck check, ManagedObjectContainer currentContainer)
Creates a
FunctionStateto check if the dependencies of thisManagedObjectare ready.Should a
ManagedObjectnot be ready, then will latch theManagedFunctionContainerto wait for theManagedObjectto be ready.- Parameters:
managedFunction-ManagedFunctionContainerrequesting the check of theManagedObjectto be ready.check-ManagedObjectReadyCheck.currentContainer- Optional able to include the currentManagedObjectContainerfor thisManagedObjectMetaDatain ready check. May benullto not include.- Returns:
FunctionStateinstances to check if the dependencies of thisManagedObjectare ready.
-
createObjectRegistry
ObjectRegistry<O> createObjectRegistry(ManagedFunctionContainer currentContainer)
Creates theObjectRegistryfor 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 theFunctionStatefor the recycling of theManagedObject.- Parameters:
managedObject-ManagedObjectto be recycled. Obtained by theRecycleManagedObjectParameter.getManagedObject().cleanupSequence-ManagedObjectCleanup.- Returns:
FunctionStatefor the recycling thisManagedObjectornullif no recycling is required for thisManagedObject.
-
-