|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object m.c.m.proxyma.context.ProxymaContextPool
public class ProxymaContextPool
This is Singleton class that stores an hashtable of ProxyContexts. Every record in the hashtable is referred to a single instance of Proxyma and countains the configurations for all the ProxyFolders for that instance.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
Constructor Summary | |
---|---|
ProxymaContextPool()
Constructor for this class |
Method Summary | |
---|---|
ProxymaContext |
getContextByName(java.lang.String contextName)
Obtain an existing context by name. |
static ProxymaContextPool |
getInstance()
Static method to call to obtain the singleton class that manages the contexts for all the proxyma instances in this virtual machine. |
java.util.Enumeration<java.lang.String> |
getRegisteredContextNames()
Returns the name of the registered contexts. |
ProxymaContext |
registerNewContext(java.lang.String contextName,
java.lang.String contextBaseURI,
java.lang.String configurationFile,
java.lang.String logsDirectory)
Creates and register a new context into the pool. |
void |
unregisterContext(ProxymaContext context)
Unregister an existing and empty context from the pool NOTE: This method requires that the context is empty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxymaContextPool()
Method Detail |
---|
public static ProxymaContextPool getInstance()
public ProxymaContext registerNewContext(java.lang.String contextName, java.lang.String contextBaseURI, java.lang.String configurationFile, java.lang.String logsDirectory)
contextName
- a unique string that identifies the context
(use "default" if you don't understand what this means)contextBaseURI
- The base URI to reach this contextconfigurationFile
- The configuration file for the context
public void unregisterContext(ProxymaContext context) throws org.apache.commons.lang.NullArgumentException, java.lang.IllegalArgumentException, java.lang.IllegalStateException
the
- context to unregister
java.lang.IllegalArgumentException
- if the doesn't exists
org.apache.commons.lang.NullArgumentException
- if a null argument is passed to this method
java.lang.IllegalStateException
- if the context is not emptypublic ProxymaContext getContextByName(java.lang.String contextName)
contextName
- a unique string that identifies the wanted context
(use "default" if you don't understand what this means)
public java.util.Enumeration<java.lang.String> getRegisteredContextNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |