Package com.quartetfs.fwk
Interface IAgent
- All Superinterfaces:
IExtendedPluginValue
- All Known Subinterfaces:
IActivePivotContinuousQuery<ResultT,,UpdateT> IActivePivotManager,IActivePivotSchema,IContinuousQuery<R,,U> IDistributedAgent,IDistributedHierarchyManager,IDistributedMessenger,IDrillthroughContinuousQuery,IDrillthroughStream,IGetAggregatesContinuousQuery,IInstanceDistributionManager,IMdxStream,IMonitoringStream,IMultiGetAggregatesNotificationContinuousQuery,IMultiVersionActivePivot,IMultiVersionDataActivePivot,IMultiVersionDistributedActivePivot,IStream<Q>,IStreamWithRanges<Q>
- All Known Implementing Classes:
AActivePivotContinuousQuery,AActivePivotStream,AAtomicAgent,ActivePivotManager,ActivePivotSchema,ActivePivotSchemaDist,ADataNodeDistributedAgent,ADelegateStream,ADistributedAgent,ADistributedMessenger,AJGroupsMessenger,AKpiMonitoringStream,AMapDelegateStream,AMdxStream,AMonitoringStream,AQueryNodeDistributedAgent,AStream,DataInstanceDistributionManager,DelegateActivePivotManager,DistributedHierarchyManager,DrillthroughContinuousQuery,DrillthroughStream,GetAggregatesContinuousQuery,GetAggregatesStream,KpiMonitoringStream,LocalMessenger,LogNettyMessenger,MapDrillthroughStream,MapGetAggregatesStream,MdxDrillthroughStream,MdxStream,MonitoredMdxStream,MonitoredStreamPublisher,MultiGetAggregatesNotificationContinuousQuery,MultiVersionActivePivot,MultiVersionDataActivePivot,MultiVersionDistributedActivePivot,NettyMessenger,NotificationMdxStream,SentinelMdxStream,StreamPublisher
An agent is a
state machine.- Author:
- ActiveViam
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBusiness logic performed during an agent state transition.static enumEnumeration of the possible states of anagent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the properties with which this agent has been initialized, ornullif this method is called before theinitialization.Returns the currentstateof this agent.voidinit(Properties props) Initializes the agent with a set of properties.voidpause()Pauses the agent.voidresume()Resumes the agent.voidstart()Starts the agent.voidstop()Definitely stops the agent.Methods inherited from interface com.quartetfs.fwk.types.IExtendedPluginValue
getType
-
Method Details
-
init
Initializes the agent with a set of properties.Those properties will be advertised by the implementors.
- Parameters:
props- The properties used to initialize this agent.- Throws:
AgentException- if the call fails.
-
getProperties
Properties getProperties()Returns the properties with which this agent has been initialized, ornullif this method is called before theinitialization.- Returns:
- the properties with which this agent has been initialized.
-
getStatus
IAgent.State getStatus()Returns the currentstateof this agent.- Returns:
- The current state of this agent.
-
start
Starts the agent. The agent starts performing its operations.An exception will be thrown if it has been paused or started before.
Starting the agent after it has been
stoppedis not supported. This kind of lifecycle operation should be done usingpause()andresume().- Throws:
AgentException- if the call fails.
-
pause
Pauses the agent. The agent stops its operations and does not perform work anymore. The agent can beresumedin order to perform work again.An exception will be thrown if the pause does not follow a
start()or if the agent has already beenstoppedor paused.- Throws:
AgentException- if the call fails.
-
resume
Resumes the agent. The agent resumes its operations and performs work again.An exception will be thrown if the resume does not follow a
pause()or if the agent has already beenstopped.- Throws:
AgentException- if the call fails.
-
stop
Definitely stops the agent. This operation is equivalent to a shutdown operation of the agent, and it cannot be restarted.To pause and later resume the agent use the appropriate
pause()andresume()APIs.An exception will be thrown if the agent is already stopped.
- Throws:
AgentException- if the call fails.
-