public class MathService extends BasicService implements IMathService
EMPTY_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.
|
void |
printMessage(String message)
Print out some message.
|
addNFProperties, createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInternalAccess, getLocalDefaultTimeout, getPropertyMap, getProviderId, getRemoteDefaultTimeout, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setLocalDefaultTimeout, setPropertyMap, setRemoteDefaultTimeout, shutdownService, startServiceaddMethodNFProperty, getMethodNFAllPropertyNames, getMethodNFPropertyMetaInfo, getMethodNFPropertyMetaInfos, getMethodNFPropertyMetaInfos, getMethodNFPropertyNames, getMethodNFPropertyValue, getMethodNFPropertyValue, removeMethodNFProperty, shutdownNFPropertyProvideraddNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyValue, getNFPropertyValue, getParent, removeNFProperty, setParentgetClass, notify, notifyAll, toString, wait, wait, waitgetPropertyMap, getServiceIdentifier, isValidaddNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyValue, getNFPropertyValue, removeNFProperty, shutdownNFPropertyProvideraddMethodNFProperty, getMethodNFAllPropertyNames, getMethodNFPropertyMetaInfo, getMethodNFPropertyMetaInfos, getMethodNFPropertyMetaInfos, getMethodNFPropertyNames, getMethodNFPropertyValue, getMethodNFPropertyValue, removeMethodNFProperty, shutdownNFPropertyProviderpublic 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 © 2013. All Rights Reserved.