|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.storeconfig.StoreConfig
Store Server/Service/Host/Context at file or PrintWriter. Default server.xml is at $catalina.base/conf/server.xml
Constructor Summary | |
StoreConfig()
|
Method Summary | |
StoreRegistry |
getRegistry()
Get Configuration Registry |
java.lang.String |
getServerFilename()
get server.xml location |
void |
setRegistry(StoreRegistry aRegistry)
Set Configuration Registry |
void |
setServerFilename(java.lang.String string)
set new server.xml location |
void |
store(Context aContext)
Store the specified Context properties. |
void |
store(java.io.PrintWriter aWriter,
int indent,
Context aContext)
Store the specified Context properties. |
void |
store(java.io.PrintWriter aWriter,
int indent,
Host aHost)
Store the specified Host properties. |
void |
store(java.io.PrintWriter writer,
int indent,
Server aServer)
Store the state of this Server MBean (which will recursively store everything) |
void |
store(java.io.PrintWriter aWriter,
int indent,
Service aService)
Store the specified Service properties. |
void |
store(Server aServer)
Write the configuration information for this entire Server
out to the server.xml configuration file. |
void |
storeConfig()
Store current Server |
void |
storeContext(java.lang.String aContextName,
boolean backup,
boolean externalAllowed)
Store a Context from ObjectName |
void |
storeServer(java.lang.String aServerName,
boolean backup,
boolean externalAllowed)
Store Server from Object Name (Catalina:type=Server) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StoreConfig()
Method Detail |
public java.lang.String getServerFilename()
public void setServerFilename(java.lang.String string)
string
- public StoreRegistry getRegistry()
IStoreConfig
getRegistry
in interface IStoreConfig
public void setRegistry(StoreRegistry aRegistry)
IStoreConfig
setRegistry
in interface IStoreConfig
aRegistry
- aregistry that handle the store operationspublic void storeConfig()
storeConfig
in interface IStoreConfig
ServerFactory.getServer()
public void storeServer(java.lang.String aServerName, boolean backup, boolean externalAllowed) throws javax.management.MalformedObjectNameException
aServerName
- Server ObjectNamebackup
- externalAllowed
- s *
javax.management.MalformedObjectNameException
public void storeContext(java.lang.String aContextName, boolean backup, boolean externalAllowed) throws javax.management.MalformedObjectNameException
aContextName
- MBean ObjectNamebackup
- externalAllowed
-
javax.management.MalformedObjectNameException
public void store(Server aServer)
Server
out to the server.xml configuration file.
store
in interface IStoreConfig
aServer
- Object to be storedpublic void store(Context aContext)
IStoreConfig
store
in interface IStoreConfig
aContext
- Object to be storedpublic void store(java.io.PrintWriter aWriter, int indent, Context aContext)
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaContext
- Object to be storedpublic void store(java.io.PrintWriter aWriter, int indent, Host aHost)
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaHost
- Object to be storedpublic void store(java.io.PrintWriter aWriter, int indent, Service aService)
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaService
- Object to be storedpublic void store(java.io.PrintWriter writer, int indent, Server aServer)
store
in interface IStoreConfig
writer
- indent
- aServer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |