public class RequestManager extends Object implements LifeCycleListener, Serializable
| Modifier and Type | Field and Description |
|---|---|
private Container |
container |
private ServerImpl |
impl |
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
| Constructor and Description |
|---|
RequestManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
agentFinalize(boolean lastTime) |
void |
agentInitialize(boolean firstTime) |
private void |
bind(fr.dyade.aaa.jndi2.msg.BindRequest request) |
protected void |
changeOwner(fr.dyade.aaa.jndi2.msg.ChangeOwnerRequest request) |
protected void |
createSubcontext(fr.dyade.aaa.jndi2.msg.CreateSubcontextRequest request) |
private void |
destroySubcontext(fr.dyade.aaa.jndi2.msg.DestroySubcontextRequest request) |
fr.dyade.aaa.agent.AgentId |
getId() |
protected fr.dyade.aaa.agent.AgentId |
getRootOwnerId()
Returns the root naming context owner identifier.
|
protected ServerImpl |
getServerImpl() |
fr.dyade.aaa.jndi2.msg.JndiReply |
invoke(RequestContext reqCtx) |
protected fr.dyade.aaa.jndi2.msg.JndiReply |
invokeAdminRequest(RequestContext reqCtx) |
protected fr.dyade.aaa.jndi2.msg.JndiReply |
invokeOwner(fr.dyade.aaa.agent.AgentId owner,
RequestContext reqCtx)
A centralized JNDI server returns a JNDI error
explaining that this server is not the owner
of the context on which the JNDI operation is called.
|
protected fr.dyade.aaa.jndi2.msg.JndiReply |
invokeReadRequest(RequestContext reqCtx) |
protected fr.dyade.aaa.jndi2.msg.JndiReply |
invokeWriteRequest(RequestContext reqCtx) |
private NameClassPair[] |
list(fr.dyade.aaa.jndi2.msg.ListRequest request) |
private Binding[] |
listBindings(fr.dyade.aaa.jndi2.msg.ListBindingsRequest request) |
private Record |
lookup(fr.dyade.aaa.jndi2.msg.LookupRequest request) |
protected fr.dyade.aaa.jndi2.msg.JndiReply |
onMissingContext(MissingContextException mce,
RequestContext reqCtx)
In a centralized JNDI server a missing context shows
that the naming data are unconsistent.
|
protected fr.dyade.aaa.jndi2.msg.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.
|
void |
sendTo(fr.dyade.aaa.agent.AgentId to,
fr.dyade.aaa.agent.Notification not) |
void |
setContainer(Container container) |
private void |
unbind(fr.dyade.aaa.jndi2.msg.UnbindRequest request) |
private static final long serialVersionUID
private Container container
private transient ServerImpl impl
public void setContainer(Container container)
public final fr.dyade.aaa.agent.AgentId getId()
public void sendTo(fr.dyade.aaa.agent.AgentId to,
fr.dyade.aaa.agent.Notification not)
public void agentInitialize(boolean firstTime)
throws Exception
agentInitialize in interface LifeCycleListenerExceptionpublic void agentFinalize(boolean lastTime)
agentFinalize in interface LifeCycleListenerprotected fr.dyade.aaa.agent.AgentId getRootOwnerId()
protected final ServerImpl getServerImpl()
public fr.dyade.aaa.jndi2.msg.JndiReply invoke(RequestContext reqCtx)
protected fr.dyade.aaa.jndi2.msg.JndiReply invokeReadRequest(RequestContext reqCtx) throws NamingException
NamingExceptionprotected fr.dyade.aaa.jndi2.msg.JndiReply invokeWriteRequest(RequestContext reqCtx) throws NamingException
NamingExceptionprotected fr.dyade.aaa.jndi2.msg.JndiReply invokeAdminRequest(RequestContext reqCtx) throws NamingException
NamingExceptionprivate void bind(fr.dyade.aaa.jndi2.msg.BindRequest request)
throws NamingException
NamingExceptionprivate void unbind(fr.dyade.aaa.jndi2.msg.UnbindRequest request)
throws NamingException
NamingExceptionprivate Record lookup(fr.dyade.aaa.jndi2.msg.LookupRequest request) throws NamingException
NamingExceptionprivate NameClassPair[] list(fr.dyade.aaa.jndi2.msg.ListRequest request) throws NamingException
NamingExceptionprivate Binding[] listBindings(fr.dyade.aaa.jndi2.msg.ListBindingsRequest request) throws NamingException
NamingExceptionprotected void createSubcontext(fr.dyade.aaa.jndi2.msg.CreateSubcontextRequest request)
throws NamingException
NamingExceptionprivate void destroySubcontext(fr.dyade.aaa.jndi2.msg.DestroySubcontextRequest request)
throws NamingException
NamingExceptionprotected void changeOwner(fr.dyade.aaa.jndi2.msg.ChangeOwnerRequest request)
throws NamingException
NamingExceptionprotected fr.dyade.aaa.jndi2.msg.JndiReply invokeOwner(fr.dyade.aaa.agent.AgentId owner,
RequestContext reqCtx)
owner - the identifier of the naming server that
owns the naming context on which the
JNDI operation is called.reqCtx - the JNDI request context that raised
the exception.null if the owner invocation
is asynchronous.protected fr.dyade.aaa.jndi2.msg.JndiReply onMissingContext(MissingContextException mce, RequestContext reqCtx)
mce - the missing context exceptionreqCtx - the JNDI request context that raised the exception.null if the resolution is asynchronous.protected fr.dyade.aaa.jndi2.msg.JndiReply onMissingRecord(MissingRecordException mre, RequestContext reqCtx)
NameNotFoundException is directly forwarded to
the client.
A subclass may override this behavior in order
to try to resolve the missing record.mre - the missing context exceptionreqCtx - the JNDI request context that raised the exception.null if the resolution is asynchronous.Copyright © 2021 ScalAgent D.T.. All rights reserved.