Class ClusteredGreetingServiceImpl
java.lang.Object
org.j7m.middleware.examples.cluster.ClusteredGreetingServiceImpl
- All Implemented Interfaces:
ClusteredGreetingService
Simple clustered greeting implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGreets a caller.Returns the serving instance id.
-
Constructor Details
-
ClusteredGreetingServiceImpl
Creates a service instance.- Parameters:
instanceId- instance identifier
-
-
Method Details
-
greet
Greets a caller.- Specified by:
greetin interfaceClusteredGreetingService- Parameters:
name- caller name- Returns:
- greeting with instance id
-
instanceId
Returns the serving instance id.- Specified by:
instanceIdin interfaceClusteredGreetingService- Returns:
- instance id
-