|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.jndi2.impl.ServerImpl
Constructor Summary | |
ServerImpl(Transaction transaction,
java.lang.Object serverId,
java.lang.Object rootOwnerId)
Constructs a ServerImpl |
Method Summary | |
void |
addNamingContext(NamingContextInfo ncInfo)
|
void |
bind(javax.naming.CompositeName path,
java.lang.Object obj)
Binds an object to the specified path. |
void |
bind(NamingContext nc,
java.lang.String lastName,
java.lang.Object obj,
java.lang.Object ownerId)
|
void |
changeOwner(java.lang.Object formerOwnerId)
|
NamingContextInfo[] |
copyNamingContexts(java.lang.Object serverId)
Returns copies of the naming contexts owned by the server which identifier is specified. |
void |
createSubcontext(javax.naming.CompositeName path)
|
void |
createSubcontext(javax.naming.CompositeName path,
java.lang.Object subcontextOwnerId)
Create a subcontext. |
NamingContextId |
createSubcontext(NamingContext parentNc,
java.lang.String lastName,
javax.naming.CompositeName path,
NamingContextId ncid,
java.lang.Object subcontextOwnerId,
java.lang.Object ownerId)
|
void |
destroySubcontext(javax.naming.CompositeName path)
Destroy a subcontext. |
boolean |
destroySubcontext(NamingContext parentNc,
java.lang.String lastName,
javax.naming.CompositeName path,
java.lang.Object ownerId)
|
NamingContext |
getNamingContext(NamingContextId ncid)
|
void |
initialize()
|
javax.naming.NameClassPair[] |
list(javax.naming.CompositeName path)
|
javax.naming.Binding[] |
listBindings(javax.naming.CompositeName path)
|
Record |
lookup(javax.naming.CompositeName path)
Looks up the specified path. |
void |
readBag(java.io.ObjectInputStream in)
|
void |
rebind(javax.naming.CompositeName path,
java.lang.Object obj)
Rebinds an object to the specified path. |
void |
rebind(NamingContext nc,
java.lang.String lastName,
java.lang.Object obj,
java.lang.Object ownerId)
|
void |
resetNamingContext(NamingContext context)
|
void |
setUpdateListener(UpdateListener updateListener)
|
void |
unbind(javax.naming.CompositeName path)
Unbinds the specified path. |
boolean |
unbind(NamingContext nc,
java.lang.String lastName,
java.lang.Object ownerId)
|
void |
writeBag(java.io.ObjectOutputStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerImpl(Transaction transaction, java.lang.Object serverId, java.lang.Object rootOwnerId)
ServerImpl
transaction
- Transactional context that
provides atomicity for the write operations
performed during a request.serverId
- Identifier of this server.rootOwnerId
- Identifier of the server
that owns the root naming context.Method Detail |
public void setUpdateListener(UpdateListener updateListener)
public void initialize() throws java.lang.Exception
java.lang.Exception
public void bind(javax.naming.CompositeName path, java.lang.Object obj) throws javax.naming.NamingException
path
- the path of the objectobj
- the object to bind
javax.naming.NameAlreadyBoundException
- if the name of
the subcontext is already bound.
javax.naming.NameNotFoundException
- if some of the
intermediate names in the path don't exist.
NotOwnerException
- if the owner of the
parent context is checked and is not the local
naming server.
javax.naming.NamingException
public void bind(NamingContext nc, java.lang.String lastName, java.lang.Object obj, java.lang.Object ownerId) throws javax.naming.NamingException
javax.naming.NamingException
public void rebind(javax.naming.CompositeName path, java.lang.Object obj) throws javax.naming.NamingException
path
- the path of the objectobj
- the object to rebind
javax.naming.NameNotFoundException
- if some of the
intermediate names in the path don't exist.
NotOwnerException
- if the owner of the
parent context is checked and is not the local
naming server.
javax.naming.NamingException
- if the specified path
is bound to a naming context.public void rebind(NamingContext nc, java.lang.String lastName, java.lang.Object obj, java.lang.Object ownerId) throws javax.naming.NamingException
javax.naming.NamingException
public Record lookup(javax.naming.CompositeName path) throws javax.naming.NamingException
path
- the path to look up
null
if the bound object is a context.
javax.naming.NameNotFoundException
- if some of the
names (intermediate and final) in the path don't exist.
NotOwnerException
- if the owner of the
parent context is checked and is not the local
naming server.
javax.naming.NameNotFoundException
javax.naming.NamingException
public void unbind(javax.naming.CompositeName path) throws javax.naming.NamingException
path
- the path to unbind
javax.naming.NameNotFoundException
- if some of the
intermediate names in the path don't exist.
NotOwnerException
- if the owner of the
parent context is checked and is not the local
naming server.
javax.naming.NamingException
- if the specified path
is bound to a naming context.public boolean unbind(NamingContext nc, java.lang.String lastName, java.lang.Object ownerId) throws javax.naming.NamingException
javax.naming.NamingException
public javax.naming.NameClassPair[] list(javax.naming.CompositeName path) throws javax.naming.NamingException
javax.naming.NamingException
public javax.naming.Binding[] listBindings(javax.naming.CompositeName path) throws javax.naming.NamingException
javax.naming.NamingException
public void createSubcontext(javax.naming.CompositeName path) throws javax.naming.NamingException
javax.naming.NamingException
public void createSubcontext(javax.naming.CompositeName path, java.lang.Object subcontextOwnerId) throws javax.naming.NamingException
path
- the path of the subcontext
javax.naming.NameAlreadyBoundException
- if the name of
the subcontext is already bound.
javax.naming.NameNotFoundException
- if some of the
intermediate names in the path don't exist.
NotOwnerException
- if the owner of the
parent context is checked and is not the local
naming server.
javax.naming.NamingException
public NamingContextId createSubcontext(NamingContext parentNc, java.lang.String lastName, javax.naming.CompositeName path, NamingContextId ncid, java.lang.Object subcontextOwnerId, java.lang.Object ownerId) throws javax.naming.NamingException
javax.naming.NamingException
public void destroySubcontext(javax.naming.CompositeName path) throws javax.naming.NamingException
path
- the path of the subcontext
javax.naming.NameAlreadyBoundException
- if the name of
the subcontext is already bound.
javax.naming.NameNotFoundException
- if some of the
intermediate names in the path don't exist.
NotOwnerException
- if the owner of the
parent context is checked and is not the local
naming server.
javax.naming.NotContextException
- if the specified path
isn't bound to a context.
javax.naming.NamingException
public boolean destroySubcontext(NamingContext parentNc, java.lang.String lastName, javax.naming.CompositeName path, java.lang.Object ownerId) throws javax.naming.NamingException
javax.naming.NamingException
public NamingContextInfo[] copyNamingContexts(java.lang.Object serverId) throws javax.naming.NamingException
serverId
- the identifier of the server that owns
the naming contexts to get.
javax.naming.NamingException
public NamingContext getNamingContext(NamingContextId ncid) throws javax.naming.NamingException
javax.naming.NamingException
public void addNamingContext(NamingContextInfo ncInfo) throws javax.naming.NamingException
javax.naming.NamingException
public void changeOwner(java.lang.Object formerOwnerId) throws javax.naming.NamingException
javax.naming.NamingException
public void resetNamingContext(NamingContext context) throws javax.naming.NamingException
javax.naming.NamingException
public void writeBag(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
public void readBag(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |