|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.jndiadministration.AdminConnection
public abstract class AdminConnection
The abstract class all AdminConnection objects must inherit from. Currently there are only two object types. OfflineConnection, for objects that directly connect to and use the persistency mechanism, and OnlineConnection objects that connect to an OpenJMSServer for all their requests.
OfflineConnection
,
OnlineConnection
Field Summary | |
---|---|
protected static AdminConnection |
instance_
|
Constructor Summary | |
---|---|
AdminConnection()
|
Method Summary | |
---|---|
abstract void |
close()
Close the connection. |
abstract void |
createContext(java.lang.String name)
Create a new context with the given name. |
abstract void |
destroyContext(java.lang.String name)
Destroy context with the given name. |
abstract java.util.Enumeration |
getAllContexts(java.lang.String name)
Get an enumerated list of all the Contexts |
static AdminConnection |
instance()
Returns the one and only instance of the connection object. |
abstract java.lang.Object |
lookup(java.lang.String context)
Return the object associated with this context. |
abstract void |
rebind(java.lang.String name,
java.lang.Object ob)
Rebind the context with the given object. |
abstract void |
renameContext(java.lang.String oldName,
java.lang.String newName)
Rename context with the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static AdminConnection instance_
Constructor Detail |
---|
public AdminConnection()
Method Detail |
---|
public static AdminConnection instance()
public abstract void close()
public abstract java.util.Enumeration getAllContexts(java.lang.String name)
public abstract java.lang.Object lookup(java.lang.String context)
context
- The context name
public abstract void createContext(java.lang.String name) throws javax.naming.NamingException
name
- The new context name.
NamingException
- If the context cannot be created.public abstract void destroyContext(java.lang.String name) throws javax.naming.NamingException
name
- The new context name.
NamingException
- If the context cannot be created.public abstract void renameContext(java.lang.String oldName, java.lang.String newName) throws javax.naming.NamingException
oldName
- The old context namenewName
- The new context name
NamingException
- If the context cannot be created.public abstract void rebind(java.lang.String name, java.lang.Object ob) throws javax.naming.NamingException
name
- The context nameob
- The object to bind in this context
NamingException
- If the context cannot be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |