public class JBIApplicationVerifier extends Object
| Constructor and Description |
|---|
JBIApplicationVerifier(EnvironmentContext envCtx)
Constructs an instance of JBIApplicationVerifier
|
| Modifier and Type | Method and Description |
|---|---|
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)
Invokes the mbean and retrieves the attribute value
|
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)
invokes the operation on mbean
|
boolean |
isComponentRunning(String componentName,
String target)
This method is used to find out if a component is started in
the target.
|
String[] |
validateComponentList(JBIArchive archive,
String targetName)
This method is used to verify if the components needed by a given SA
are installed
|
CompositeData |
verifyApplication(String applicationURL,
String targetName,
boolean generateTemplates,
String templateDir,
boolean includeDeployCommand,
String clientSAFilePath)
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.
|
public JBIApplicationVerifier(EnvironmentContext envCtx)
envCtx - EnvironmentContextpublic CompositeData verifyApplication(String applicationURL, String targetName, boolean generateTemplates, String templateDir, boolean includeDeployCommand, String clientSAFilePath) throws JBIRemoteException
applicationURL - the URL for the application zip filetargetName - the target on which the application has to be verifiedgenerateTemplates - true if templates have to be generatedtemplateDir - the dir to store the generated templatesincludeDeployCommand - true if the generated script should include
deploy commandclientSAFilePath - path to the SA in the client file schemaorg_apache_xmlbeans.systemJBIRemoteException - if the application could not be verified
Note: param templateDir is used between ant/cli and common client client
TemplateZIPID is used between common client server and common client clientpublic String[] validateComponentList(JBIArchive archive, String targetName) throws JBIRemoteException
archive - the service assembly archiveJBIRemoteExceptionpublic boolean isComponentRunning(String componentName, String target)
componentName - componentNametarget - targetprotected Object invokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] signature) throws JBIRemoteException
objectName - object nameoperationName - operation nameparams - parameterssignature - signature of the parametersJBIRemoteException - on user errorpublic ObjectName getExtensionMBeanObjectName(String componentName, String targetName) throws VerifierException
componentName - targetName - VerifierExceptionprotected Object getAttributeValue(ObjectName objectName, String attributeName) throws JBIRemoteException
objectName - object nameattributeName - attribute nameJBIRemoteException - on errorpublic String exportApplicationConfiguration(String applicationName, String targetName, String configDir) throws JBIRemoteException
applicationName - the name of the applicationtargetName - the target whose configuration has to be exportedconfigDir - the dir to store the configurationsManagementRemoteException - if the application configuration could not be exported
Note: param configDir is used between ant/cli and common client client.
The return value is used between common client server and common client
client.JBIRemoteExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.