public interface ControllerConfigMBean
The ObjectName for this MBean is "WebSphere:feature=collectiveController,type=ControllerConfig,name=ControllerConfig".
The ControllerConfigMBean supports the creation, deletion, and listing
of shared config files. The config files are stored in the
${wlp.user.dir}/
When you store (or delete) a shared config file through one replica, it is
automatically replicated to the corresponding directory in all the
other replicas in the replica set.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OBJECT_NAME
A String representing the
ObjectName that this
MBean maps to. |
Modifier and Type | Method and Description |
---|---|
void |
addSharedConfig(java.lang.String fileName,
java.lang.String config)
Add additional config to the replica set through it's shared config directory.
|
java.lang.String[] |
listSharedConfig()
List the files in the replica's shared config directory.
|
void |
removeSharedConfig(java.lang.String fileName)
Remove config from the replica's shared config directory, by deleting
the specified file from the replica's configDropins/defaults directory.
|
static final java.lang.String OBJECT_NAME
ObjectName
that this
MBean maps to.void addSharedConfig(java.lang.String fileName, java.lang.String config) throws java.io.IOException, java.lang.IllegalArgumentException
fileName
- - file name to create in shared config directoryconfig
- - config to store in filejava.io.IOException
- - if something goes wrong in the replica during this operation.java.lang.IllegalArgumentException
- - if fileName or config parameters are null.void removeSharedConfig(java.lang.String fileName) throws java.io.IOException, java.lang.IllegalArgumentException
fileName
- - file name to delete from shared config directoryjava.io.IOException
- - if something goes wrong in replica during this operation.java.lang.IllegalArgumentException
- - if fileName is null.java.lang.String[] listSharedConfig() throws java.io.IOException
java.io.IOException
- - if something goes wrong in replica during this operation.