Sonic ESB API

com.sonicsw.esb.mgmtapi.runtime
Interface IMonitoredContainerRuntimeAPI


public interface IMonitoredContainerRuntimeAPI


Method Summary
 void clearLogFiles(java.lang.String containerRuntimeID)
          Invoke the Agent's JMX clearLogFile operation, which deletes the current log file and the archived ones
 IContainerState getMFContainerState(java.lang.String containerName)
          Return the state for the MF container
 boolean isMFComponentOnline(java.lang.String containerName, java.lang.String componentName)
          Answer whether the specified component is online.
 void launchMFContainer(java.lang.String containerID)
          Start the monitored container
 void reloadMFComponent(java.lang.String containerName, java.lang.String componentName)
          Reload a component within the MF container.
 void restartMFContainer(java.lang.String canonicalName)
          Restart a running container
 void setContainerLaunchActivationDaemon(java.lang.String containerName, java.lang.String daemonName)
          Allow the user to use a different activation daemon for container launch Currently, it does not change the activation daemon configured with the domain manager which starts the auto-launch containers.
 void shutdownMFContainer(java.lang.String canonicalName)
          Shutdown the monitored container.
 void startMFComponent(java.lang.String containerName, java.lang.String componentName)
          Starts the MF component if it has not already been started.
 

Method Detail

launchMFContainer

void launchMFContainer(java.lang.String containerID)
                       throws ESBAPIException
Start the monitored container

Parameters:
containerID - The configuration ID of the container
Throws:
ESBAPIException - If the container cannot be found or if there's a problem with communications with the activation daemon or if there is a problem during the launch

shutdownMFContainer

void shutdownMFContainer(java.lang.String canonicalName)
                         throws ESBAPIException
Shutdown the monitored container.

Parameters:
canonicalName - The runtime name of the container in <domainName>.<containerName> form
Throws:
ESBAPIException - if there is a problem communicating with the container or there is a problem during the shutdown.

restartMFContainer

void restartMFContainer(java.lang.String canonicalName)
                        throws ESBAPIException
Restart a running container

Parameters:
canonicalName - The runtime id of the running container in the form <domainName>.<containerName>
Throws:
ESBAPIException - if there is a problem communicating to the container or if there is a problem restarting the container

isMFComponentOnline

boolean isMFComponentOnline(java.lang.String containerName,
                            java.lang.String componentName)
                            throws ESBAPIException
Answer whether the specified component is online.

Parameters:
containerName - The runtime ID of the MF container in the canonical form <domainName>.<containerName> or the logical configuration ID of the container, ie. /Containers/dev_ESBTest. This parameter should not be null, as this method checks that the container is online using the container runtime ID derived from this argument.
componentName - The simple component name, for instance "dev_ESBCore", or the logical configuration ID of the container, ie. /ESBContainers/dev_ESBTest or the complete runtime ID of the component, for instance, Domain1.dev_ESBTest:ID=dev_ESBTest.
Returns:
true if the component is online, false if the container or the component is not online
Throws:
ESBAPIException - If there is an error during the invocation of the reload operation, or the container doesn't exist

reloadMFComponent

void reloadMFComponent(java.lang.String containerName,
                       java.lang.String componentName)
                       throws ESBAPIException
Reload a component within the MF container.

Parameters:
containerName - The runtime ID of the MF container in the canonical form <domainName>.<containerName> or the logical configuration ID of the container, ie. /Containers/dev_ESBTest. This parameter should not be null, as this method checks that the container is online using the container runtime ID derived from this argument.
componentName - The simple component name, for instance "dev_ESBCore", or the logical configuration ID of the container, ie. /ESBContainers/dev_ESBTest or the complete runtime ID of the component, for instance, Domain1.dev_ESBTest:ID=dev_ESBTest.
Throws:
ESBAPIException - If there is an error during the invocation of the reload operation, or the container doesn't exist or the container is not online.

startMFComponent

void startMFComponent(java.lang.String containerName,
                      java.lang.String componentName)
                      throws ESBAPIException
Starts the MF component if it has not already been started.

Parameters:
containerName - The runtime ID of the MF container in the canonical form <domainName>.<containerName> or the logical configuration ID of the container, ie. /Containers/dev_ESBTest. This parameter should not be null, as this method checks that the container is online using the container runtime ID derived from this argument.
componentName - The simple component name, for instance "dev_ESBCore", or the logical configuration ID of the container, ie. /ESBContainers/dev_ESBTest or the complete runtime ID of the component, for instance, Domain1.dev_ESBTest:ID=dev_ESBTest.
Throws:
ESBAPIException - If there's an invocation exception during the start operation of the component, or the container is not online or doesn't exist or if the component doesn't exist in the container.

getMFContainerState

IContainerState getMFContainerState(java.lang.String containerName)
                                    throws ESBAPIException
Return the state for the MF container

Parameters:
containerName - The runtime ID of the container in the form <domainName>.<containerName> or the configuration name of the container.
Returns:
The com.sonicsw.mf.common.runtime.IContainerState for the container
Throws:
ESBAPIException - If there is a problem communicating with the domain manager or an underlying error getting the state of the container.

setContainerLaunchActivationDaemon

void setContainerLaunchActivationDaemon(java.lang.String containerName,
                                        java.lang.String daemonName)
                                        throws ESBAPIException
Allow the user to use a different activation daemon for container launch Currently, it does not change the activation daemon configured with the domain manager which starts the auto-launch containers.

Parameters:
containerName - The container name of MF container which contains the daemon, for instance, "DomainManager"
daemonName - The name of the activation daemon, for instance, "AutoLaunchDaemon". This is the name used when adding the daemon to the container.
Throws:
ESBAPIException - If there's an error constructing the JMX object name of the daemon to be used for container startup.

clearLogFiles

void clearLogFiles(java.lang.String containerRuntimeID)
                   throws ESBAPIException
Invoke the Agent's JMX clearLogFile operation, which deletes the current log file and the archived ones

Parameters:
containerRuntimeID - The runtime ID of the container, in <domainName>.<containerName> form
Throws:
ESBAPIException - If the container is not found, or the container is not online, or there is an error during the invocation of the clearLogFile JMX operation of the Agent.

Sonic ESB API

Copyright © 2001-2012 Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-Mar-2012.