public interface Transports extends Iterable<Transport>, AdminAware, StatisticsMonitor
Transport
s that are
currently siscovered.
Provides simple means to get all the current transports, as well as as registering for transport lifecycle (added and removed) events.
Provides the ability to start a statistics monitor on all current transports using StatisticsMonitor.startStatisticsMonitor()
. Newly discovered transports will automatically use the statistics
monitor as well.
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL
Modifier and Type | Method and Description |
---|---|
TransportsDetails |
getDetails()
Returns the aggregated details (non changeable) of all the currently discovered transports.
|
int |
getSize()
Returns the number of currently discovered transports.
|
TransportsStatistics |
getStatistics()
Returns the aggregated statistics of all the currently discovered transports.
|
TransportsStatisticsChangedEventManager |
getStatisticsChanged()
Allows to register for aggregated
TransportsStatisticsChangedEvent s. |
Transport |
getTransportByHostAndPort(String host,
int port)
Returns the transport that is bounded on the specified host and port.
|
Transport |
getTransportByUID(String uid)
Returns the transport based on the specified UID.
|
Transport[] |
getTransports()
Returns all the currently discovered transports.
|
Transport[] |
getTransports(String host)
Returns all the transports bounded on the specified host.
|
TransportStatisticsChangedEventManager |
getTransportStatisticsChanged()
Allows to register for transport level
TransportStatisticsChangedEvent s. |
forEach, iterator, spliterator
getAdmin
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
Transport[] getTransports()
Transport[] getTransports(String host)
Transport.getBindHost()
Transport getTransportByHostAndPort(String host, int port)
Transport.getBindHost()
,
Transport.getPort()
Transport getTransportByUID(String uid)
int getSize()
TransportsDetails getDetails()
TransportsStatistics getStatistics()
TransportsStatisticsChangedEventManager getStatisticsChanged()
TransportsStatisticsChangedEvent
s.
Note, the transports must be in a monitoring state in order to receive the events.
TransportStatisticsChangedEventManager getTransportStatisticsChanged()
TransportStatisticsChangedEvent
s.
Note, the transports must be in a monitoring state in order to receive the events.
Copyright © GigaSpaces.