fr.dyade.aaa.jndi2.distributed
Class ReplicationManager
- LifeCycleListener, java.io.Serializable, UpdateListener
public class ReplicationManager
- Serialized Form
agentFinalize , agentInitialize , changeOwner , createSubcontext , getId , getRootOwnerId , getServerImpl , invoke , invokeAdminRequest , invokeOwner , invokeReadRequest , invokeWriteRequest , onMissingContext , onMissingRecord , readBag , sendTo , setContainer , writeBag |
INIT_REQUEST_TABLE
public static final String INIT_REQUEST_TABLE
SERVER_LIST
public static final String SERVER_LIST
SYNC_REQUEST_TABLE
public static final String SYNC_REQUEST_TABLE
WRITE_REQUEST_TABLE
public static final String WRITE_REQUEST_TABLE
ReplicationManager
public ReplicationManager(short[] serverIds)
getRootOwnerId
protected AgentId getRootOwnerId()
Overrides the JndiServer
behavior.
- getRootOwnerId in interface RequestManager
invokeOwner
protected JndiReply invokeOwner(AgentId owner,
RequestContext reqCtx)
Overrides the JndiServer
behavior.
Send a JNDI request to the owner (JNDI server).
Waits for the asynchronous reply.
- invokeOwner in interface RequestManager
onMissingContext
protected JndiReply onMissingContext(MissingContextException mce,
RequestContext reqCtx)
In a centralized JNDI server a missing context shows
that the naming data are unconsistent. So it throws an error.
A subclass may override this behavior in order
to try to resolve the missing context.
- onMissingContext in interface RequestManager
mce
- the missing context exceptionreqCtx
- the JNDI request context that raised
the exception.
- the JNDI reply.
May be
null
if the resolution is asynchronous.
onMissingRecord
protected JndiReply onMissingRecord(MissingRecordException mre,
RequestContext reqCtx)
In a centralized JNDI server a missing record shows that the
name asked by the JNDI request doesn't exist. So the
NameNotFoundException
is directly forwarded to
the client.
A subclass may override this behavior in order
to try to resolve the missing record.
- onMissingRecord in interface RequestManager
mre
- the missing context exceptionreqCtx
- the JNDI request context that raised
the exception.
- the JNDI reply.
May be
null
if the resolution is asynchronous.
Copyright B) 2004 Scalagent - All rights reserved