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()
IStoreConfig
getRegistry
in interface IStoreConfig
public void setServer(Server aServer)
IStoreConfig
setServer
in interface IStoreConfig
aServer
- the associated serverpublic Server getServer()
IStoreConfig
getServer
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
public void storeServer(String aServerName, boolean backup, boolean externalAllowed) throws MalformedObjectNameException
aServerName
- Server ObjectNamebackup
- externalAllowed
- s *MalformedObjectNameException
public void storeContext(String aContextName, boolean backup, boolean externalAllowed) throws MalformedObjectNameException
aContextName
- MBean ObjectNamebackup
- externalAllowed
- MalformedObjectNameException
public boolean store(Server aServer)
Server
out to the server.xml configuration file.store
in interface IStoreConfig
aServer
- Object to be storedpublic boolean store(Context aContext)
IStoreConfig
store
in interface IStoreConfig
aContext
- Object to be storedpublic void store(PrintWriter aWriter, int indent, Context aContext) throws Exception
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaContext
- Object to be storedException
public void store(PrintWriter aWriter, int indent, Host aHost) throws Exception
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaHost
- Object to be storedException
public void store(PrintWriter aWriter, int indent, Service aService) throws Exception
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaService
- Object to be storedException
public void store(PrintWriter writer, int indent, Server aServer) throws Exception
store
in interface IStoreConfig
writer
- indent
- aServer
- Exception
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.