Class DefaultTransports
java.lang.Object
org.openspaces.admin.internal.transport.DefaultTransports
- All Implemented Interfaces:
Iterable<Transport>,AdminAware,InternalTransports,StatisticsMonitor,Transports
- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.openspaces.admin.StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransport(Transport transport) getAdmin()Returns theAdminassociated with this element.Returns 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.booleanReturnstrueif statistics are now being monitored.iterator()voidremoveTransport(String uid) voidsetStatisticsHistorySize(int historySize) Sets the history size of number of statistics stored.voidsetStatisticsInterval(long interval, TimeUnit timeUnit) Sets the statistics interval, automatically updating the monitoring scheduled tasks if monitoring is enabled.voidStarts the statistics monitor, starting a scheduled monitor that polls for statistics.voidStops the statistics monitor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultTransports
-
-
Method Details
-
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
getTransportStatisticsChanged
Description copied from interface:TransportsAllows to register for transport levelTransportStatisticsChangedEvents.Note, the transports must be in a monitoring state in order to receive the events.
- Specified by:
getTransportStatisticsChangedin interfaceTransports
-
getStatisticsChanged
Description copied from interface:TransportsAllows to register for aggregatedTransportsStatisticsChangedEvents.Note, the transports must be in a monitoring state in order to receive the events.
- Specified by:
getStatisticsChangedin interfaceTransports
-
getTransports
Description copied from interface:TransportsReturns all the currently discovered transports.- Specified by:
getTransportsin interfaceTransports
-
iterator
-
getTransports
Description copied from interface:TransportsReturns all the transports bounded on the specified host.- Specified by:
getTransportsin interfaceTransports- See Also:
-
getTransportByHostAndPort
Description copied from interface:TransportsReturns the transport that is bounded on the specified host and port.- Specified by:
getTransportByHostAndPortin interfaceTransports- See Also:
-
getTransportByUID
Description copied from interface:TransportsReturns the transport based on the specified UID.- Specified by:
getTransportByUIDin interfaceTransports
-
getSize
public int getSize()Description copied from interface:TransportsReturns the number of currently discovered transports.- Specified by:
getSizein interfaceTransports
-
getDetails
Description copied from interface:TransportsReturns the aggregated details (non changeable) of all the currently discovered transports.- Specified by:
getDetailsin interfaceTransports
-
getStatistics
Description copied from interface:TransportsReturns the aggregated statistics of all the currently discovered transports.- Specified by:
getStatisticsin interfaceTransports
-
setStatisticsInterval
Description copied from interface:StatisticsMonitorSets the statistics interval, automatically updating the monitoring scheduled tasks if monitoring is enabled.- Specified by:
setStatisticsIntervalin interfaceStatisticsMonitor
-
setStatisticsHistorySize
public void setStatisticsHistorySize(int historySize) Description copied from interface:StatisticsMonitorSets the history size of number of statistics stored.- Specified by:
setStatisticsHistorySizein interfaceStatisticsMonitor
-
startStatisticsMonitor
public void startStatisticsMonitor()Description copied from interface:StatisticsMonitorStarts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring is required only when wanting to receive statistics change events.- Specified by:
startStatisticsMonitorin interfaceStatisticsMonitor
-
stopStatisticsMonitor
public void stopStatisticsMonitor()Description copied from interface:StatisticsMonitorStops the statistics monitor.- Specified by:
stopStatisticsMonitorin interfaceStatisticsMonitor
-
isMonitoring
public boolean isMonitoring()Description copied from interface:StatisticsMonitorReturnstrueif statistics are now being monitored.- Specified by:
isMonitoringin interfaceStatisticsMonitor
-
addTransport
- Specified by:
addTransportin interfaceInternalTransports
-
removeTransport
- Specified by:
removeTransportin interfaceInternalTransports
-