public class ProxyPool extends Object
ProxyBusMember
s.Constructor and Description |
---|
ProxyPool() |
Modifier and Type | Method and Description |
---|---|
void |
add(ProxyBusMember proxy)
Adds
ProxyBusMember to the pool. |
Collection<ProxyBusMember> |
all()
Get all
ProxyBusMember s 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
ProxyBusMember s 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)
ProxyBusMember
s in the
pool.newParameters
- the registration parameters required for the compatible
ProxyBusMember
ProxyBusMember
or null if not found.public Collection<ProxyBusMember> all()
ProxyBusMember
s in the pool.ProxyBusMember
s
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.