public class MaestroAgent extends MaestroWorkerManager implements MaestroAgentEventListener, MaestroSenderEventListener, MaestroReceiverEventListener, MaestroInspectorEventListener
| Constructor and Description |
|---|
MaestroAgent(String maestroURL,
PeerInfo peerInfo,
MaestroDataServer dataServer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(AbnormalDisconnect note)
Abnormal disconnection handler
|
void |
handle(AgentSourceRequest note) |
void |
handle(DrainRequest note) |
void |
handle(GetRequest note)
Get request handler
|
void |
handle(Halt note)
Halt request handler
|
void |
handle(LogRequest note) |
void |
handle(PingRequest note)
Ping request handler
|
void |
handle(RoleAssign note) |
void |
handle(RoleUnassign note) |
void |
handle(SetRequest note)
Set request handler
|
void |
handle(StartAgent note)
Start agent handler
|
void |
handle(StartInspector note)
Start inspector handler
|
void |
handle(StartWorker note) |
void |
handle(StatsRequest note)
Stats request handler
|
void |
handle(StopAgent note)
Stop agent handler
|
void |
handle(StopInspector note)
Stop Inspector handler
|
void |
handle(StopWorker note) |
void |
handle(TestFailedNotification note)
Test failed notification handler
|
void |
handle(TestSuccessfulNotification note)
Test success notification handler
|
void |
handle(UserCommand1Request note) |
connect, getClient, getWorkerOptions, handle, handle, handle, handle, isRunning, noteArrivedconnectComplete, connectionLost, deliveryComplete, disconnect, getId, getPeerInfo, isConnected, messageArrived, reconnect, subscribe, subscribepublic MaestroAgent(String maestroURL, PeerInfo peerInfo, MaestroDataServer dataServer) throws MaestroException
maestroURL - maestro_broker URLpeerInfo - maestro peer informationdataServer - data server objectMaestroException - if unable to create agent instancepublic void handle(StartInspector note)
handle in interface MaestroInspectorEventListenernote - StartInspector notepublic void handle(StopInspector note)
handle in interface MaestroInspectorEventListenernote - StopInspector notepublic void handle(StatsRequest note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - Stats notepublic void handle(Halt note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - Halt notepublic void handle(SetRequest note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - Set notepublic void handle(TestFailedNotification note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - NotifyFail notepublic void handle(TestSuccessfulNotification note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - NotifySuccess notepublic void handle(AbnormalDisconnect note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - AbnormalDisconnect notepublic void handle(PingRequest note) throws MaestroConnectionException, MalformedNoteException
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - Ping noteMaestroConnectionException - if host is unreachableMalformedNoteException - if note is malformedpublic void handle(GetRequest note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagernote - Get notepublic void handle(StartAgent note)
handle in interface MaestroAgentEventListenernote - Start Agent notepublic void handle(StopAgent note)
handle in interface MaestroAgentEventListenernote - Stop Agent notepublic void handle(UserCommand1Request note)
handle in interface MaestroAgentEventListenerpublic void handle(AgentSourceRequest note)
handle in interface MaestroAgentEventListenerpublic void handle(LogRequest note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagerpublic void handle(DrainRequest note)
handle in interface MaestroReceiverEventListenerpublic void handle(StartWorker note)
handle in interface MaestroEventListenerpublic void handle(StopWorker note)
handle in interface MaestroEventListenerpublic void handle(RoleAssign note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagerpublic void handle(RoleUnassign note)
handle in interface MaestroEventListenerhandle in class MaestroWorkerManagerThis documentation was released into the public domain.