@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(); } }
@Override public void itemChanged(AsyncContext<DirectoryServiceItemList, NullMessage> rpcContext) throws RPCException { dumpItemList(rpcContext.getInput()); rpcContext.completeRequest(); }