
public class ProxyPool extends Object
ProxyBusMembers.| Constructor and Description |
|---|
ProxyPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ProxyBusMember proxy)
Adds
ProxyBusMember to the pool. |
Collection<ProxyBusMember> |
all()
Get all
ProxyBusMembers in the pool. |
ProxyBusMember |
get(String proxyID)
Get the
ProxyBusMember from its busMemberId (which is not always
the same as the BusMember it represents). |
boolean |
removeProxyIfOrphan(ProxyBusMember pbm)
Check if a Proxy is orphan (is it has no references) if so removes it and
properly closes it.
|
void |
removeProxyWithSend(ProxyBusMember pbm)
Safely remove a
ProxyBusMember from the bus. |
ProxyBusMember |
searchCompatible(Resource[] newParameters)
Test compatibility of parameters with all
ProxyBusMembers in the
pool. |
public ProxyBusMember get(String proxyID)
ProxyBusMember from its busMemberId (which is not always
the same as the BusMember it represents).proxyID - public void add(ProxyBusMember proxy)
ProxyBusMember to the pool. if ProxyBusMember is
already added, there is no effect.proxy - public ProxyBusMember searchCompatible(Resource[] newParameters)
ProxyBusMembers in the
pool.newParameters - the registration parameters required for the compatible
ProxyBusMemberProxyBusMember or null if not found.public Collection<ProxyBusMember> all()
ProxyBusMembers in the pool.ProxyBusMembers
in the poolpublic void removeProxyWithSend(ProxyBusMember pbm)
ProxyBusMember from the bus. and send a message
to all it's peers to remove the remote proxy. this method will also
terminate the ProxyBusMember.pbm - public boolean removeProxyIfOrphan(ProxyBusMember pbm)
pbm - the Proxy to check.Copyright © 2018 universAAL Consortium. All rights reserved.