public class StatusServer
Play server for communicating
the status of
the subscriber daemon.
This is a rest server for communicating
information such as whether the server is started or ont
as well as additional connection information.
This is mainly meant for internal use.
public static play.server.Server startServer(StatusStorage statusStorage,
Start a server based on the given subscriber.
Note that for the port to start the server on, you should
set the statusServerPortField on the subscriber
either manually or via command line. The
server defaults to port 9000.
The end points are:
/opType: returns the opType information (master/slave)
/started: if it's a master node, it returns master:started/stopped and responder:started/stopped
/connectioninfo: See the SlaveConnectionInfo and MasterConnectionInfo classes for fields.
/ids: the list of ids for all of the subscribers
statusStorage - the subscriber to base
the status server on