Interface OfficeConfiguration
-
- All Known Implementing Classes:
OfficeBuilderImpl
public interface OfficeConfiguration
Configuration of anOffice
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
getOfficeName
java.lang.String getOfficeName()
Obtains the name of thisOffice
.- Returns:
- Name of this
Office
.
-
getMonitorClock
MonitorClock getMonitorClock()
Obtains theMonitorClock
.- Returns:
MonitorClock
. May benull
to use a default implementation.
-
getMonitorOfficeInterval
long getMonitorOfficeInterval()
Obtains the interval in milli-seconds between each time theOfficeManager
monitors theOffice
.- Returns:
- Interval in milli-seconds between each time the
OfficeManager
monitors theOffice
.
-
getMaximumFunctionStateChainLength
int getMaximumFunctionStateChainLength()
Obtains the maximumFunctionState
chain length.- Returns:
- Maximum
FunctionState
chain length.
-
getOfficeDefaultTeamName
java.lang.String getOfficeDefaultTeamName()
-
getBuilder
OfficeBuilder getBuilder()
Obtains the
OfficeBuilder
for thisOffice
.This is to allow
Asset
instances (such as aManagedObjectSource
) to provide additional configuration for theOffice
.- Returns:
OfficeBuilder
.
-
getRegisteredTeams
LinkedTeamConfiguration[] getRegisteredTeams()
Obtains the links to theOfficeFloor
Team
instances.- Returns:
- Links to the
OfficeFloor
Team
instances.
-
getRegisteredManagedObjectSources
LinkedManagedObjectSourceConfiguration[] getRegisteredManagedObjectSources()
Obtains the links to theOfficeFloor
ManagedObjectSource
instances.- Returns:
- Links to the
OfficeFloor
ManagedObjectSource
instances.
-
getBoundInputManagedObjectConfiguration
BoundInputManagedObjectConfiguration[] getBoundInputManagedObjectConfiguration()
Obtains the configuration of theManagedObjectSource
to be bound for the inputManagedObject
.- Returns:
- Configuration of the
ManagedObjectSource
to be bound for the inputManagedObject
.
-
getProcessManagedObjectConfiguration
ManagedObjectConfiguration<?>[] getProcessManagedObjectConfiguration()
- Returns:
- Listing of the configuration of the
ManagedObject
instances bound to theProcessState
.
-
getThreadManagedObjectConfiguration
ManagedObjectConfiguration<?>[] getThreadManagedObjectConfiguration()
- Returns:
- Listing of the configuration of the
ManagedObject
instances bound to theThreadState
.
-
getGovernanceConfiguration
GovernanceConfiguration<?,?>[] getGovernanceConfiguration()
Obtains theGovernanceConfiguration
.- Returns:
GovernanceConfiguration
.
-
isManuallyManageGovernance
boolean isManuallyManageGovernance()
Indicates if manually managingGovernance
viaAdministration
.- Returns:
true
to manually managedGovernance
.
-
getManagedFunctionConfiguration
ManagedFunctionConfiguration<?,?>[] getManagedFunctionConfiguration()
Obtains the configuration for theManagedFunction
instances.- Returns:
- Configuration for the
ManagedFunction
instances.
-
getOfficeEnhancers
OfficeEnhancer[] getOfficeEnhancers()
Obtains theOfficeEnhancer
instances for thisOffice
.- Returns:
- Listing of the
OfficeEnhancer
for thisOffice
.
-
getEscalationConfiguration
EscalationConfiguration[] getEscalationConfiguration()
Obtains theEscalationConfiguration
instances for theOffice
.- Returns:
EscalationConfiguration
instances for theOffice
.
-
getFlowBuilder
FlowBuilder<?> getFlowBuilder(java.lang.String namespace, java.lang.String functionName)
Obtains a
FunctionBuilder
registered with thisOfficeBuilder
.This enables addition configuration of
ManagedFunction
instances registered by aManagedObjectSource
.- Parameters:
namespace
- Namespace. Likely theManagedObjectSource
name.functionName
- Name of theManagedFunction
.- Returns:
FlowBuilder
for theManagedFunction
.
-
getStartupFunctions
ManagedFunctionInvocation[] getStartupFunctions()
Obtains the list ofManagedFunctionInvocation
instances referencing theManagedFunction
instances to invoke onOffice
start up.- Returns:
- List of start up
ManagedFunctionInvocation
references.
-
getThreadSynchronisers
ThreadSynchroniserFactory[] getThreadSynchronisers()
Obtains theThreadSynchroniserFactory
instances to synchronise theThreadLocal
state betweenTeam
instances.- Returns:
ThreadSynchroniserFactory
instances.
-
getDefaultAsynchronousFlowTimeout
long getDefaultAsynchronousFlowTimeout()
Obtains the defaultAsynchronousFlow
timeout forAsynchronousFlow
instances instigated by theOffice
.- Returns:
- Default
AsynchronousFlow
timeout forAsynchronousFlow
instances instigated by theOffice
.
-
-