public class DefaultTransport extends Object implements InternalTransport, TransportLRMIMonitoring
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL| Constructor and Description |
|---|
DefaultTransport(NIODetails nioDetails,
InternalTransports transports) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider) |
void |
disableMonitoring()
Disabled lrmi monitoring (gigaspaces internal remoting layer).
|
void |
enableMonitoring()
Enables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target
transport to start tracking lrmi activity which can later be viewed by calling.
|
boolean |
equals(Object o) |
LRMIMonitoringDetails |
fetchMonitoringDetails()
Return lrmi (gigaspaces internal remoting layer) monitoring details.
|
String |
getBindHost()
Returns the host name or address the communication layer bounded on.
|
TransportDetails |
getDetails()
Returns the details (non changeable) of the transport.
|
String |
getHostAddress()
Returns the host address of the transport.
|
String |
getHostName()
Returns the host address of the transport.
|
TransportLRMIMonitoring |
getLRMIMonitoring()
Return the LRMI monitoring of this transport.
|
int |
getPort()
Returns the port number the communication layer is using.
|
TransportStatistics |
getStatistics()
Returns the transport statistics.
|
TransportStatisticsChangedEventManager |
getStatisticsChanged()
Allows to register for
TransportStatisticsChangedEvents. |
String |
getUid()
Returns the UID of the transport.
|
VirtualMachine |
getVirtualMachine()
Returns the virtual machine the grid component is running within.
|
int |
hashCode() |
boolean |
hasTransportInfoProviders() |
boolean |
isMonitoring()
Returns
true if statistics are now being monitored. |
void |
removeTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider) |
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 |
setVirtualMachine(VirtualMachine virtualMachine) |
void |
startStatisticsMonitor()
Starts the statistics monitor, starting a scheduled monitor that polls for statistics.
|
void |
stopStatisticsMonitor()
Stops the statistics monitor.
|
public DefaultTransport(NIODetails nioDetails, InternalTransports transports)
public TransportStatisticsChangedEventManager getStatisticsChanged()
TransportTransportStatisticsChangedEvents.
Note, the transport needs to be in a monitoring state. See StatisticsMonitor.startStatisticsMonitor().
getStatisticsChanged in interface Transportpublic void addTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider)
addTransportInfoProvider in interface InternalTransportpublic void removeTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider)
removeTransportInfoProvider in interface InternalTransportpublic boolean hasTransportInfoProviders()
hasTransportInfoProviders in interface InternalTransportpublic String getUid()
Transportpublic String getHostAddress()
TransportgetHostAddress in interface TransportInetAddress.getHostAddress()public String getHostName()
TransportgetHostName in interface TransportInetAddress.getHostName()public String getBindHost()
TransportgetBindHost in interface Transportpublic int getPort()
Transportpublic TransportDetails getDetails()
TransportgetDetails in interface Transportpublic void setVirtualMachine(VirtualMachine virtualMachine)
setVirtualMachine in interface InternalTransportpublic VirtualMachine getVirtualMachine()
VirtualMachineAwaregetVirtualMachine in interface VirtualMachineAwarepublic TransportStatistics getStatistics()
TransportgetStatistics in interface Transportpublic 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 TransportLRMIMonitoring getLRMIMonitoring()
TransportTransportLRMIMonitoring.getLRMIMonitoring in interface Transportpublic void enableMonitoring()
TransportLRMIMonitoringTransportLRMIMonitoring.fetchMonitoringDetails()enableMonitoring in interface TransportLRMIMonitoringpublic void disableMonitoring()
TransportLRMIMonitoringTransportLRMIMonitoring.enableMonitoring()disableMonitoring in interface TransportLRMIMonitoringpublic LRMIMonitoringDetails fetchMonitoringDetails()
TransportLRMIMonitoringTransportLRMIMonitoring.enableMonitoring()fetchMonitoringDetails in interface TransportLRMIMonitoringCopyright © GigaSpaces.