Class ClusterService
java.lang.Object
io.vertx.core.AbstractVerticle
org.pidome.server.services.AbstractService
org.pidome.server.services.cluster.ClusterService
- All Implemented Interfaces:
io.vertx.core.Verticle
The service for cluster management.
-
Field Summary
Fields inherited from class io.vertx.core.AbstractVerticle
context, vertx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
announce()
Sends an announcement on the cluster to announce this node's presence.Returns the current cluster modus.io.vertx.core.Future<ClusterHost>
Returns the cluster host information.Returns the host identification.void
Starts the cluster service.void
Stops the cluster service.Methods inherited from class org.pidome.server.services.AbstractService
start, stop
Methods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, init, processArgs
-
Constructor Details
-
ClusterService
public ClusterService()
-
-
Method Details
-
start
Starts the cluster service.- Specified by:
start
in interfaceio.vertx.core.Verticle
- Specified by:
start
in classAbstractService
- Parameters:
startPromise
- The future to identify server start.
-
announce
public void announce()Sends an announcement on the cluster to announce this node's presence.- "To Do:"
- Service permissions required here.
-
getClusterMode
Returns the current cluster modus.- Returns:
- The modus the instance is running in.
-
stop
Stops the cluster service.- Specified by:
stop
in interfaceio.vertx.core.Verticle
- Specified by:
stop
in classAbstractService
- Parameters:
stopPromise
- The future to identify server stop.
-
getHostInformation
Returns the cluster host information.- Returns:
- Host information.
-
getOptionalHostIdentification
Returns the host identification.- Returns:
- Host identification.
-