public class MathService extends BasicService implements IMathService
DEFAULT_LOCAL, DEFAULT_REMOTEEMPTY_SERVICES| Constructor and Description |
|---|
MathService(IServiceProvider provider)
Create a new add service.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addB(int a,
int b)
Tests a blocking call (should be avoided!).
|
IFuture<Integer> |
addNB(int a,
int b)
Tests a non-blocking call.
|
IFuture<Void> |
divZero()
Tests a method that throws an exception.
|
double |
getPi()
Tests a constant call, i.e. call without
parameters are assumed to be constant so that
their value can be cached on local side.
|
void |
printMessage(String message)
Print out some message.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getPropertyMap, getProviderId, getServiceIdentifier, isValid, setPropertyMap, shutdownService, startServicegetClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropertyMap, getServiceIdentifier, isValidpublic MathService(IServiceProvider provider)
public IFuture<Integer> addNB(int a, int b)
addNB in interface IMathServicea - First number.b - Second number.public int addB(int a,
int b)
addB in interface IMathServicea - First number.b - Second number.public double getPi()
getPi in interface IMathServicepublic void printMessage(String message)
printMessage in interface IMathServicemessage - The message.public IFuture<Void> divZero()
divZero in interface IMathServiceCopyright © 2012. All Rights Reserved.