public class RequestManager extends Object implements LifeCycleListener, Serializable
Modifier and Type | Field and Description |
---|---|
private Container |
container |
private ServerImpl |
impl |
private static long |
serialVersionUID |
Constructor and Description |
---|
RequestManager() |
Modifier and Type | Method and Description |
---|---|
void |
agentFinalize(boolean lastTime) |
void |
agentInitialize(boolean firstTime) |
private void |
bind(BindRequest request) |
protected void |
changeOwner(ChangeOwnerRequest request) |
protected void |
createSubcontext(CreateSubcontextRequest request) |
private void |
destroySubcontext(DestroySubcontextRequest request) |
AgentId |
getId() |
protected AgentId |
getRootOwnerId()
Returns the root naming context owner identifier.
|
protected ServerImpl |
getServerImpl() |
JndiReply |
invoke(RequestContext reqCtx) |
protected JndiReply |
invokeAdminRequest(RequestContext reqCtx) |
protected JndiReply |
invokeOwner(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 JndiReply |
invokeReadRequest(RequestContext reqCtx) |
protected JndiReply |
invokeWriteRequest(RequestContext reqCtx) |
private NameClassPair[] |
list(ListRequest request) |
private Binding[] |
listBindings(ListBindingsRequest request) |
private Record |
lookup(LookupRequest request) |
protected JndiReply |
onMissingContext(MissingContextException mce,
RequestContext reqCtx)
In a centralized JNDI server a missing context shows
that the naming data are unconsistent.
|
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.
|
void |
sendTo(AgentId to,
Notification not) |
void |
setContainer(Container container) |
private void |
unbind(UnbindRequest request) |
private static final long serialVersionUID
private Container container
private transient ServerImpl impl
public void setContainer(Container container)
public final AgentId getId()
public void sendTo(AgentId to, Notification not)
public void agentInitialize(boolean firstTime) throws Exception
agentInitialize
in interface LifeCycleListener
Exception
public void agentFinalize(boolean lastTime)
agentFinalize
in interface LifeCycleListener
protected AgentId getRootOwnerId()
protected final ServerImpl getServerImpl()
public JndiReply invoke(RequestContext reqCtx)
protected JndiReply invokeReadRequest(RequestContext reqCtx) throws NamingException
NamingException
protected JndiReply invokeWriteRequest(RequestContext reqCtx) throws NamingException
NamingException
protected JndiReply invokeAdminRequest(RequestContext reqCtx) throws NamingException
NamingException
private void bind(BindRequest request) throws NamingException
NamingException
private void unbind(UnbindRequest request) throws NamingException
NamingException
private Record lookup(LookupRequest request) throws NamingException
NamingException
private NameClassPair[] list(ListRequest request) throws NamingException
NamingException
private Binding[] listBindings(ListBindingsRequest request) throws NamingException
NamingException
protected void createSubcontext(CreateSubcontextRequest request) throws NamingException
NamingException
private void destroySubcontext(DestroySubcontextRequest request) throws NamingException
NamingException
protected void changeOwner(ChangeOwnerRequest request) throws NamingException
NamingException
protected JndiReply invokeOwner(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 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 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 © 2018 ScalAgent D.T.. All Rights Reserved.