コード例 #1
0
 @Override
 public void initialize(AsyncContext<DirectoryServiceRegistrationInfo, NullMessage> rpcContext)
     throws RPCException {
   LOG.info("Received Initialization Request on Callback Channel");
   if (rpcContext.getInput().getRegistrationCookie() == _connectionCookie) {
     LOG.info("Callback Cookie is Valid. Starting Test");
     rpcContext.setStatus(AsyncRequest.Status.Success);
     rpcContext.completeRequest();
     startTest();
   } else {
     LOG.error("Connection Cookies Don't Match!");
     _eventLoop.stop();
   }
 }
コード例 #2
0
 @Override
 public void itemChanged(AsyncContext<DirectoryServiceItemList, NullMessage> rpcContext)
     throws RPCException {
   dumpItemList(rpcContext.getInput());
   rpcContext.completeRequest();
 }