Package net.sf.katta.protocol

Examples of net.sf.katta.protocol.InteractionProtocol.unregisterComponent()


    this.notifyAll();
  }

  private synchronized void finishWatchdog() {
    InteractionProtocol protocol = _context.getProtocol();
    protocol.unregisterComponent(this);
    try {
      List<OperationResult> operationResults = new ArrayList<OperationResult>(_openOperationIds.size());
      for (OperationId operationId : _operationIds) {
        OperationResult operationResult = protocol.getNodeOperationResult(operationId, true);
        if (operationResult != null && operationResult.getUnhandledException() != null) {
View Full Code Here


    protocol.setMetric("node1", new MetricsRecord("node1"));
    Thread.sleep(500);
    protocol.setMetric("node1", new MetricsRecord("node1"));
    Thread.sleep(500);
    assertEquals(2, metricLogger.getLoggedRecords());
    protocol.unregisterComponent(metricLogger);
    protocol.disconnect();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.