GigaSpaces XAP 7.0 API

org.openspaces.admin.transport
Interface Transports

All Superinterfaces:
AdminAware, Iterable<Transport>, StatisticsMonitor

public interface Transports
extends Iterable<Transport>, AdminAware, StatisticsMonitor

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
 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.
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.openspaces.admin.AdminAware
getAdmin
 
Methods inherited from interface org.openspaces.admin.StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMontior
 

Method Detail

getTransports

Transport[] getTransports()
Returns all the currently discovered transports.


getTransports

Transport[] getTransports(String host)
Returns all the transports bounded on the specified host.

See Also:
Transport.getBindHost()

getTransportByHostAndPort

Transport getTransportByHostAndPort(String host,
                                    int port)
Returns the transport that is bounded on the specified host and port.

See Also:
Transport.getBindHost(), Transport.getPort()

getTransportByUID

Transport getTransportByUID(String uid)
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 aggregated TransportsStatisticsChangedEvents.

Note, the transports must be in a monitoring state in order to receive the events.


getTransportStatisticsChanged

TransportStatisticsChangedEventManager getTransportStatisticsChanged()
Allows to register for transport level TransportStatisticsChangedEvents.

Note, the transports must be in a monitoring state in order to receive the events.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.