public class DefaultTransports extends Object implements InternalTransports
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL| Constructor and Description |
|---|
DefaultTransports(InternalAdmin admin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransport(Transport transport) |
Admin |
getAdmin()
Returns the
Admin associated with this element. |
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
TransportsStatisticsChangedEvents. |
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
TransportStatisticsChangedEvents. |
boolean |
isMonitoring()
Returns
true if statistics are now being monitored. |
Iterator<Transport> |
iterator() |
void |
removeTransport(String uid) |
void |
setStatisticsHistorySize(int historySize)
Sets the history size of number of statistics stored.
|
void |
setStatisticsInterval(long interval,
TimeUnit timeUnit)
Sets the statistics interval, automatically updating the monitoring scheduled tasks if
monitoring is enabled.
|
void |
startStatisticsMonitor()
Starts the statistics monitor, starting a scheduled monitor that polls for statistics.
|
void |
stopStatisticsMonitor()
Stops the statistics monitor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic DefaultTransports(InternalAdmin admin)
public Admin getAdmin()
AdminAwareAdmin associated with this element.getAdmin in interface AdminAwarepublic TransportStatisticsChangedEventManager getTransportStatisticsChanged()
TransportsTransportStatisticsChangedEvents.
Note, the transports must be in a monitoring state in order to receive the events.
getTransportStatisticsChanged in interface Transportspublic TransportsStatisticsChangedEventManager getStatisticsChanged()
TransportsTransportsStatisticsChangedEvents.
Note, the transports must be in a monitoring state in order to receive the events.
getStatisticsChanged in interface Transportspublic Transport[] getTransports()
TransportsgetTransports in interface Transportspublic Transport[] getTransports(String host)
TransportsgetTransports in interface TransportsTransport.getBindHost()public Transport getTransportByHostAndPort(String host, int port)
TransportsgetTransportByHostAndPort in interface TransportsTransport.getBindHost(),
Transport.getPort()public Transport getTransportByUID(String uid)
TransportsgetTransportByUID in interface Transportspublic int getSize()
TransportsgetSize in interface Transportspublic TransportsDetails getDetails()
TransportsgetDetails in interface Transportspublic TransportsStatistics getStatistics()
TransportsgetStatistics in interface Transportspublic void setStatisticsInterval(long interval,
TimeUnit timeUnit)
StatisticsMonitorsetStatisticsInterval in interface StatisticsMonitorpublic void setStatisticsHistorySize(int historySize)
StatisticsMonitorsetStatisticsHistorySize in interface StatisticsMonitorpublic void startStatisticsMonitor()
StatisticsMonitorstartStatisticsMonitor in interface StatisticsMonitorpublic void stopStatisticsMonitor()
StatisticsMonitorstopStatisticsMonitor in interface StatisticsMonitorpublic boolean isMonitoring()
StatisticsMonitortrue if statistics are now being monitored.isMonitoring in interface StatisticsMonitorpublic void addTransport(Transport transport)
addTransport in interface InternalTransportspublic void removeTransport(String uid)
removeTransport in interface InternalTransportsCopyright © GigaSpaces.