public abstract class MaestroWorkerManager extends AbstractMaestroPeer<MaestroEvent<MaestroEventListener>> implements MaestroEventListener
| Constructor and Description |
|---|
MaestroWorkerManager(String maestroURL,
PeerInfo peerInfo,
MaestroDataServer dataServer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
protected MaestroReceiverClient |
getClient() |
protected WorkerOptions |
getWorkerOptions() |
void |
handle(AbnormalDisconnect note) |
void |
handle(DrainCompleteNotification note) |
void |
handle(GetRequest note) |
void |
handle(GroupJoinRequest note) |
void |
handle(GroupLeaveRequest note) |
void |
handle(Halt note) |
abstract void |
handle(LogRequest note) |
protected void |
handle(LogRequest note,
File logDir)
Handle a log request note
|
void |
handle(PingRequest note) |
void |
handle(RoleAssign note) |
void |
handle(RoleUnassign note) |
void |
handle(SetRequest note) |
void |
handle(StatsRequest note) |
void |
handle(TestFailedNotification note) |
void |
handle(TestSuccessfulNotification note) |
boolean |
isRunning() |
protected void |
noteArrived(MaestroEvent<MaestroEventListener> note)
The entry point for handling Maestro messages
|
connectComplete, connectionLost, deliveryComplete, disconnect, getId, getPeerInfo, isConnected, messageArrived, reconnect, subscribe, subscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandle, handlepublic MaestroWorkerManager(String maestroURL, PeerInfo peerInfo, MaestroDataServer dataServer)
maestroURL - Maestro broker URLpeerInfo - Information about this peerdataServer - the data server instanceprotected WorkerOptions getWorkerOptions()
protected MaestroReceiverClient getClient()
public void connect()
throws MaestroConnectionException
connect in class AbstractMaestroPeer<MaestroEvent<MaestroEventListener>>MaestroConnectionExceptionpublic boolean isRunning()
isRunning in class AbstractMaestroPeer<MaestroEvent<MaestroEventListener>>protected final void noteArrived(MaestroEvent<MaestroEventListener> note) throws MaestroConnectionException
AbstractMaestroPeernoteArrived in class AbstractMaestroPeer<MaestroEvent<MaestroEventListener>>note - the note that arrivedMaestroConnectionException - for Maestro related errorspublic void handle(StatsRequest note)
handle in interface MaestroEventListenerpublic void handle(Halt note)
handle in interface MaestroEventListenerpublic void handle(SetRequest note)
handle in interface MaestroEventListenerpublic void handle(TestFailedNotification note)
handle in interface MaestroEventListenerpublic void handle(TestSuccessfulNotification note)
handle in interface MaestroEventListenerpublic void handle(AbnormalDisconnect note)
handle in interface MaestroEventListenerpublic void handle(PingRequest note) throws MaestroConnectionException, MalformedNoteException
handle in interface MaestroEventListenerMaestroConnectionExceptionMalformedNoteExceptionpublic void handle(GetRequest note)
handle in interface MaestroEventListenerpublic void handle(DrainCompleteNotification note)
handle in interface MaestroEventListenerprotected void handle(LogRequest note, File logDir)
note - the note to handlelogDir - the log directorypublic void handle(GroupJoinRequest note)
handle in interface MaestroEventListenerpublic void handle(GroupLeaveRequest note)
handle in interface MaestroEventListenerpublic void handle(RoleAssign note)
handle in interface MaestroEventListenerpublic void handle(RoleUnassign note)
handle in interface MaestroEventListenerpublic abstract void handle(LogRequest note)
handle in interface MaestroEventListenerThis documentation was released into the public domain.