public boolean unbind(NamingContext nc, String lastName, Object ownerId) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ServerImpl.unbind(" + nc + ',' + lastName + ',' + ownerId + ')'); if (! nc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( nc.getOwnerId()); } Record r = nc.getRecord(lastName); if (r != null) { if (r instanceof ContextRecord) throw new NamingException("Cannot unbind a context"); nc.removeRecord(lastName); contextManager.storeNamingContext(nc); return true; } // else do nothing (idempotency) return false; }
Trace.logger.log(BasicLevel.DEBUG, "", noexc); return invokeOwner( (AgentId)noexc.getOwner(), reqCtx);
Trace.logger.log(BasicLevel.DEBUG, "", noexc); return invokeOwner( (AgentId)noexc.getOwner(), reqCtx);
public boolean unbind(NamingContext nc, String lastName, Object ownerId) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ServerImpl.unbind(" + nc + ',' + lastName + ',' + ownerId + ')'); if (! nc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( nc.getOwnerId()); } Record r = nc.getRecord(lastName); if (r != null) { if (r instanceof ContextRecord) throw new NamingException("Cannot unbind a context"); nc.removeRecord(lastName); contextManager.storeNamingContext(nc); return true; } // else do nothing (idempotency) return false; }
public void bind(NamingContext nc, String lastName, Object obj, Object ownerId) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ServerImpl.bind(" + nc + ',' + lastName + ',' + obj + ',' + ownerId + ')'); if (! nc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( nc.getOwnerId()); } Record r = nc.getRecord(lastName); if (r != null) throw new NameAlreadyBoundException(); nc.addRecord(new ObjectRecord(lastName, obj)); contextManager.storeNamingContext(nc); }
public void bind(NamingContext nc, String lastName, Object obj, Object ownerId) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ServerImpl.bind(" + nc + ',' + lastName + ',' + obj + ',' + ownerId + ')'); if (! nc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( nc.getOwnerId()); } Record r = nc.getRecord(lastName); if (r != null) throw new NameAlreadyBoundException(); nc.addRecord(new ObjectRecord(lastName, obj)); contextManager.storeNamingContext(nc); }
ownerId + ')'); if (! nc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( nc.getOwnerId());
ownerId + ')'); if (! nc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( nc.getOwnerId());
ownerId + ')'); if (! parentNc.getOwnerId().equals(ownerId) && (!looseCoupling)) { throw new NotOwnerException( parentNc.getOwnerId());
ownerId + ')'); if (! parentNc.getOwnerId().equals(ownerId) && (!looseCoupling)) { throw new NotOwnerException( parentNc.getOwnerId());
ownerId + ')'); if (! parentNc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( parentNc.getOwnerId());
ownerId + ')'); if (! parentNc.getOwnerId().equals(ownerId) && (!looseCoupling) ) { throw new NotOwnerException( parentNc.getOwnerId());