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
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. |
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, wait
forEach, spliterator
public DefaultTransports(InternalAdmin admin)
public Admin getAdmin()
AdminAware
Admin
associated with this element.getAdmin
in interface AdminAware
public TransportStatisticsChangedEventManager getTransportStatisticsChanged()
Transports
TransportStatisticsChangedEvent
s.
Note, the transports must be in a monitoring state in order to receive the events.
getTransportStatisticsChanged
in interface Transports
public TransportsStatisticsChangedEventManager getStatisticsChanged()
Transports
TransportsStatisticsChangedEvent
s.
Note, the transports must be in a monitoring state in order to receive the events.
getStatisticsChanged
in interface Transports
public Transport[] getTransports()
Transports
getTransports
in interface Transports
public Transport[] getTransports(String host)
Transports
getTransports
in interface Transports
Transport.getBindHost()
public Transport getTransportByHostAndPort(String host, int port)
Transports
getTransportByHostAndPort
in interface Transports
Transport.getBindHost()
,
Transport.getPort()
public Transport getTransportByUID(String uid)
Transports
getTransportByUID
in interface Transports
public int getSize()
Transports
getSize
in interface Transports
public TransportsDetails getDetails()
Transports
getDetails
in interface Transports
public TransportsStatistics getStatistics()
Transports
getStatistics
in interface Transports
public void setStatisticsInterval(long interval, TimeUnit timeUnit)
StatisticsMonitor
setStatisticsInterval
in interface StatisticsMonitor
public void setStatisticsHistorySize(int historySize)
StatisticsMonitor
setStatisticsHistorySize
in interface StatisticsMonitor
public void startStatisticsMonitor()
StatisticsMonitor
startStatisticsMonitor
in interface StatisticsMonitor
public void stopStatisticsMonitor()
StatisticsMonitor
stopStatisticsMonitor
in interface StatisticsMonitor
public boolean isMonitoring()
StatisticsMonitor
true
if statistics are now being monitored.isMonitoring
in interface StatisticsMonitor
public void addTransport(Transport transport)
addTransport
in interface InternalTransports
public void removeTransport(String uid)
removeTransport
in interface InternalTransports
Copyright © GigaSpaces.