Top Description Inners Methods
org.glassfish.grizzly

public Interface ConnectionProbe

Known Direct Implementers
org.glassfish.grizzly.ConnectionProbe.Adapter

Monitoring probe providing callbacks that may be invoked by Grizzly Connection implementations.
Author
Alexey Stashok
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ConnectionProbe.Adapter

ConnectionProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.

Method Summary

Modifier and TypeMethod and Description
public void
onAcceptEvent(Connection<L>
server Connection, the event belongs to.
serverConnection
,
Connection<L>
new client Connection.
clientConnection
)

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

public void
onBindEvent(Connection<L>
Connection, the event belongs to.
connection
)

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

public void
onCloseEvent(Connection<L>
Connection, the event belongs to.
connection
)

Method will be called, when Connection gets closed.

public void
onConnectEvent(Connection<L>
Connection, the event belongs to.
connection
)

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

public void
onErrorEvent(Connection<L>
Connection, the event belongs to.
connection
,
Throwable
error
error
)

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

public void
onIOEventDisableEvent(Connection<L>
Connection, the event belongs to.
connection
,
IOEvent ioEvent)

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

public void
onIOEventEnableEvent(Connection<L>
Connection, the event belongs to.
connection
,
IOEvent ioEvent)

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

public void
onIOEventReadyEvent(Connection<L>
Connection, the event belongs to.
connection
,
IOEvent ioEvent)

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

public void
onReadEvent(Connection<L>
Connection, the event belongs to.
connection
,
Buffer
Buffer, where the data gets read.
data
,
int
the data size.
size
)

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

public void
onWriteEvent(Connection<L>
Connection, the event belongs to.
connection
,
Buffer
Buffer, where the data gets writen.
data
,
long
the data size.
size
)

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

Method Detail

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

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

Parameters
serverConnection:Connection<L>

server Connection, the event belongs to.

clientConnection:Connection<L>

new client Connection.

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

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

Method will be called, when Connection gets closed.

Parameters
connection:Connection<L>

Connection, the event belongs to.

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

error:Throwable

error

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

ioEvent:IOEvent

IOEvent.

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

ioEvent:IOEvent

IOEvent.

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

ioEvent:IOEvent

IOEvent.

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

data:Buffer

Buffer, where the data gets read.

size:int

the data size.

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

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

Parameters
connection:Connection<L>

Connection, the event belongs to.

data:Buffer

Buffer, where the data gets writen.

size:long

the data size.

org.glassfish.grizzly back to summary

public Class ConnectionProbe.Adapter

extends Object
implements ConnectionProbe
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.ConnectionProbe
Annotations
@SuppressWarnings:UnusedDeclaration

ConnectionProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
Since
2.1.9

Constructor Summary

AccessConstructor and Description
public

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

Adapterback to summary
public Adapter()

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