|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EmbeddedAgentBootstrapServiceMBean
The interface to the MBean that embeds a JON Agent in the JON Server.
| Field Summary | |
|---|---|
static javax.management.ObjectName |
OBJECT_NAME
The object name that the MBean service will be registered under. |
| Method Summary | |
|---|---|
void |
cleanDataDirectory()
This will clean out the embedded agent's data directory. |
void |
executeAgentPromptCommand(java.lang.String command)
Passes the given prompt command to the agent so it can be executed. |
java.lang.String[] |
getAgentArguments()
Returns the arguments that are passed to the agent's main startup method. |
java.util.Properties |
getAgentConfiguration()
Returns the configuration preferencese the agent is or will be using. |
java.lang.String |
getAgentEnabled()
If true, this indicates that the agent should be started when the JON Server is started. |
java.lang.String |
getConfigurationFile()
Returns the location of the configuration file where all agent preferences are defined. |
java.util.Properties |
getConfigurationOverrides()
Returns a set of properties that will override the configuration preferences. |
java.io.File |
getEmbeddedAgentDirectory()
Indicates the location where the embedded agent and all its resources will be found. |
java.lang.String |
getPreferencesNodeName()
Returns the preferences node name used to identify the configuration set to use. |
java.lang.String |
getResetConfiguration()
Returns true if the embedded agent should reset its configuration at startup. |
boolean |
isAgentStarted()
true indicates that the agent has been started. |
void |
reloadAgentConfiguration()
This will clear any and all current configuration preferences and then reload the configuration file. |
void |
setAgentArguments(java.lang.String[] args)
Sets the arguments that will be passed to the agent's main startup method. |
void |
setAgentEnabled(java.lang.String enabled)
If true, this indicates that the agent should be started when the JON Server is started. |
void |
setConfigurationFile(java.lang.String location)
Defines the location of the configuration file where all agent preferences are defined. |
void |
setConfigurationOverrides(java.util.Properties overrides)
This allows you to explicitly override configuration preferences found in the configuration file. |
void |
setEmbeddedAgentDirectory(java.io.File directory)
Indicates the location where the embedded agent and all its resources will be found. |
void |
setPreferencesNodeName(java.lang.String node)
Defines the preferences node name used to identify the configuration set to use. |
void |
setResetConfiguration(java.lang.String reset)
Sets the flag to determine if the agent should reset its configuration to its original configuration as defined in the configuration file, or if it should retain its configuration from when it last ran. |
void |
startAgent()
Starts the agent. |
void |
stop()
Stops this service - if the agent has been started, it will also be
stopped. |
void |
stopAgent()
Stops the agent. |
| Field Detail |
|---|
static final javax.management.ObjectName OBJECT_NAME
| Method Detail |
|---|
java.lang.String getAgentEnabled()
true, this indicates that the agent should be started when the JON Server is started. This
service is will not start the agent at its own startup, regardless of the value of this attribute. Instead, this
attribute is examined by the JON Server itself - if the JON Server sees that the embedded agent should be started
at startup, the JON Server will call startAgent().
void setAgentEnabled(java.lang.String enabled)
true, this indicates that the agent should be started when the JON Server is started. This
service is will not start the agent at its own startup, regardless of the value of this attribute. Instead, this
attribute is examined by the JON Server itself - if the JON Server sees that the embedded agent should be started
at startup, the JON Server will call startAgent().
enabled - (a boolean string)java.lang.String getResetConfiguration()
true if the embedded agent should reset its configuration at startup. Resetting the
configuration means to clear out any configuration settings currently persisted in the preferences store and
reload the configuration from its configuration file. If false, the embedded agent will retain the
configuration it had when it last was running - which may be different from its original configuration if a user
changed its configuration settings from the UI.
void setResetConfiguration(java.lang.String reset)
getResetConfiguration() for more information.
reset - java.io.File getEmbeddedAgentDirectory()
lib subdirectory under this directory which will include all jar files that are to be included in the
embedded agent's classloader.
void setEmbeddedAgentDirectory(java.io.File directory)
lib subdirectory under this directory which will include all jar files that are to be included in the
embedded agent's classloader.
directory - location of the embedded agent and its resourcesjava.lang.String getConfigurationFile()
void setConfigurationFile(java.lang.String location)
location - java.lang.String getPreferencesNodeName()
void setPreferencesNodeName(java.lang.String node)
If this isn't specified, a suitable default will be used.
node - the name of the Java Preferences node where the agent's configuration will or already livesjava.util.Properties getConfigurationOverrides()
null,
then the configuration preferences takes effect as-is.
null)void setConfigurationOverrides(java.util.Properties overrides)
${jboss.server.data.dir}, in the configuration preference values).
overrides - configuration settings that override the configuration preferences (may benull)java.lang.String[] getAgentArguments()
void setAgentArguments(java.lang.String[] args)
args -
void reloadAgentConfiguration()
throws java.lang.Exception
configuration file. The agent will need to be restarted for the configuration to
take effect.
java.lang.Exception - if failed to clear and reload the configurationvoid cleanDataDirectory()
reloadAgentConfiguration()).
java.util.Properties getAgentConfiguration()
void executeAgentPromptCommand(java.lang.String command)
command - the agent prompt command to executeboolean isAgentStarted()
true indicates that the agent has been started. false means the
agent has not been started yet, or it was started but has since been stopped.
void startAgent()
throws java.lang.Exception
the agent is not enabled.
java.lang.Exception - if failed to start the agent successfully
void stopAgent()
throws java.lang.Exception
the agent is not enabled or was
never started.
java.lang.Exception - if failed to stop the agent successfully
void stop()
throws java.lang.Exception
started, it will also be
stopped.
java.lang.Exception - if failed to stop the agent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||