Package com.smeup.jardis.endpoint
Class JardisServer
- java.lang.Object
-
- com.smeup.jardis.endpoint.JardisEndPoint<JardisServerConfiguration>
-
- com.smeup.jardis.endpoint.JardisServer
-
public class JardisServer extends JardisEndPoint<JardisServerConfiguration>
- Author:
- marco.lanari
-
-
Field Summary
-
Fields inherited from class com.smeup.jardis.endpoint.JardisEndPoint
configuration
-
-
Constructor Summary
Constructors Constructor Description JardisServer()JardisServer(JardisServerConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatchBroadcastMessage(com.smeup.jardis.core.Message message)Send a broadcast message to all instances ofHandlerbooleandispatchConsumableMessage(com.smeup.jardis.core.Message message)Sends a consumable message to all instances ofHandlerDispathing is blocked if message is consumed by anHandlerintgetAdminPort()intgetPort()voidshutdown()voidstart()-
Methods inherited from class com.smeup.jardis.endpoint.JardisEndPoint
getConfiguration
-
-
-
-
Constructor Detail
-
JardisServer
public JardisServer(JardisServerConfiguration configuration) throws IOException
- Throws:
IOException
-
JardisServer
public JardisServer() throws IOException- Throws:
IOException
-
-
Method Detail
-
getPort
public int getPort()
-
getAdminPort
public int getAdminPort()
-
start
public void start()
- Specified by:
startin classJardisEndPoint<JardisServerConfiguration>
-
dispatchConsumableMessage
public boolean dispatchConsumableMessage(com.smeup.jardis.core.Message message)
Description copied from class:JardisEndPointSends a consumable message to all instances ofHandlerDispathing is blocked if message is consumed by anHandler- Specified by:
dispatchConsumableMessagein classJardisEndPoint<JardisServerConfiguration>- Parameters:
message- The message- Returns:
- true if one Handler consumed the message, false elsewhere
-
dispatchBroadcastMessage
public void dispatchBroadcastMessage(com.smeup.jardis.core.Message message)
Description copied from class:JardisEndPointSend a broadcast message to all instances ofHandler- Specified by:
dispatchBroadcastMessagein classJardisEndPoint<JardisServerConfiguration>- Parameters:
message- The message
-
shutdown
public void shutdown()
- Specified by:
shutdownin classJardisEndPoint<JardisServerConfiguration>
-
-