public class DefaultService extends ServiceCommons implements LocalService, OutgoingDiscoveryInfosProvider
This class should be used to create a service. A new service should extend the DefaultService class
and add operations to the newly created service. It is also possible to use the default implementation.
public class SampleService extends DefaultService {
private String namespace = "http://www.namespace.org";
private URI serviceId = new URI(namespace + "/sampleService");
private QName serviceType = new QName("sampleService", namespace);
public SampleService() {
super();
setServiceId(serviceId);
// add operations...
addOperation(new getCurrentTime());
}
private class GetCurrentTime extends Operation {
GetCurrentTime() {
super("GetCurrentTime", serviceType);
Type stringType = SchemaUtil.TYPE_STRING;
setOutput(new Element(new QName("Time", namespace), stringType));
setInputName("input");
}
public ParameterValue invokeImpl(ParameterValue parameterValue, CredentialInfo credentialInfo) throws
InvocationException, CommunicationException {
ParameterValue paramTimeVal = createOutputValue();
ParameterValueManagement.setString(paramTimeVal, null, ClockDevice.getCurrentTime(null));
return paramTimeVal;
}
}
}
A DefaultService will respond to the following request message types:
GetMessage
SubscribeMessage UnsubscribeMessage
GetStatusMessage RenewMessage
InvokeMessage with the appropriate response message types:
GetMetadataResponseMessage
SubscribeResponseMessage UnsubscribeResponseMessage GetStatusResponseMessage RenewResponseMessage
InvokeMessage | Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultService.ServiceMessageListener |
ServiceCommons.PortType| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BINDING_POSTFIX |
protected HashMap |
communicationAutoBindings |
protected HashMap |
communicationBindingsDown |
protected HashMap |
communicationBindingsUp |
protected int |
configurationId
Configuration identifier
|
protected static java.lang.String |
FAULT_MSG_POSTFIX |
protected HostedMData |
hosted |
protected static java.lang.String |
IN_MSG_POSTFIX |
protected static java.lang.String |
OUT_MSG_POSTFIX |
protected HashMap |
outgoingDiscoveryInfosDown |
protected HashMap |
outgoingDiscoveryInfosUp |
protected LocalDevice |
parentDevice |
protected HashMap |
resourceURIs |
protected static byte |
SERVICE_STATE_REGISTERED |
protected static byte |
SERVICE_STATE_RUNNING |
protected static byte |
SERVICE_STATE_UNREGISTERED |
protected ServiceProperties |
serviceProp |
protected ServiceReference |
serviceReference |
protected byte |
state |
protected SubscriptionManager |
subscriptionManager |
protected HashMap |
wsdlURIs |
customMData, events, operations, portTypes, wsdlsNO_PARAMETER| Constructor and Description |
|---|
DefaultService()
Deprecated.
|
DefaultService(int configurationId)
Deprecated.
|
DefaultService(int configurationId,
java.lang.String comManId)
Default service with given configuration identifier.
|
DefaultService(java.lang.String comManId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinding(CommunicationAutoBinding autoBinding)
Adds the given autoBinding to this
Bindable. |
void |
addBinding(CommunicationBinding binding)
Adds the given binding to this
Bindable. |
void |
addCustomMData(java.lang.String communicationManagerId,
UnknownDataContainer container) |
void |
addEventSource(EventSource event)
Add an event to this service.
|
void |
addOperation(Operation operation)
Add an operation to this service.
|
void |
addOutgoingDiscoveryInfo(DiscoveryAutoBinding autoBinding) |
void |
addOutgoingDiscoveryInfo(OutgoingDiscoveryInfo info)
Adds the specified outgoing discovery info to this device.
|
void |
addPortType(QName portTypeName) |
void |
clearBindings()
Removes all bindings from this
Bindable instance. |
protected EventSource |
createEventSource(WSDLOperation wsdlOperation)
Creates a
DefaultEventSource instance suitable for usage within this service instance. |
protected IncomingMessageListener |
createListener(CredentialInfo credInfo) |
protected Operation |
createOperation(WSDLOperation wsdlOperation)
Creates an
Operation instance suitable for usage within this service instance. |
void |
define(URI wsdlUri,
CredentialInfo credentialInfo)
Deprecated.
|
void |
define(URI wsdlUri,
CredentialInfo credentialInfo,
java.lang.String comManId)
Enables dynamic service creation from an existing WSDL description.
|
void |
define(WSDL wsdl)
Enables dynamic service creation from an existing WSDL description.
|
protected void |
deployMetadataResources() |
protected void |
deployMetadataResources(Iterator bindings)
Registers all WSDL and XML Schema files to the internal resource server (e.g.
|
void |
deviceCommunicationBindingDestroyed(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceCommunicationBindingDown(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceCommunicationBindingUp(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceNewCommunicationBindingAvailable(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceStartUpdates() |
void |
deviceStopUpdates() |
void |
disconnectAllServiceReferences(boolean resetServiceRefs)
The method disconnected all ServiceReferences from this service.
|
boolean |
equals(java.lang.Object obj) |
protected void |
exclusiveLock()
Creates a exclusive lock for this service.
|
Iterator |
getAllEventSources()
Returns all
EventSources of this service. |
Iterator |
getAllOperations()
Returns all
Operations from this service. |
AuthorizationManager |
getAuthorizationManager()
Returns the
AuthorizationManager for this LocalService. |
Iterator |
getCommunicationAutoBindings()
Returns an iterator over all
autoBindings assigned to this Bindable instance. |
Iterator |
getCommunicationBindings()
Returns an iterator over all
bindings assigned to this Bindable
instance. |
int |
getConfigurationID()
Gets configuration identifier.
|
UnknownDataContainer[] |
getCustomMData(java.lang.String communicationManagerId)
The method returns all custom metadata
|
WSDL |
getDescription(java.lang.String targetNamespace)
Returns a WSDL document describing this service by the given namespace.
|
Iterator |
getDescriptionsForPortTypes()
Returns an iterator containing all WSDL documents describing this service.
|
Iterator |
getEprInfos()
Returns an iterator of
EprInfo. |
EventSource |
getEventSource(QName portType,
java.lang.String eventName,
java.lang.String inputName,
java.lang.String outputName)
Returns the first
EventSource matching the given criteria. |
Iterator |
getEventSources(QName portType,
java.lang.String eventName,
java.lang.String inputName,
java.lang.String outputName)
Returns all
EventSources matching the given criteria. |
HostedMData |
getHosted()
Returns the
HostedMData of the LocalService. |
Operation |
getOperation(QName portType,
java.lang.String opName,
java.lang.String inputName,
java.lang.String outputName)
Returns the first
Operation matching the given criteria. |
Iterator |
getOperations(QName portType,
java.lang.String opName,
java.lang.String inputName,
java.lang.String outputName)
Returns all
Operations matching the given criteria. |
Set |
getOutgoingDiscoveryInfos() |
LocalDevice |
getParentDevice()
Returns the parent Device of this LocalService.
|
DeviceReference |
getParentDeviceReference(SecurityKey securityKey)
Gets device reference of parent device.
|
Iterator |
getPortTypes()
Gets service port types.
|
QNameSet |
getPortTypesQNameSet() |
URI |
getServiceId()
Gets service id
|
ServiceReference |
getServiceReference(SecurityKey securityKey)
Gets the service reference.
|
long |
getStatus(ClientSubscription subscription,
CredentialInfo credentialInfo)
Returns the duration in milliseconds until expiration of the specified client subscription.
|
SubscriptionManager |
getSubscriptionManager() |
Iterator |
getTargetNamespaces()
Returns the namespaces based on the port types for this service.
|
boolean |
hasCommunicationAutoBindings()
Returns
true only if this instance has at least one binding assigned. |
boolean |
hasCommunicationBindings()
|
int |
hashCode() |
boolean |
hasOutgoingDiscoveryInfos() |
boolean |
isRemote()
Is the service remote (proxy) or local?
|
boolean |
isRunning()
Returns
true, if this local service is currently in the running state. |
void |
pause()
Pauses service.
|
protected void |
recurseLinkedSchemas(Schema schema,
CommunicationBinding binding,
java.lang.String resourcesBasePath,
int depth) |
protected void |
recurseLinkedSchemas(Schema schema,
CommunicationBinding binding,
java.lang.String resourcesBasePath,
int depth,
DataStructure deployedNamespaces) |
protected void |
releaseExclusiveLock()
Releases a exclusive lock for this service.
|
protected void |
releaseSharedLock()
Releases a shared lock for this service.
|
boolean |
removeBinding(CommunicationAutoBinding autoBinding) |
boolean |
removeBinding(CommunicationBinding binding)
Removes the specified binding from this
Bindable instance. |
boolean |
removeOutgoingDiscoveryInfo(DiscoveryAutoBinding autoBinding) |
boolean |
removeOutgoingDiscoveryInfo(OutgoingDiscoveryInfo info)
Removes a previously
added outgoing
discovery info from this device. |
long |
renew(ClientSubscription subscription,
long duration,
CredentialInfo credentialInfo)
Renews an existing subscription with a new duration.
|
boolean |
serviceMatches(QNameSet searchTypes) |
void |
setAuthorizationManager(AuthorizationManager authorizationManager)
Set the
AuthorizationManager for this LocalService. |
void |
setCustomMData(java.lang.String communicationManagerId,
ArrayList customMData)
Set the custom metadata
|
void |
setParentDevice(LocalDevice device)
Sets the parent device for this service.
|
void |
setServiceId(URI serviceId)
Sets the service identifier for this service.
|
protected void |
sharedLock()
Creates a shared lock for this service.
|
void |
start()
Starts this service.
|
void |
stop()
Stops this service.
|
ClientSubscription |
subscribe(EventSink sink,
java.lang.String clientSubscriptionId,
URISet eventActionURIs,
long duration,
CredentialInfo credentialInfo)
Initializes event receiving from specified event sender.
|
protected void |
undeployMetadataResources() |
void |
unsubscribe(ClientSubscription subscription,
CredentialInfo credentialInfo)
Unsubscribe specified subscription.
|
getDescriptions, getEventsInternal, getExistingDescription, getPortTypeAttribute, getPortTypeAttributes, getPortTypesInternal, hasPortTypeAttributes, processWSDLPortType, setPortTypeAttribute, setPortTypeAttributes, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescriptions, getPortTypeAttribute, getPortTypeAttributes, hasPortTypeAttributesprotected static final byte SERVICE_STATE_UNREGISTERED
protected static final byte SERVICE_STATE_REGISTERED
protected static final byte SERVICE_STATE_RUNNING
protected static final java.lang.String IN_MSG_POSTFIX
protected static final java.lang.String OUT_MSG_POSTFIX
protected static final java.lang.String FAULT_MSG_POSTFIX
protected static final java.lang.String BINDING_POSTFIX
protected final HostedMData hosted
protected final ServiceProperties serviceProp
protected final HashMap wsdlURIs
protected final HashMap resourceURIs
protected int configurationId
protected ServiceReference serviceReference
protected LocalDevice parentDevice
protected byte state
protected SubscriptionManager subscriptionManager
protected HashMap communicationAutoBindings
protected HashMap communicationBindingsUp
protected HashMap communicationBindingsDown
protected HashMap outgoingDiscoveryInfosUp
protected HashMap outgoingDiscoveryInfosDown
public DefaultService()
public DefaultService(int configurationId)
public DefaultService(java.lang.String comManId)
public DefaultService(int configurationId,
java.lang.String comManId)
Creates an default service and tries to load the configuration properties for the service.
configurationId - configuration identifier.protected IncomingMessageListener createListener(CredentialInfo credInfo)
public boolean hasCommunicationAutoBindings()
Bindabletrue only if this instance has at least one binding assigned. Returns false, if it doesn't have any
autoBindings.hasCommunicationAutoBindings in interface Bindablepublic boolean hasCommunicationBindings()
Bindabletrue only if this Bindable instance has at least one binding assigned. Returns false, if it doesn't have any
bindings.hasCommunicationBindings in interface Bindablepublic Iterator getCommunicationAutoBindings()
BindableautoBindings assigned to this Bindable instance. This
iterator will have no next elements (rather than being
), if the Bindable doesn't have any
bindings.getCommunicationAutoBindings in interface Bindablebindingspublic Iterator getCommunicationBindings()
Bindablebindings assigned to this Bindable
instance. This iterator will have no next elements (rather than being ), if the
Bindable doesn't have any bindings.getCommunicationBindings in interface Bindablebindingspublic void addBinding(CommunicationAutoBinding autoBinding) throws WS4DIllegalStateException
BindableBindable. Does nothing if the Bindable
already contains the binding.addBinding in interface BindableWS4DIllegalStateException - in case this Bindable doesn't currently support modifications (see #supportsBindingChanges())public void addBinding(CommunicationBinding binding) throws WS4DIllegalStateException
BindableBindable. Does nothing if the Bindable
already contains the binding.addBinding in interface Bindablebinding - the binding to addWS4DIllegalStateException - in case this Bindable doesn't currently support modifications (see #supportsBindingChanges())public boolean removeBinding(CommunicationBinding binding) throws WS4DIllegalStateException
BindableBindable instance. Does nothing, if the
Bindable doesn't contain the given binding. Returns true if the
binding was removed and false if it didn't exist.removeBinding in interface Bindablebinding - the binding to removetrue if this Bindable instance had the given binding assigned and it was
removed successfully, false otherwiseWS4DIllegalStateException - in case this Bindable doesn't currently support modifications (see #supportsBindingChanges())public boolean removeBinding(CommunicationAutoBinding autoBinding) throws WS4DIllegalStateException
removeBinding in interface BindableWS4DIllegalStateExceptionpublic void clearBindings()
throws WS4DIllegalStateException
BindableBindable instance. Does nothing if there are no
bindings assigned.clearBindings in interface BindableWS4DIllegalStateException - in case this Bindable doesn't support modifications at the current time (see #supportsBindingChanges())public boolean serviceMatches(QNameSet searchTypes)
public void start()
throws java.io.IOException
LocalServicestart in interface LocalServicejava.io.IOExceptionpublic void stop()
throws java.io.IOException
LocalServicestop in interface LocalServicejava.io.IOExceptionpublic void pause()
LocalServicepause in interface LocalServicepublic boolean isRunning()
LocalServicetrue, if this local service is currently in the running state. Returns
false otherwise.isRunning in interface LocalServicepublic ServiceReference getServiceReference(SecurityKey securityKey)
ServicegetServiceReference in interface Servicepublic void disconnectAllServiceReferences(boolean resetServiceRefs)
Servicetrue all service
references will be reseted.disconnectAllServiceReferences in interface Serviceprotected void sharedLock()
protected void exclusiveLock()
protected void releaseSharedLock()
protected void releaseExclusiveLock()
public boolean isRemote()
Servicepublic URI getServiceId()
ServicegetServiceId in interface Servicepublic void setServiceId(URI serviceId)
The service identifier identifies the service uniquely for the parent device.
setServiceId in interface LocalServiceserviceId - the service identifier to set.public Operation getOperation(QName portType, java.lang.String opName, java.lang.String inputName, java.lang.String outputName)
ServiceOperation matching the given criteria. Use the constant
Service.SERVICE_NO_PARAMETER to indicate that the operation has explicitly no input or
output parameter (it could be a one-way message or something similar). Supplying null as a
parameter makes the method ignore it (matches all).getOperation in interface ServicegetOperation in class ServiceCommonspublic Iterator getAllOperations()
ServiceOperations from this service.getAllOperations in interface ServicegetAllOperations in class ServiceCommonspublic Iterator getOperations(QName portType, java.lang.String opName, java.lang.String inputName, java.lang.String outputName)
ServiceOperations matching the given criteria. Use the constant
Service.SERVICE_NO_PARAMETER to indicate that the operation has explicitly no input or
output parameter (it could be a one-way message or something similar). Supplying null as a
parameter makes the method ignores the parameter (matches all).getOperations in interface ServicegetOperations in class ServiceCommonspublic Iterator getAllEventSources()
ServiceEventSources of this service.getAllEventSources in interface ServicegetAllEventSources in class ServiceCommonspublic EventSource getEventSource(QName portType, java.lang.String eventName, java.lang.String inputName, java.lang.String outputName)
ServiceEventSource matching the given criteria. Use the constant
Service.SERVICE_NO_PARAMETER to indicate that the operation has explicitly no input or
output parameter (it could be a one-way message or something similar). Supplying null as a
parameter makes the method ignore it (matches all).getEventSource in interface ServicegetEventSource in class ServiceCommonspublic Iterator getEventSources(QName portType, java.lang.String eventName, java.lang.String inputName, java.lang.String outputName)
ServiceEventSources matching the given criteria. Use the constant
Service.SERVICE_NO_PARAMETER to indicate that the operation has explicitly no input or
output parameter (it could be a one-way message or something similar). Supplying null as a
parameter makes the method ignore it (matches all).getEventSources in interface ServicegetEventSources in class ServiceCommonspublic UnknownDataContainer[] getCustomMData(java.lang.String communicationManagerId)
ServiceCommonsgetCustomMData in interface ServicegetCustomMData in class ServiceCommonspublic HostedMData getHosted()
LocalServiceHostedMData of the LocalService.getHosted in interface LocalServicepublic void setCustomMData(java.lang.String communicationManagerId,
ArrayList customMData)
setCustomMData in interface LocalServicecustomMData - String which contains the new custom metadata.public void addCustomMData(java.lang.String communicationManagerId,
UnknownDataContainer container)
addCustomMData in interface LocalServiceorg.ws4d.java.service.LocalDevice#addCustomMData(UnknownDataContainer)public QNameSet getPortTypesQNameSet()
public Iterator getPortTypes()
ServicegetPortTypes in interface ServiceQName.public void addPortType(QName portTypeName)
protected void deployMetadataResources()
public Iterator getEprInfos()
ServiceEprInfo.getEprInfos in interface ServiceEprInfo.public void addOperation(Operation operation)
LocalServiceaddOperation in interface LocalServiceoperation - operation to add.public Set getOutgoingDiscoveryInfos()
getOutgoingDiscoveryInfos in interface OutgoingDiscoveryInfosProviderpublic void addOutgoingDiscoveryInfo(OutgoingDiscoveryInfo info)
info - the new protocol domain to add to this devicepublic boolean removeOutgoingDiscoveryInfo(OutgoingDiscoveryInfo info)
added outgoing
discovery info from this device.info - the output domain to removepublic boolean hasOutgoingDiscoveryInfos()
public void addOutgoingDiscoveryInfo(DiscoveryAutoBinding autoBinding)
public boolean removeOutgoingDiscoveryInfo(DiscoveryAutoBinding autoBinding)
public void addEventSource(EventSource event)
LocalServiceaddEventSource in interface LocalServiceevent - event to add.public int getConfigurationID()
The configuration identifier is necessary to resolve properties based configuration.
public LocalDevice getParentDevice()
LocalServicegetParentDevice in interface LocalServicepublic void setParentDevice(LocalDevice device)
Every service is assigned to one device.
setParentDevice in interface LocalServicedevice - the device which the service should be assigned to.public DeviceReference getParentDeviceReference(SecurityKey securityKey)
Servicenull in case this
service doesn't reside on a device or its underlying device is not known at this time.getParentDeviceReference in interface Servicenullprotected void deployMetadataResources(Iterator bindings)
protected void recurseLinkedSchemas(Schema schema, CommunicationBinding binding, java.lang.String resourcesBasePath, int depth) throws java.io.IOException
java.io.IOExceptionprotected void recurseLinkedSchemas(Schema schema, CommunicationBinding binding, java.lang.String resourcesBasePath, int depth, DataStructure deployedNamespaces) throws java.io.IOException
java.io.IOExceptionprotected void undeployMetadataResources()
public Iterator getTargetNamespaces()
public Iterator getDescriptionsForPortTypes()
LocalServicegetDescriptionsForPortTypes in interface LocalServicepublic WSDL getDescription(java.lang.String targetNamespace)
getDescription in interface ServicetargetNamespace - the namespace.public void define(URI wsdlUri, CredentialInfo credentialInfo, java.lang.String comManId) throws java.io.IOException
This method analyzes the WSDL loaded from wsdlUri and adds all supported port types found to this
service. For each supported operation (i.e. either one-way or request-response transmission types), an instance
of class OperationStub is created and added, whereas for each event source (aka. notification or
solicit-response transmission types) an instance of class DefaultEventSource is added.
The actual business logic of imported one-way or request-response operations can be specified on the
corresponding OperationStub instance after having obtained it from this service via one of the
getOperation(...) methods like this:
DefaultService myService = ...;
myService.define("http://www.example.org/myService/description.wsdl");
InvokeDelegate myDelegate = ...;
Operation myOp = (OperationStub) myService.getOperation("http://www.example.org/MyServicePortType/MyOperation");
myOp.setDelegate(myDelegate);
The InvokeDelegate instance above defines the actual code to be executed when the
myOperation gets called. Its InvokeDelegate.invokeImpl(Operation, ParameterValue,
CredentialInfo) method receives the parameters sent to the operation, as well as the operation instance itself.
The latter is useful for implementors who want to share a single InvokeDelegate instance between
different operations.
Note that the cast to OperationStub above is only safe if the operation being obtained was actually
created via a call to this define(URI, CredentialInfo) method - in any other case, e.g. when it was
added manually by means of addOperation(Operation), this cast will most likely result in a
java.lang.ClassCastException.
wsdlUri - URI pointing to the location of the WSDL document to define this service from; the URI may have an
arbitrary schema (e.g. file, http, https, etc.) as long as there is runtime support available for
accessing it within the JMEDS framework,java.io.IOException - if a failure occurs while attempting to obtain the WSDL from the given URIpublic void define(URI wsdlUri, CredentialInfo credentialInfo) throws java.io.IOException
wsdlUri - credentialInfo - java.io.IOExceptionpublic void define(WSDL wsdl) throws java.io.IOException
This method analyzes the WSDL loaded from wsdlUri and adds all supported port types found to this
service. For each supported operation (i.e. either one-way or request-response transmission types), an instance
of class OperationStub is created and added, whereas for each event source (aka. notification or
solicit-response transmission types) an instance of class DefaultEventSource is added.
The actual business logic of imported one-way or request-response operations can be specified on the
corresponding OperationStub instance after having obtained it from this service via one of the
getOperation(...) methods like this:
DefaultService myService = ...;
myService.define("http://www.example.org/myService/description.wsdl");
InvokeDelegate myDelegate = ...;
Operation myOp = (OperationStub) myService.getOperation("http://www.example.org/MyServicePortType/MyOperation");
myOp.setDelegate(myDelegate);
The InvokeDelegate instance above defines the actual code to be executed when the
myOperation gets called. Its InvokeDelegate.invokeImpl(Operation, ParameterValue,
CredentialInfo) method receives the parameters sent to the operation, as well as the operation instance itself.
The latter is useful for implementors who want to share a single InvokeDelegate instance between
different operations.
Note that the cast to OperationStub above is only safe if the operation being obtained was actually
created via a call to this define(URI, CredentialInfo) method - in any other case, e.g. when it was
added manually by means of addOperation(Operation), this cast will most likely result in a
java.lang.ClassCastException.
wsdl - the WSDL object which should be used to define the serivce.java.io.IOException - if a failure occurs while attempting to obtain the WSDL from the given URIpublic SubscriptionManager getSubscriptionManager()
getSubscriptionManager in interface LocalServiceprotected Operation createOperation(WSDLOperation wsdlOperation)
ServiceCommonsOperation instance suitable for usage within this service instance. This
method is only called from within ServiceCommons.processWSDLPortType(WSDLPortType) and should not be
used in other contexts.createOperation in class ServiceCommonswsdlOperation - the WSDL operation describing the operation to createprotected EventSource createEventSource(WSDLOperation wsdlOperation)
ServiceCommonsDefaultEventSource instance suitable for usage within this service instance.
This method is only called from within ServiceCommons.processWSDLPortType(WSDLPortType) and should
not be used in other contexts.createEventSource in class ServiceCommonswsdlOperation - the WSDL operation describing the event source to createpublic ClientSubscription subscribe(EventSink sink, java.lang.String clientSubscriptionId, URISet eventActionURIs, long duration, CredentialInfo credentialInfo) throws EventingException, CommunicationException
Servicesubscribe in interface Servicesink - event sink which will receive the notifications.eventActionURIs - a set of action URIs to subscribe toduration - duration in millis of subscription. If 0, subscription does not expire.EventingExceptionCommunicationExceptionpublic void unsubscribe(ClientSubscription subscription, CredentialInfo credentialInfo) throws EventingException, CommunicationException
Serviceunsubscribe in interface Servicesubscription - subscription to terminate.EventingExceptionCommunicationExceptionpublic long renew(ClientSubscription subscription, long duration, CredentialInfo credentialInfo) throws EventingException, CommunicationException
Servicerenew in interface ServiceEventingExceptionCommunicationExceptionpublic long getStatus(ClientSubscription subscription, CredentialInfo credentialInfo) throws EventingException, CommunicationException
ServicegetStatus in interface ServiceEventingExceptionCommunicationExceptionpublic AuthorizationManager getAuthorizationManager()
LocalServiceAuthorizationManager for this LocalService.getAuthorizationManager in interface LocalServiceAuthorizationManager for this LocalService.public void setAuthorizationManager(AuthorizationManager authorizationManager)
LocalServiceAuthorizationManager for this LocalService.setAuthorizationManager in interface LocalServicepublic void deviceNewCommunicationBindingAvailable(CommunicationBinding deviceBinding, CommunicationManager manager)
deviceNewCommunicationBindingAvailable in interface LocalServicepublic void deviceCommunicationBindingDestroyed(CommunicationBinding deviceBinding, CommunicationManager manager)
deviceCommunicationBindingDestroyed in interface LocalServicepublic void deviceCommunicationBindingUp(CommunicationBinding deviceBinding, CommunicationManager manager)
deviceCommunicationBindingUp in interface LocalServicepublic void deviceCommunicationBindingDown(CommunicationBinding deviceBinding, CommunicationManager manager)
deviceCommunicationBindingDown in interface LocalServicepublic void deviceStartUpdates()
deviceStartUpdates in interface LocalServicepublic void deviceStopUpdates()
deviceStopUpdates in interface LocalServicepublic int hashCode()
hashCode in class ServiceCommonspublic boolean equals(java.lang.Object obj)
equals in class ServiceCommons