kaos.core.service.util
Class MethodCallProxy.OperationWaiter

java.lang.Object
  extended by kaos.core.service.util.MethodCallProxy.OperationWaiter
Enclosing class:
MethodCallProxy

public static class MethodCallProxy.OperationWaiter
extends java.lang.Object

This class is used as a helper class to block Threads invoking the various Directory operations (register, deregister, modify, search). After an operation is invoked and a message is sent to the Domain Manager, the calling Thread has to wait until the Domain Manager returns a reply message containing the result, which is either null, AgentDescriptions of other agents, or an Exception to be re-trown to the agent requesting the operation.


Constructor Summary
MethodCallProxy.OperationWaiter()
           
 
Method Summary
 void doNotify(MethodCallResultMsg result)
           
 void doWait()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCallProxy.OperationWaiter

public MethodCallProxy.OperationWaiter()
Method Detail

doWait

public void doWait()
            throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

doNotify

public void doNotify(MethodCallResultMsg result)