public class StoreConfig extends Object implements IStoreConfig
| Modifier and Type | Field and Description |
|---|---|
protected static StringManager |
sm |
| Constructor and Description |
|---|
StoreConfig() |
| Modifier and Type | Method and Description |
|---|---|
StoreRegistry |
getRegistry()
Get Configuration Registry
|
Server |
getServer()
Get associated server
|
String |
getServerFilename()
get server.xml location
|
void |
setRegistry(StoreRegistry aRegistry)
Set Configuration Registry
|
void |
setServer(Server aServer)
Set associated server
|
void |
setServerFilename(String string)
set new server.xml location
|
boolean |
store(Context aContext)
Store the specified Context properties.
|
void |
store(PrintWriter aWriter,
int indent,
Context aContext)
Store the specified Context properties.
|
void |
store(PrintWriter aWriter,
int indent,
Host aHost)
Store the specified Host properties.
|
void |
store(PrintWriter writer,
int indent,
Server aServer)
Store the state of this Server MBean (which will recursively store
everything)
|
void |
store(PrintWriter aWriter,
int indent,
Service aService)
Store the specified Service properties.
|
boolean |
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(String aContextName,
boolean backup,
boolean externalAllowed)
Store a Context from ObjectName
|
void |
storeServer(String aServerName,
boolean backup,
boolean externalAllowed)
Store Server from Object Name (Catalina:type=Server)
|
protected static final StringManager sm
public String getServerFilename()
public void setServerFilename(String string)
string - public StoreRegistry getRegistry()
IStoreConfiggetRegistry in interface IStoreConfigpublic void setServer(Server aServer)
IStoreConfigsetServer in interface IStoreConfigaServer - the associated serverpublic Server getServer()
IStoreConfiggetServer in interface IStoreConfigpublic void setRegistry(StoreRegistry aRegistry)
IStoreConfigsetRegistry in interface IStoreConfigaRegistry - aregistry that handle the store operationspublic void storeConfig()
storeConfig in interface IStoreConfigpublic void storeServer(String aServerName, boolean backup, boolean externalAllowed) throws MalformedObjectNameException
aServerName - Server ObjectNamebackup - externalAllowed - s *MalformedObjectNameExceptionpublic void storeContext(String aContextName, boolean backup, boolean externalAllowed) throws MalformedObjectNameException
aContextName - MBean ObjectNamebackup - externalAllowed - MalformedObjectNameExceptionpublic boolean store(Server aServer)
Server
out to the server.xml configuration file.store in interface IStoreConfigaServer - Object to be storedpublic boolean store(Context aContext)
IStoreConfigstore in interface IStoreConfigaContext - Object to be storedpublic void store(PrintWriter aWriter, int indent, Context aContext) throws Exception
IStoreConfigstore in interface IStoreConfigaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaContext - Object to be storedExceptionpublic void store(PrintWriter aWriter, int indent, Host aHost) throws Exception
IStoreConfigstore in interface IStoreConfigaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaHost - Object to be storedExceptionpublic void store(PrintWriter aWriter, int indent, Service aService) throws Exception
IStoreConfigstore in interface IStoreConfigaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaService - Object to be storedExceptionpublic void store(PrintWriter writer, int indent, Server aServer) throws Exception
store in interface IStoreConfigwriter - indent - aServer - ExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.