BEAST
eu.baltrad.beast.admin.AdministratorImpl Class Reference
Inheritance diagram for eu.baltrad.beast.admin.AdministratorImpl:
eu.baltrad.beast.admin.Administrator

Public Member Functions

CommandResponse handle (Command command)
 Manages all commands.
 
CommandResponse handleCommand (HelpCommand command)
 Returns help information.
 
CommandResponse handleCommand (AdaptorCommand command)
 Handles an adaptor command.
 
CommandResponse handleCommand (AnomalyDetectorCommand command)
 Handles an anomaly detector command.
 
CommandResponse handleCommand (RouteCommand command)
 General handling of all route commands.
 
CommandResponse handleCommand (ScheduleCommand command)
 General handling of schedule commands.
 
CommandResponse handleCommand (SettingCommand command)
 General handling of schedule commands.
 
IBltAdaptorManager getAdaptorManager ()
 
void setAdaptorManager (IBltAdaptorManager adaptorManager)
 
IAnomalyDetectorManager getAnomalyDetectorManager ()
 
void setAnomalyDetectorManager (IAnomalyDetectorManager anomalyDetectorManager)
 
IRouterManager getRouterManager ()
 
void setRouterManager (IRouterManager routerManager)
 
RouteCommandHelper getRouteCommandHelper ()
 
void setRouteCommandHelper (RouteCommandHelper routeCommandHelper)
 
IBeastScheduler getScheduler ()
 
void setScheduler (IBeastScheduler scheduler)
 
JsonGenerator getJsonGenerator ()
 
void setJsonGenerator (JsonGenerator jsonGenerator)
 
JsonCommandParser getJsonCommandParser ()
 
void setJsonCommandParser (JsonCommandParser jsonCommandParser)
 

Protected Member Functions

void addOrUpdateAdaptor (Adaptor adaptorToHandle)
 Adds or updates an adaptor.
 
void addOrUpdateAnomalyDetector (AnomalyDetector indetector)
 Adds or updates an anomaly detector depending if it already exists or not.
 
void addOrUpdateEntry (CronEntry entry)
 Updates or ads a cron entry.
 

Detailed Description

Author
anders

Member Function Documentation

◆ addOrUpdateAdaptor()

void eu.baltrad.beast.admin.AdministratorImpl.addOrUpdateAdaptor ( Adaptor adaptorToHandle)
inlineprotected

Adds or updates an adaptor.

Parameters
adaptorToHandlethe adaptor to add or update

◆ addOrUpdateAnomalyDetector()

void eu.baltrad.beast.admin.AdministratorImpl.addOrUpdateAnomalyDetector ( AnomalyDetector indetector)
inlineprotected

Adds or updates an anomaly detector depending if it already exists or not.

Parameters
indetectorthe detector to add/update

◆ addOrUpdateEntry()

void eu.baltrad.beast.admin.AdministratorImpl.addOrUpdateEntry ( CronEntry entry)
inlineprotected

Updates or ads a cron entry.

Parameters
entrythe entry to update or add

◆ getAdaptorManager()

IBltAdaptorManager eu.baltrad.beast.admin.AdministratorImpl.getAdaptorManager ( )
inline
Returns
the adaptorManager

◆ getAnomalyDetectorManager()

IAnomalyDetectorManager eu.baltrad.beast.admin.AdministratorImpl.getAnomalyDetectorManager ( )
inline
Returns
the anomalyDetectorManager

◆ getJsonCommandParser()

JsonCommandParser eu.baltrad.beast.admin.AdministratorImpl.getJsonCommandParser ( )
inline
Returns
the jsonCommandParser

◆ getJsonGenerator()

JsonGenerator eu.baltrad.beast.admin.AdministratorImpl.getJsonGenerator ( )
inline
Returns
the jsonGenerator

◆ getRouteCommandHelper()

RouteCommandHelper eu.baltrad.beast.admin.AdministratorImpl.getRouteCommandHelper ( )
inline
Returns
the routeCommandHelper

◆ getRouterManager()

IRouterManager eu.baltrad.beast.admin.AdministratorImpl.getRouterManager ( )
inline
Returns
the routerManager

◆ getScheduler()

IBeastScheduler eu.baltrad.beast.admin.AdministratorImpl.getScheduler ( )
inline
Returns
the scheduler

◆ handle()

CommandResponse eu.baltrad.beast.admin.AdministratorImpl.handle ( Command command)
inline

Manages all commands.

Parameters
command- the command
Returns
a CommandResponse
Exceptions
AdministratorExceptionon error

Implements eu.baltrad.beast.admin.Administrator.

◆ handleCommand() [1/6]

CommandResponse eu.baltrad.beast.admin.AdministratorImpl.handleCommand ( AdaptorCommand command)
inline

Handles an adaptor command.

Parameters
commandthe adaptor command
Returns
the command response

◆ handleCommand() [2/6]

CommandResponse eu.baltrad.beast.admin.AdministratorImpl.handleCommand ( AnomalyDetectorCommand command)
inline

Handles an anomaly detector command.

Parameters
commandthe command
Returns
the response

◆ handleCommand() [3/6]

CommandResponse eu.baltrad.beast.admin.AdministratorImpl.handleCommand ( HelpCommand command)
inline

Returns help information.

Parameters
commandthe help command
Returns
the help response

◆ handleCommand() [4/6]

CommandResponse eu.baltrad.beast.admin.AdministratorImpl.handleCommand ( RouteCommand command)
inline

General handling of all route commands.

Parameters
commandthe command
Returns
the response

◆ handleCommand() [5/6]

CommandResponse eu.baltrad.beast.admin.AdministratorImpl.handleCommand ( ScheduleCommand command)
inline

General handling of schedule commands.

Parameters
commandthe schedule command
Returns
the response to this command

◆ handleCommand() [6/6]

CommandResponse eu.baltrad.beast.admin.AdministratorImpl.handleCommand ( SettingCommand command)
inline

General handling of schedule commands.

Parameters
commandthe schedule command
Returns
the response to this command

◆ setAdaptorManager()

void eu.baltrad.beast.admin.AdministratorImpl.setAdaptorManager ( IBltAdaptorManager adaptorManager)
inline
Parameters
adaptorManagerthe adaptorManager to set

◆ setAnomalyDetectorManager()

void eu.baltrad.beast.admin.AdministratorImpl.setAnomalyDetectorManager ( IAnomalyDetectorManager anomalyDetectorManager)
inline
Parameters
anomalyDetectorManagerthe anomalyDetectorManager to set

◆ setJsonCommandParser()

void eu.baltrad.beast.admin.AdministratorImpl.setJsonCommandParser ( JsonCommandParser jsonCommandParser)
inline
Parameters
jsonCommandParserthe jsonCommandParser to set

◆ setJsonGenerator()

void eu.baltrad.beast.admin.AdministratorImpl.setJsonGenerator ( JsonGenerator jsonGenerator)
inline
Parameters
jsonGeneratorthe jsonGenerator to set

◆ setRouteCommandHelper()

void eu.baltrad.beast.admin.AdministratorImpl.setRouteCommandHelper ( RouteCommandHelper routeCommandHelper)
inline
Parameters
routeCommandHelperthe routeCommandHelper to set

◆ setRouterManager()

void eu.baltrad.beast.admin.AdministratorImpl.setRouterManager ( IRouterManager routerManager)
inline
Parameters
routerManagerthe routerManager to set

◆ setScheduler()

void eu.baltrad.beast.admin.AdministratorImpl.setScheduler ( IBeastScheduler scheduler)
inline
Parameters
schedulerthe scheduler to set

The documentation for this class was generated from the following file: