Exemplo n.º 1
0
 /**
  * Notify registered {@link ConnectionProbe}s about the error.
  *
  * @param connection the <tt>Connection</tt> event occurred on.
  */
 protected static void notifyProbesError(AIOConnection connection, Throwable error) {
   final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe();
   if (probes != null) {
     for (ConnectionProbe probe : probes) {
       probe.onErrorEvent(connection, error);
     }
   }
 }
Exemplo n.º 2
0
 /**
  * Notify registered {@link ConnectionProbe}s about the IO Event disabled event.
  *
  * @param connection the <tt>Connection</tt> event occurred on.
  * @param ioEvent the {@link IOEvent}.
  */
 protected static void notifyIOEventDisabled(AIOConnection connection, IOEvent ioEvent) {
   final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe();
   if (probes != null) {
     for (ConnectionProbe probe : probes) {
       probe.onIOEventDisableEvent(connection, ioEvent);
     }
   }
 }
Exemplo n.º 3
0
 /**
  * Notify registered {@link ConnectionProbe}s about the close event.
  *
  * @param connection the <tt>Connection</tt> event occurred on.
  */
 protected static void notifyProbesClose(AIOConnection connection) {
   final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe();
   if (probes != null) {
     for (ConnectionProbe probe : probes) {
       probe.onCloseEvent(connection);
     }
   }
 }
Exemplo n.º 4
0
  /** Notify registered {@link ConnectionProbe}s about the write event. */
  protected static void notifyProbesWrite(AIOConnection connection, Buffer data, int size) {

    final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe();
    if (probes != null) {
      for (ConnectionProbe probe : probes) {
        probe.onWriteEvent(connection, data, size);
      }
    }
  }