Package org.openspaces.admin.transport
Interface Transports
- All Superinterfaces:
AdminAware,Iterable<Transport>,StatisticsMonitor
- All Known Subinterfaces:
InternalTransports
- All Known Implementing Classes:
DefaultTransports
Transports hold all the different
Transports 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.
- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.openspaces.admin.StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionReturns the aggregated details (non changeable) of all the currently discovered transports.intgetSize()Returns the number of currently discovered transports.Returns the aggregated statistics of all the currently discovered transports.Allows to register for aggregatedTransportsStatisticsChangedEvents.getTransportByHostAndPort(String host, int port) Returns the transport that is bounded on the specified host and port.getTransportByUID(String uid) Returns the transport based on the specified UID.Returns all the currently discovered transports.getTransports(String host) Returns all the transports bounded on the specified host.Allows to register for transport levelTransportStatisticsChangedEvents.Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.openspaces.admin.StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
-
Method Details
-
getTransports
Transport[] getTransports()Returns all the currently discovered transports. -
getTransports
Returns all the transports bounded on the specified host.- See Also:
-
getTransportByHostAndPort
Returns the transport that is bounded on the specified host and port.- See Also:
-
getTransportByUID
Returns the transport based on the specified UID. -
getSize
int getSize()Returns the number of currently discovered transports. -
getDetails
TransportsDetails getDetails()Returns the aggregated details (non changeable) of all the currently discovered transports. -
getStatistics
TransportsStatistics getStatistics()Returns the aggregated statistics of all the currently discovered transports. -
getStatisticsChanged
TransportsStatisticsChangedEventManager getStatisticsChanged()Allows to register for aggregatedTransportsStatisticsChangedEvents.Note, the transports must be in a monitoring state in order to receive the events.
-
getTransportStatisticsChanged
TransportStatisticsChangedEventManager getTransportStatisticsChanged()Allows to register for transport levelTransportStatisticsChangedEvents.Note, the transports must be in a monitoring state in order to receive the events.
-