public class StoreConfig extends java.lang.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
|
java.lang.String |
getServerFilename()
get server.xml location
|
void |
setRegistry(StoreRegistry aRegistry)
Set Configuration Registry
|
void |
setServer(Server aServer)
Set associated server
|
void |
setServerFilename(java.lang.String string)
set new server.xml location
|
boolean |
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.
|
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(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)
|
protected static final StringManager sm
public java.lang.String getServerFilename()
public void setServerFilename(java.lang.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(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 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(java.io.PrintWriter aWriter, int indent, Context aContext) throws java.lang.Exception
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaContext
- Object to be storedjava.lang.Exception
public void store(java.io.PrintWriter aWriter, int indent, Host aHost) throws java.lang.Exception
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaHost
- Object to be storedjava.lang.Exception
public void store(java.io.PrintWriter aWriter, int indent, Service aService) throws java.lang.Exception
IStoreConfig
store
in interface IStoreConfig
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaService
- Object to be storedjava.lang.Exception
public void store(java.io.PrintWriter writer, int indent, Server aServer) throws java.lang.Exception
store
in interface IStoreConfig
writer
- indent
- aServer
- java.lang.Exception
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.