Ejemplo n.º 1
0
  public void unableToRespondToConnectRequest() {
    if (deltaMetrics == null) {
      createDeltaMetric();
    }

    deltaMetrics.unableToRespondToConnectRequest();
    cumulativeMetrics.unableToRespondToConnectRequest();
  }
Ejemplo n.º 2
0
  public void errorAddingClient() {
    if (deltaMetrics == null) {
      createDeltaMetric();
    }

    deltaMetrics.errorAddingClient();
    cumulativeMetrics.errorAddingClient();
  }
Ejemplo n.º 3
0
  public void clientConnectionEstablished(long lease) {
    transitionTime = System.currentTimeMillis();

    if (deltaMetrics == null) {
      createDeltaMetric();
    }

    deltaMetrics.clientConnectionEstablished(transitionTime, lease);
    cumulativeMetrics.clientConnectionEstablished(transitionTime, lease);
  }
Ejemplo n.º 4
0
  public void clientConnectionRefused() {
    transitionTime = System.currentTimeMillis();

    if (deltaMetrics == null) {
      createDeltaMetric();
    }

    deltaMetrics.clientConnectionRefused(transitionTime);
    cumulativeMetrics.clientConnectionRefused(transitionTime);
  }
Ejemplo n.º 5
0
  public void clientConnectionDisconnected(boolean normal) {
    transitionTime = System.currentTimeMillis();

    if (deltaMetrics == null) {
      createDeltaMetric();
    }

    deltaMetrics.clientConnectionDisconnected(normal, transitionTime);
    cumulativeMetrics.clientConnectionDisconnected(normal, transitionTime);
  }
Ejemplo n.º 6
0
  public void clientLeaseRenewed(long lease) {
    lastLeaseRenewalTime = System.currentTimeMillis();

    if (deltaMetrics == null) {
      createDeltaMetric();
    }

    deltaMetrics.clientLeaseRenewed(lastLeaseRenewalTime, lease);
    cumulativeMetrics.clientLeaseRenewed(lastLeaseRenewalTime, lease);
  }