| java.lang.Object com.sun.jbi.ui.runtime.verifier.JBIApplicationVerifier
JBIApplicationVerifier | public class JBIApplicationVerifier (Code) | | This class implements JBI Application Verification functionality.
|
Method Summary | |
void | checkForValidTarget(ObjectName objectName, String targetName) | public String | exportApplicationConfiguration(String applicationName, String targetName, String configDir) This method is used to export the application variables and application
configuration objects used by the given application in the specified
target. | protected Object | getAttributeValue(ObjectName objectName, String attributeName) | public ObjectName | getExtensionMBeanObjectName(String componentName, String targetName) returns the ObjectName for the Extension Mbean of this component. | protected Object | invokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] signature) | public boolean | isComponentRunning(String componentName, String target) This method is used to find out if a component is started in
the target. | boolean | isValidTarget(ObjectName objectName) Test whether it is a valid target. | public String[] | validateComponentList(JBIArchive archive, String targetName) | public CompositeData | verifyApplication(String applicationURL, String targetName, boolean generateTemplates, String templateDir, boolean includeDeployCommand) This method is used to verify if the application variables and
application configuration objects used in the given
application are available in JBI runtime in the specified target. |
ENDPOINT_DATA_ITEM_DESCRIPTIONS | static String[] ENDPOINT_DATA_ITEM_DESCRIPTIONS(Code) | | EndpointInfo CompositeType descriptions
|
ENDPOINT_DATA_ITEM_NAMES | static String[] ENDPOINT_DATA_ITEM_NAMES(Code) | | EndpointInfo CompositeType items
|
JAVAEE_VERIFIER_ITEM_DESCRIPTIONS | static String[] JAVAEE_VERIFIER_ITEM_DESCRIPTIONS(Code) | | |
JAVAEE_VERIFIER_ITEM_NAMES | static String[] JAVAEE_VERIFIER_ITEM_NAMES(Code) | | JavaEE Verifier report item names
|
STATUS_RESOLVED | static String STATUS_RESOLVED(Code) | | status string for resolved SAs
|
STATUS_UNKNOWN | static String STATUS_UNKNOWN(Code) | | status unknown for endpoint corresponding to components that are not installed / could not be started
|
STATUS_UNRESOLVED | static String STATUS_UNRESOLVED(Code) | | status string for unresolved SAs
|
JBIApplicationVerifier | public JBIApplicationVerifier(EnvironmentContext envCtx)(Code) | | Constructs an instance of JBIApplicationVerifier
Parameters: envCtx - EnvironmentContext |
exportApplicationConfiguration | public String exportApplicationConfiguration(String applicationName, String targetName, String configDir) throws JBIRemoteException(Code) | | This method is used to export the application variables and application
configuration objects used by the given application in the specified
target.
Parameters: applicationName - the name of the application Parameters: targetName - the target whose configuration has to be exported Parameters: configDir - the dir to store the configurations throws: ManagementRemoteException - if the application configuration could not be exportedNote: param configDir is used between ant/cli and common client client.The return value is used between common client server and common clientclient. |
getAttributeValue | protected Object getAttributeValue(ObjectName objectName, String attributeName) throws JBIRemoteException(Code) | | Invokes the mbean and retrieves the attribute value
Parameters: objectName - object name Parameters: attributeName - attribute name the value of the attribute throws: JBIRemoteException - on error |
getExtensionMBeanObjectName | public ObjectName getExtensionMBeanObjectName(String componentName, String targetName) throws VerifierException(Code) | | returns the ObjectName for the Extension Mbean of this component.
Parameters: componentName - Parameters: targetName - the ObjectName of the Extension MBean or null. |
invokeMBeanOperation | protected Object invokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] signature) throws JBIRemoteException(Code) | | invokes the operation on mbean
result object Parameters: objectName - object name Parameters: operationName - operation name Parameters: params - parameters Parameters: signature - signature of the parameters throws: JBIRemoteException - on user error |
isComponentRunning | public boolean isComponentRunning(String componentName, String target)(Code) | | This method is used to find out if a component is started in
the target. If not, the runtime configuration property is checked to
see if the component could be started. If so, the component is started.
If not this method retunrs false as the status of the endpoint in this
target could not be obtained
Parameters: componentName - componentName Parameters: target - target |
verifyApplication | public CompositeData verifyApplication(String applicationURL, String targetName, boolean generateTemplates, String templateDir, boolean includeDeployCommand) throws JBIRemoteException(Code) | | This method is used to verify if the application variables and
application configuration objects used in the given
application are available in JBI runtime in the specified target.
Also this method verifies if all necessary components are installed.
If generateTemplates is true templates for missing application variables
and application configurations are generated. A command script that uses
the template files to set configuration objects is generated.
Parameters: applicationURL - the URL for the application zip file Parameters: targetName - the target on which the application has to be verified Parameters: generateTemplates - true if templates have to be generated Parameters: templateDir - the dir to store the generated templates Parameters: includeDeployCommand - true if the generated script should includedeploy command throws: JBIRemoteException - if the application could not be verifiedNote: param templateDir is used between ant/cli and common client clientTemplateZIPID is used between common client server and common client client |
|
|