public class MaestroAgent extends MaestroWorkerManager implements MaestroAgentEventListener, MaestroSenderEventListener, MaestroReceiverEventListener, MaestroInspectorEventListener
clientName
Constructor and Description |
---|
MaestroAgent(String maestroURL,
String role,
String host,
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(FlushRequest note)
Flush request handler
|
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(SetRequest note)
Set request handler
|
void |
handle(StartAgent note)
Start agent handler
|
void |
handle(StartInspector note)
Start inspector handler
|
void |
handle(StartReceiver note)
Start receiver handler
|
void |
handle(StartSender note)
Start sender handler
|
void |
handle(StatsRequest note)
Stats request handler
|
void |
handle(StopAgent note)
Stop agent handler
|
void |
handle(StopInspector note)
Stop Inspector handler
|
void |
handle(StopReceiver note)
Stop receiver handler
|
void |
handle(StopSender note)
Stop sender handler
|
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, isRunning, noteArrived
connectComplete, connectionLost, deliveryComplete, disconnect, getClientName, getId, isConnected, messageArrived, reconnect, setClientName, subscribe, subscribe
public MaestroAgent(String maestroURL, String role, String host, MaestroDataServer dataServer) throws MaestroException
maestroURL
- maestro_broker URLrole
- agenthost
- host addressdataServer
- data server objectMaestroException
- if unable to create agent instancepublic void handle(StartInspector note)
handle
in interface MaestroInspectorEventListener
note
- StartInspector notepublic void handle(StartReceiver note)
handle
in interface MaestroReceiverEventListener
note
- StartReceiver notepublic void handle(StartSender note)
handle
in interface MaestroSenderEventListener
note
- StartSender notepublic void handle(StopInspector note)
handle
in interface MaestroInspectorEventListener
note
- StopInspector notepublic void handle(StopReceiver note)
handle
in interface MaestroReceiverEventListener
note
- StopReceiver notepublic void handle(StopSender note)
handle
in interface MaestroSenderEventListener
note
- StopSender notepublic void handle(StatsRequest note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- Stats notepublic void handle(FlushRequest note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- Flush notepublic void handle(Halt note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- Halt notepublic void handle(SetRequest note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- Set notepublic void handle(TestFailedNotification note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- NotifyFail notepublic void handle(TestSuccessfulNotification note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- NotifySuccess notepublic void handle(AbnormalDisconnect note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- AbnormalDisconnect notepublic void handle(PingRequest note) throws MaestroConnectionException, MalformedNoteException
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- Ping noteMaestroConnectionException
- if host is unreachableMalformedNoteException
- if note is malformedpublic void handle(GetRequest note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
note
- Get notepublic void handle(StartAgent note)
handle
in interface MaestroAgentEventListener
note
- Start Agent notepublic void handle(StopAgent note)
handle
in interface MaestroAgentEventListener
note
- Stop Agent notepublic void handle(UserCommand1Request note)
handle
in interface MaestroAgentEventListener
public void handle(AgentSourceRequest note)
handle
in interface MaestroAgentEventListener
public void handle(LogRequest note)
handle
in interface MaestroEventListener
handle
in class MaestroWorkerManager
public void handle(DrainRequest note)
handle
in interface MaestroReceiverEventListener
This documentation was released into the public domain.