public void changeOwner(CompositeName name, Object newOwnerId) throws NamingException { NamingContextInfo[] contexts = contextManager.changeOwner( name, serverId, newOwnerId); if (updateListener != null) { updateListener.onUpdate( new ChangeOwnerEvent( newOwnerId, contexts)); } }
public void resetNamingContext(NamingContext context) throws NamingException { storageManager.storeNamingContext(context); reloadMBean(context); }
public ContextManager(Transaction transaction, Object serverId, Object rootOwnerId) { if (transaction instanceof NullTransaction) { contextNameTable = new SimpleContextTable(); contextIdTable = new SimpleContextTable(); } else { contextNameTable = new ContextCache(); contextIdTable = new ContextCache(); } rootContextId = new NamingContextId( rootOwnerId, 0); storageManager = new StorageManager( transaction, serverId); }
public void addNamingContext(NamingContextInfo ncInfo) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ContextManager.addNamingContext(" + ncInfo + ')'); NamingContext nc = ncInfo.getNamingContext(); CompositeName name = ncInfo.getCompositeName(); storageManager.addNamingContext( nc, name); put(nc); put(name, nc); }
public void delete(NamingContextId ncid, CompositeName name) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ContextManager.delete(" + ncid + ',' + name + ')'); contextIdTable.remove(ncid); contextNameTable.remove(name); storageManager.delete(ncid, name); // unregister MBean unregisterMBean(name); }
private void reloadMBean(NamingContext context) { CompositeName cn = context.getContextName(); if (cn.size() > 0) { unregisterMBean(cn); registerMBean(context, cn); } }
public String toString() { return '(' + super.toString() + ",path=" + path + ",contextId=" + contextId + ",ownerId=" + ownerId + ')'; } }
public String toString() { return '(' + super.toString() + ",id=" + id + ')'; } }
public void readBag(ObjectInputStream in) throws IOException, ClassNotFoundException { contextManager.readBag(in); } }
public ContextManager(Transaction transaction, Object serverId, Object rootOwnerId) { if (transaction instanceof NullTransaction) { contextNameTable = new SimpleContextTable(); contextIdTable = new SimpleContextTable(); } else { contextNameTable = new ContextCache(); contextIdTable = new ContextCache(); } rootContextId = new NamingContextId( rootOwnerId, 0); storageManager = new StorageManager( transaction, serverId); }
public void addNamingContext(NamingContextInfo ncInfo) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ContextManager.addNamingContext(" + ncInfo + ')'); NamingContext nc = ncInfo.getNamingContext(); CompositeName name = ncInfo.getCompositeName(); storageManager.addNamingContext( nc, name); put(nc); put(name, nc); }
public void changeOwner(CompositeName name, Object newOwnerId) throws NamingException { NamingContextInfo[] contexts = contextManager.changeOwner( name, serverId, newOwnerId); if (updateListener != null) { updateListener.onUpdate( new ChangeOwnerEvent( newOwnerId, contexts)); } }
public void delete(NamingContextId ncid, CompositeName name) throws NamingException { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ContextManager.delete(" + ncid + ',' + name + ')'); contextIdTable.remove(ncid); contextNameTable.remove(name); storageManager.delete(ncid, name); // unregister MBean unregisterMBean(name); }
public void resetNamingContext(NamingContext context) throws NamingException { storageManager.storeNamingContext(context); reloadMBean(context); }
public String toString() { return '(' + super.toString() + ",object=" + object + ')'; } }
public String toString() { return '(' + super.toString() + ",object=" + object + ')'; } }