public class AbstractMaestroExecutor extends Object implements Runnable
Constructor and Description |
---|
AbstractMaestroExecutor(AbstractMaestroPeer maestroPeer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected AbstractMaestroPeer |
getMaestroPeer()
Get the Maestro peer
|
void |
run()
Runs the executor
|
void |
start(String[] topics)
Start running the executor
|
void |
stop()
Stops the executor
|
public AbstractMaestroExecutor(AbstractMaestroPeer maestroPeer) throws MaestroConnectionException
maestroPeer
- a Maestro peer object is capable of exchange maestro data.MaestroConnectionException
- if unable to connect or subscribeprotected AbstractMaestroPeer getMaestroPeer()
public void start(String[] topics) throws MaestroConnectionException
topics
- the list of topics associated with this executorMaestroConnectionException
- if unable to connect to the broker and subscribe to the topicspublic void stop()
This documentation was released into the public domain.