|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.impl.CATransportRegistry
public class CATransportRegistry
Class to cache CA transports (connections to other hosts).
| Constructor Summary | |
|---|---|
CATransportRegistry()
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear cache. |
Transport[] |
get(InetSocketAddress address)
Lookup for a transport for given address (all priorities). |
Transport |
get(InetSocketAddress address,
short priority)
Lookup for a transport for given address. |
int |
numberOfActiveTransports()
Get number of active (cached) transports. |
void |
put(InetSocketAddress address,
Transport transport)
Cache new (address, transport) pair. |
Transport |
remove(InetSocketAddress address,
short priority)
Remove (address, transport) pair from cache. |
Transport[] |
toArray()
Get array of all active (cached) transports. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CATransportRegistry()
| Method Detail |
|---|
public void put(InetSocketAddress address,
Transport transport)
address - address of the host computer.transport - tranport to the host computer.
public Transport get(InetSocketAddress address,
short priority)
address - address of the host computer.priority - priority of the transport.
null if none found.public Transport[] get(InetSocketAddress address)
address - address of the host computer.
null if none found.
public Transport remove(InetSocketAddress address,
short priority)
address - address of the host computer.priority - priority of the transport to be removed.
null if none found.public void clear()
public int numberOfActiveTransports()
public Transport[] toArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||