Package com.smeup.jardis.endpoint
Class JardisProcess
- java.lang.Object
-
- com.smeup.jardis.endpoint.JardisEndPoint
-
- com.smeup.jardis.endpoint.JardisProcess
-
public class JardisProcess extends JardisEndPoint
Create an instance of Jardis as a process. You can communicate with jardis process by using standard input and standard output- Author:
- lana
-
-
Field Summary
-
Fields inherited from class com.smeup.jardis.endpoint.JardisEndPoint
configuration
-
-
Constructor Summary
Constructors Constructor Description JardisProcess(com.smeup.jardis.core.JardisConfiguration jardisConfiguration)
-
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 anHandlervoidshutdown()voidstart()-
Methods inherited from class com.smeup.jardis.endpoint.JardisEndPoint
getConfiguration
-
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin classJardisEndPoint
-
shutdown
public void shutdown()
- Specified by:
shutdownin classJardisEndPoint
-
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- 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- Parameters:
message- The message
-
-