context.getConnection().dispatchAsync(md); } else { context.getConnection().dispatchSync(md); onDispatch(node, message);
context.getConnection().dispatchSync(md); if (node != null) { Destination regionDestination = (Destination) node.getRegionDestination();
public boolean handleUser(boolean addition, URI user, URI defaultRole, URI defaultAclTemplate, String userId,String password) throws BocaException { SecurityContext sc = userSecurityContextMap.get(user.toString()); if (sc != null) { if (!addition) { Set<ConnectionContext> conns = userConnection.get(sc.getUserName()); if (conns != null) { for (Iterator<ConnectionContext> iter = conns.iterator(); iter.hasNext();) { ConnectionContext con = iter.next(); try { ConnectionError cmd = new ConnectionError(); cmd.setException(new Exception("user removed")); con.getConnection().dispatchSync(cmd); } catch (Exception e) { } if (securityContexts.remove(con.getSecurityContext())) { con.setSecurityContext(null); } } } } else { sc.getAuthorizedReadDests().clear(); sc.getAuthorizedWriteDests().clear(); } } return true; }
context.getConnection().dispatchAsync(md); } else { context.getConnection().dispatchSync(md); onDispatch(node, message);
context.getConnection().dispatchAsync(md); } else { context.getConnection().dispatchSync(md); onDispatch(node, message);
context.getConnection().dispatchAsync(md); } else { context.getConnection().dispatchSync(md); onDispatch(node, message);
context.getConnection().dispatchAsync(md); } else { context.getConnection().dispatchSync(md); onDispatch(node, message);
context.getConnection().dispatchAsync(md); } else { context.getConnection().dispatchSync(md); node.getRegionDestination().getDestinationStatistics().getDispatched().increment(); node.getRegionDestination().getDestinationStatistics().getInflight().increment();
context.getConnection().dispatchSync(md); if (node != null) { Destination regionDestination = (Destination) node.getRegionDestination();
context.getConnection().dispatchSync(md); if (node != null) { Destination regionDestination = (Destination) node.getRegionDestination();
context.getConnection().dispatchSync(md); if (node != null) { Destination regionDestination = (Destination) node.getRegionDestination();