Class DefaultTransport
java.lang.Object
org.openspaces.admin.internal.transport.DefaultTransport
- All Implemented Interfaces:
InternalTransport,StatisticsMonitor,Transport,TransportLRMIMonitoring,VirtualMachineAware
- 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 TypeMethodDescriptionvoidaddTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider) voidDisabled lrmi monitoring (gigaspaces internal remoting layer).voidEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target transport to start tracking lrmi activity which can later be viewed by calling.booleanReturn lrmi (gigaspaces internal remoting layer) monitoring details.Returns the host name or address the communication layer bounded on.Returns the details (non changeable) of the transport.Returns the host address of the transport.Returns the host address of the transport.Return the LRMI monitoring of this transport.intgetPort()Returns the port number the communication layer is using.Returns the transport statistics.Allows to register forTransportStatisticsChangedEvents.getUid()Returns the UID of the transport.Returns the virtual machine the grid component is running within.inthashCode()booleanbooleanReturnstrueif statistics are now being monitored.voidremoveTransportInfoProvider(InternalTransportInfoProvider transportInfoProvider) 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.voidsetVirtualMachine(VirtualMachine virtualMachine) voidStarts the statistics monitor, starting a scheduled monitor that polls for statistics.voidStops the statistics monitor.
-
Constructor Details
-
DefaultTransport
-
-
Method Details
-
getStatisticsChanged
Description copied from interface:TransportAllows to register forTransportStatisticsChangedEvents.Note, the transport needs to be in a monitoring state. See
StatisticsMonitor.startStatisticsMonitor().- Specified by:
getStatisticsChangedin interfaceTransport
-
addTransportInfoProvider
- Specified by:
addTransportInfoProviderin interfaceInternalTransport
-
removeTransportInfoProvider
- Specified by:
removeTransportInfoProviderin interfaceInternalTransport
-
hasTransportInfoProviders
public boolean hasTransportInfoProviders()- Specified by:
hasTransportInfoProvidersin interfaceInternalTransport
-
getUid
Description copied from interface:TransportReturns the UID of the transport. -
getHostAddress
Description copied from interface:TransportReturns the host address of the transport.- Specified by:
getHostAddressin interfaceTransport- See Also:
-
getHostName
Description copied from interface:TransportReturns the host address of the transport.- Specified by:
getHostNamein interfaceTransport- See Also:
-
getBindHost
Description copied from interface:TransportReturns the host name or address the communication layer bounded on.- Specified by:
getBindHostin interfaceTransport
-
getPort
public int getPort()Description copied from interface:TransportReturns the port number the communication layer is using. -
getDetails
Description copied from interface:TransportReturns the details (non changeable) of the transport.- Specified by:
getDetailsin interfaceTransport
-
setVirtualMachine
- Specified by:
setVirtualMachinein interfaceInternalTransport
-
getVirtualMachine
Description copied from interface:VirtualMachineAwareReturns the virtual machine the grid component is running within.- Specified by:
getVirtualMachinein interfaceVirtualMachineAware
-
getStatistics
Description copied from interface:TransportReturns the transport statistics.- Specified by:
getStatisticsin interfaceTransport
-
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
-
equals
-
hashCode
public int hashCode() -
getLRMIMonitoring
Description copied from interface:TransportReturn the LRMI monitoring of this transport. SeeTransportLRMIMonitoring.- Specified by:
getLRMIMonitoringin interfaceTransport
-
enableMonitoring
public void enableMonitoring()Description copied from interface:TransportLRMIMonitoringEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target transport to start tracking lrmi activity which can later be viewed by calling.TransportLRMIMonitoring.fetchMonitoringDetails()- Specified by:
enableMonitoringin interfaceTransportLRMIMonitoring
-
disableMonitoring
public void disableMonitoring()Description copied from interface:TransportLRMIMonitoringDisabled lrmi monitoring (gigaspaces internal remoting layer).TransportLRMIMonitoring.enableMonitoring()- Specified by:
disableMonitoringin interfaceTransportLRMIMonitoring
-
fetchMonitoringDetails
Description copied from interface:TransportLRMIMonitoringReturn lrmi (gigaspaces internal remoting layer) monitoring details. This will only work if lrmi monitoring was previously enabled, either by admin API, Jmx or system property. This will include monitoring details of inbound invocation on hosted service and outbound invocation via proxies that exists within the targeted transport (Jvm).TransportLRMIMonitoring.enableMonitoring()- Specified by:
fetchMonitoringDetailsin interfaceTransportLRMIMonitoring
-