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
public interface IAgent extends IExtendedPluginValue
An agent is astatemachine.- Author:
- ActiveViam
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIAgent.ITransitionBusiness logic performed during an agent state transition.static classIAgent.StateEnumeration of the possible states of anagent.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertiesgetProperties()Returns the properties with which this agent has been initialized, ornullif this method is called before theinitialization.IAgent.StategetStatus()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 Detail
-
init
void init(Properties props) throws AgentException
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
void start() throws AgentExceptionStarts 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
void pause() throws AgentExceptionPauses 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
void resume() throws AgentExceptionResumes 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
void stop() throws AgentException
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.
-
-