Top Description Inners Fields Constructors Methods
org.glassfish.grizzly.nio.transport.jmx

public Class NIOTransport

extends JmxObject
Class Inheritance
Known Direct Subclasses
org.glassfish.grizzly.nio.transport.jmx.TCPNIOTransport, org.glassfish.grizzly.nio.transport.jmx.UDPNIOTransport
Annotations
@ManagedObject
@Description:Grizzly NIO Transport
Imports
org.glassfish.grizzly.Buffer, .Connection, .ConnectionProbe, .IOEvent, .Transport, .TransportProbe, org.glassfish.grizzly.monitoring.jmx.JmxObject, org.glassfish.grizzly.memory.MemoryManager, org.glassfish.grizzly.threadpool.GrizzlyExecutorService, java.util.Date, .Queue, java.util.concurrent.ConcurrentHashMap, .ConcurrentLinkedQueue, .ConcurrentMap, .ExecutorService, java.util.concurrent.atomic.AtomicInteger, .AtomicLong, org.glassfish.gmbal.Description, .GmbalMBean, .ManagedAttribute, .ManagedObject, .NameValue, org.glassfish.grizzly.jmxbase.GrizzlyJmxManager

NIO Transport JMX object.
Author
Alexey Stashok

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private class

Field Summary

Modifier and TypeField and Description
private final Queue<String>
private final ConcurrentMap<Connection<L>, String>
private final AtomicLong
private final AtomicLong
private final NIOTransport.JmxConnectionProbe
private MemoryManager<E extends Buffer>
private ExecutorService
private volatile NIOTransport.EventDate
private Object
private GrizzlyJmxManager
private final AtomicInteger
private final NIOTransport.JmxTransportProbe
private volatile NIOTransport.EventDate
private final Object
private Object
private final AtomicLong
protected final NIOTransport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public long
public long
public String
public String
public String
public String
public String
public int
public String
public String
public int
public String
public String
public int
public String
public String
public long
private static String
public int
protected void
onDeregister(GrizzlyJmxManager mom)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Method will be called right after this JmxObject is unregistered by the JMX manager.

protected void
onRegister(GrizzlyJmxManager mom, GmbalMBean bean)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Method will be called right after this JmxObject is registered by the JMX manager.

protected void
private static String

Field Detail

boundAddressesback to summary
private final Queue<String> boundAddresses
boundConnectionsback to summary
private final ConcurrentMap<Connection<L>, String> boundConnections
bytesReadback to summary
private final AtomicLong bytesRead
bytesWrittenback to summary
private final AtomicLong bytesWritten
connectionProbeback to summary
private final NIOTransport.JmxConnectionProbe connectionProbe
currentMemoryManagerback to summary
private MemoryManager<E extends Buffer> currentMemoryManager
currentThreadPoolback to summary
private ExecutorService currentThreadPool
lastErrorEventback to summary
private volatile NIOTransport.EventDate lastErrorEvent
memoryManagerJmxback to summary
private Object memoryManagerJmx
momback to summary
private GrizzlyJmxManager mom
openConnectionsNumback to summary
private final AtomicInteger openConnectionsNum
probeback to summary
private final NIOTransport.JmxTransportProbe probe
stateEventback to summary
private volatile NIOTransport.EventDate stateEvent
subtreeLockback to summary
private final Object subtreeLock
threadPoolJmxback to summary
private Object threadPoolJmx
totalConnectionsNumback to summary
private final AtomicLong totalConnectionsNum
transportback to summary
protected final NIOTransport transport

Constructor Detail

NIOTransportback to summary
public NIOTransport(NIOTransport transport)

Method Detail

getBoundAddressesback to summary
public String getBoundAddresses()
Annotations
@ManagedAttribute
id:bound-addresses
getBytesReadback to summary
public long getBytesRead()
Annotations
@ManagedAttribute
id:bytes-read
getBytesWrittenback to summary
public long getBytesWritten()
Annotations
@ManagedAttribute
id:bytes-written
getChannelDistributorback to summary
public String getChannelDistributor()
Annotations
@ManagedAttribute
id:channel-distributor
getIOStrategyback to summary
public String getIOStrategy()
Annotations
@ManagedAttribute
id:io-strategy
getJmxNameback to summary
public String getJmxName()

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.getJmxName.

Annotations
@Override
getLastErrorback to summary
public String getLastError()
Annotations
@ManagedAttribute
id:last-error
getNameback to summary
public String getName()
Annotations
@NameValue
getOpenConnectionsCountback to summary
public int getOpenConnectionsCount()
Annotations
@ManagedAttribute
id:open-connections-count
getProcessorback to summary
public String getProcessor()
Annotations
@ManagedAttribute
id:processor
getProcessorSelectorback to summary
public String getProcessorSelector()
Annotations
@ManagedAttribute
id:processor-selector
getReadBufferSizeback to summary
public int getReadBufferSize()
Annotations
@ManagedAttribute
id:read-buffer-size
getSelectionKeyHandlerback to summary
public String getSelectionKeyHandler()
Annotations
@ManagedAttribute
id:selection-key-handler
getSelectorHandlerback to summary
public String getSelectorHandler()
Annotations
@ManagedAttribute
id:selector-handler
getSelectorHandlerRunnersback to summary
public int getSelectorHandlerRunners()
Annotations
@ManagedAttribute
id:selector-threads-count
getStateback to summary
public String getState()
Annotations
@ManagedAttribute
id:state
getThreadPoolTypeback to summary
public String getThreadPoolType()
Annotations
@ManagedAttribute
id:thread-pool-type
getTotalConnectionsCountback to summary
public long getTotalConnectionsCount()
Annotations
@ManagedAttribute
id:total-connections-count
getTypeback to summary
private static String getType(Object o)
getWriteBufferSizeback to summary
public int getWriteBufferSize()
Annotations
@ManagedAttribute
id:write-buffer-size
onDeregisterback to summary
protected void onDeregister(GrizzlyJmxManager mom)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Doc from org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Method will be called right after this JmxObject is unregistered by the JMX manager.

Annotations
@Override
onRegisterback to summary
protected void onRegister(GrizzlyJmxManager mom, GmbalMBean bean)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Doc from org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Method will be called right after this JmxObject is registered by the JMX manager.

Annotations
@Override
rebuildSubTreeback to summary
protected void rebuildSubTree()
toStringback to summary
private static String toString(Object o)
org.glassfish.grizzly.nio.transport.jmx back to summary

private Class NIOTransport.EventDate

extends Object
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.nio.transport.jmx.NIOTransport.EventDate

Field Summary

Modifier and TypeField and Description
private final Date
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

dateback to summary
private final Date date
eventback to summary
private final String event

Constructor Detail

EventDateback to summary
public EventDate(String event)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.glassfish.grizzly.nio.transport.jmx back to summary

private Class NIOTransport.JmxConnectionProbe

extends Object
implements ConnectionProbe
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.nio.transport.jmx.NIOTransport.JmxConnectionProbe
All Implemented Interfaces
org.glassfish.grizzly.ConnectionProbe

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
onAcceptEvent(Connection<L> serverConnection, Connection<L> clientConnection)

Implements org.glassfish.grizzly.ConnectionProbe.onAcceptEvent.

Method will be called, when server side connection gets accepted.

public void
onBindEvent(Connection<L> connection)

Implements org.glassfish.grizzly.ConnectionProbe.onBindEvent.

Method will be called, when server side connection gets bound.

public void
onCloseEvent(Connection<L> connection)

Implements org.glassfish.grizzly.ConnectionProbe.onCloseEvent.

Method will be called, when Connection gets closed.

public void
onConnectEvent(Connection<L> connection)

Implements org.glassfish.grizzly.ConnectionProbe.onConnectEvent.

Method will be called, when client side connection gets connected (opened).

public void
onErrorEvent(Connection<L> connection, Throwable error)

Implements org.glassfish.grizzly.ConnectionProbe.onErrorEvent.

Method will be called, when error occurs on the Connection.

public void
onIOEventDisableEvent(Connection<L> connection, IOEvent ioEvent)

Implements org.glassfish.grizzly.ConnectionProbe.onIOEventDisableEvent.

Method will be called, when IOEvent for the specific Connection gets disabled.

public void
onIOEventEnableEvent(Connection<L> connection, IOEvent ioEvent)

Implements org.glassfish.grizzly.ConnectionProbe.onIOEventEnableEvent.

Method will be called, when IOEvent for the specific Connection gets enabled.

public void
onIOEventReadyEvent(Connection<L> connection, IOEvent ioEvent)

Implements org.glassfish.grizzly.ConnectionProbe.onIOEventReadyEvent.

Method will be called, when IOEvent for the specific Connection gets ready.

public void
onReadEvent(Connection<L> connection, Buffer data, int size)

Implements org.glassfish.grizzly.ConnectionProbe.onReadEvent.

Method will be called, when the Connection has read data.

public void
onWriteEvent(Connection<L> connection, Buffer data, long size)

Implements org.glassfish.grizzly.ConnectionProbe.onWriteEvent.

Method will be called, when the Connection has written data.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JmxConnectionProbeback to summary
private JmxConnectionProbe()

Method Detail

onAcceptEventback to summary
public void onAcceptEvent(Connection<L> serverConnection, Connection<L> clientConnection)

Implements org.glassfish.grizzly.ConnectionProbe.onAcceptEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onAcceptEvent.

Method will be called, when server side connection gets accepted.

Annotations
@Override
onBindEventback to summary
public void onBindEvent(Connection<L> connection)

Implements org.glassfish.grizzly.ConnectionProbe.onBindEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onBindEvent.

Method will be called, when server side connection gets bound.

Annotations
@Override
onCloseEventback to summary
public void onCloseEvent(Connection<L> connection)

Implements org.glassfish.grizzly.ConnectionProbe.onCloseEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onCloseEvent.

Method will be called, when Connection gets closed.

Annotations
@Override
onConnectEventback to summary
public void onConnectEvent(Connection<L> connection)

Implements org.glassfish.grizzly.ConnectionProbe.onConnectEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onConnectEvent.

Method will be called, when client side connection gets connected (opened).

Annotations
@Override
onErrorEventback to summary
public void onErrorEvent(Connection<L> connection, Throwable error)

Implements org.glassfish.grizzly.ConnectionProbe.onErrorEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onErrorEvent.

Method will be called, when error occurs on the Connection.

Annotations
@Override
onIOEventDisableEventback to summary
public void onIOEventDisableEvent(Connection<L> connection, IOEvent ioEvent)

Implements org.glassfish.grizzly.ConnectionProbe.onIOEventDisableEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onIOEventDisableEvent.

Method will be called, when IOEvent for the specific Connection gets disabled.

Annotations
@Override
onIOEventEnableEventback to summary
public void onIOEventEnableEvent(Connection<L> connection, IOEvent ioEvent)

Implements org.glassfish.grizzly.ConnectionProbe.onIOEventEnableEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onIOEventEnableEvent.

Method will be called, when IOEvent for the specific Connection gets enabled.

Annotations
@Override
onIOEventReadyEventback to summary
public void onIOEventReadyEvent(Connection<L> connection, IOEvent ioEvent)

Implements org.glassfish.grizzly.ConnectionProbe.onIOEventReadyEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onIOEventReadyEvent.

Method will be called, when IOEvent for the specific Connection gets ready.

Annotations
@Override
onReadEventback to summary
public void onReadEvent(Connection<L> connection, Buffer data, int size)

Implements org.glassfish.grizzly.ConnectionProbe.onReadEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onReadEvent.

Method will be called, when the Connection has read data.

Annotations
@Override
onWriteEventback to summary
public void onWriteEvent(Connection<L> connection, Buffer data, long size)

Implements org.glassfish.grizzly.ConnectionProbe.onWriteEvent.

Doc from org.glassfish.grizzly.ConnectionProbe.onWriteEvent.

Method will be called, when the Connection has written data.

Annotations
@Override
org.glassfish.grizzly.nio.transport.jmx back to summary

private Class NIOTransport.JmxTransportProbe

extends Object
implements TransportProbe
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.nio.transport.jmx.NIOTransport.JmxTransportProbe
All Implemented Interfaces
org.glassfish.grizzly.TransportProbe

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
onBeforePauseEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforePauseEvent.

Method will be called before pausing the Transport.

public void
onBeforeResumeEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforeResumeEvent.

Method will be called before resuming the Transport.

public void
onBeforeStartEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforeStartEvent.

Method will be called before starting the Transport.

public void
onBeforeStopEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforeStopEvent.

Method will be called before stopping the Transport.

public void
onConfigChangeEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onConfigChangeEvent.

Method will be called, when the Transport configuration gets changed.

public void
onErrorEvent(Transport transport, Throwable error)

Implements org.glassfish.grizzly.TransportProbe.onErrorEvent.

Method will be called, when error occurs on the Transport.

public void
onPauseEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onPauseEvent.

Method will be called when the Transport is paused.

public void
onResumeEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onResumeEvent.

Method will be called, when the Transport gets resumed.

public void
onStartEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onStartEvent.

Method will be called when the Transport has been started.

public void
onStopEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onStopEvent.

Method will be called when the Transport has been stopped.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JmxTransportProbeback to summary
private JmxTransportProbe()

Method Detail

onBeforePauseEventback to summary
public void onBeforePauseEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforePauseEvent.

Doc from org.glassfish.grizzly.TransportProbe.onBeforePauseEvent.

Method will be called before pausing the Transport.

Annotations
@Override
onBeforeResumeEventback to summary
public void onBeforeResumeEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforeResumeEvent.

Doc from org.glassfish.grizzly.TransportProbe.onBeforeResumeEvent.

Method will be called before resuming the Transport.

Annotations
@Override
onBeforeStartEventback to summary
public void onBeforeStartEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforeStartEvent.

Doc from org.glassfish.grizzly.TransportProbe.onBeforeStartEvent.

Method will be called before starting the Transport.

Annotations
@Override
onBeforeStopEventback to summary
public void onBeforeStopEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onBeforeStopEvent.

Doc from org.glassfish.grizzly.TransportProbe.onBeforeStopEvent.

Method will be called before stopping the Transport.

Annotations
@Override
onConfigChangeEventback to summary
public void onConfigChangeEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onConfigChangeEvent.

Doc from org.glassfish.grizzly.TransportProbe.onConfigChangeEvent.

Method will be called, when the Transport configuration gets changed.

Annotations
@Override
onErrorEventback to summary
public void onErrorEvent(Transport transport, Throwable error)

Implements org.glassfish.grizzly.TransportProbe.onErrorEvent.

Doc from org.glassfish.grizzly.TransportProbe.onErrorEvent.

Method will be called, when error occurs on the Transport.

Annotations
@Override
onPauseEventback to summary
public void onPauseEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onPauseEvent.

Doc from org.glassfish.grizzly.TransportProbe.onPauseEvent.

Method will be called when the Transport is paused.

Annotations
@Override
onResumeEventback to summary
public void onResumeEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onResumeEvent.

Doc from org.glassfish.grizzly.TransportProbe.onResumeEvent.

Method will be called, when the Transport gets resumed.

Annotations
@Override
onStartEventback to summary
public void onStartEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onStartEvent.

Doc from org.glassfish.grizzly.TransportProbe.onStartEvent.

Method will be called when the Transport has been started.

Annotations
@Override
onStopEventback to summary
public void onStopEvent(Transport transport)

Implements org.glassfish.grizzly.TransportProbe.onStopEvent.

Doc from org.glassfish.grizzly.TransportProbe.onStopEvent.

Method will be called when the Transport has been stopped.

Annotations
@Override