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
TransportStatisticsChangedEvent s. |
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()
Transport
TransportStatisticsChangedEvent
s.
Note, the transport needs to be in a monitoring state. See StatisticsMonitor.startStatisticsMonitor()
.
getStatisticsChanged
in interface Transport
public void addTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider)
addTransportInfoProvider
in interface InternalTransport
public void removeTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider)
removeTransportInfoProvider
in interface InternalTransport
public boolean hasTransportInfoProviders()
hasTransportInfoProviders
in interface InternalTransport
public String getUid()
Transport
public String getHostAddress()
Transport
getHostAddress
in interface Transport
InetAddress.getLocalHost()
,
InetAddress.getHostAddress()
public String getHostName()
Transport
getHostName
in interface Transport
InetAddress.getLocalHost()
,
InetAddress.getHostName()
public String getBindHost()
Transport
getBindHost
in interface Transport
public int getPort()
Transport
public TransportDetails getDetails()
Transport
getDetails
in interface Transport
public void setVirtualMachine(VirtualMachine virtualMachine)
setVirtualMachine
in interface InternalTransport
public VirtualMachine getVirtualMachine()
VirtualMachineAware
getVirtualMachine
in interface VirtualMachineAware
public TransportStatistics getStatistics()
Transport
getStatistics
in interface Transport
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 TransportLRMIMonitoring getLRMIMonitoring()
Transport
TransportLRMIMonitoring
.getLRMIMonitoring
in interface Transport
public void enableMonitoring()
TransportLRMIMonitoring
TransportLRMIMonitoring.fetchMonitoringDetails()
enableMonitoring
in interface TransportLRMIMonitoring
public void disableMonitoring()
TransportLRMIMonitoring
TransportLRMIMonitoring.enableMonitoring()
disableMonitoring
in interface TransportLRMIMonitoring
public LRMIMonitoringDetails fetchMonitoringDetails()
TransportLRMIMonitoring
TransportLRMIMonitoring.enableMonitoring()
fetchMonitoringDetails
in interface TransportLRMIMonitoring
Copyright © GigaSpaces.