public interface ProxyBusMember
BusMember
, independently of the bus they associate to.Modifier and Type | Method and Description |
---|---|
void |
addRemoteProxyReference(BusMemberReference remoteReference)
Add a
BusMemberReference to the proxy. |
void |
addSubscriptionParameters(Resource[] newParams)
When a update of registration parameters is required.
|
void |
close()
Called when the proxy has to disconnect from the bus.
|
String |
getBusMemberId()
Get the busmemberId.
|
Collection<BusMemberReference> |
getRemoteProxiesReferences()
List all current references for this proxy.
|
Resource[] |
getSubscriptionParameters()
Get the subscription parameters of the
BusMember being proxied by
this proxy. |
void |
handleMessage(Session session,
WrappedBusMessage busMessage)
When a session receives a
WrappedBusMessage , it delivers it to
the ProxyBusMember which its
busMemberId matches the
WrappedBusMessage's destination . |
boolean |
isCompatible(Resource[] registrationParameters)
Used to check if a
ProxyBusMember is capable of assuming the
proxy duties of a requested proxy with the given parameters. |
void |
removeRemoteProxyReference(BusMemberReference remoteReference)
Remove a concrete remote proxy.
|
void |
removeRemoteProxyReferences(Session session)
Disconnect from all references that use the same session.Does not send
Remove message |
void |
removeSubscriptionParameters(Resource[] newParams)
When a update of registration parameters is required.
|
String getBusMemberId()
BusMember
.void addRemoteProxyReference(BusMemberReference remoteReference)
BusMemberReference
to the proxy. This means that from this
moment on the remote proxy and the local proxy can (and should)
communicate with each other. remoteReference
- The reference to a remote proxy, its busmemberid and the
session through which to find it.void removeRemoteProxyReference(BusMemberReference remoteReference)
Remove message
remoteReference
- the remote's proxy reference to stop communicating with.void removeRemoteProxyReferences(Session session)
Remove message
session
- the session that is to be disconnected.Collection<BusMemberReference> getRemoteProxiesReferences()
Resource[] getSubscriptionParameters()
BusMember
being proxied by
this proxy.void handleMessage(Session session, WrappedBusMessage busMessage)
WrappedBusMessage
, it delivers it to
the ProxyBusMember
which its
busMemberId
matches the
WrappedBusMessage's destination
. The delivery is received through this
method.session
- the session through which the message was received.busMessage
- the actual message received.boolean isCompatible(Resource[] registrationParameters)
ProxyBusMember
is capable of assuming the
proxy duties of a requested proxy with the given parameters. registrationParameters
- void close()
void addSubscriptionParameters(Resource[] newParams)
newParams
- the new parameters to use.void removeSubscriptionParameters(Resource[] newParams)
newParams
- the new parameters to use.Copyright © 2018 universAAL Consortium. All rights reserved.