public class JBIAdminCommandsClientImpl extends Object implements Serializable, JBIAdminCommands
| Modifier and Type | Field and Description |
|---|---|
protected AdministrationService |
administrationService |
protected ConfigurationService |
configurationService |
protected DeploymentService |
deploymentService |
protected InstallationService |
installationService |
protected Object |
mLastUploadId
last uploaded object reference
|
protected PerformanceMeasurementService |
performanceMeasurementService |
protected RuntimeManagementService |
runtimeManagementService |
CUSTOM_CONFIGURATION_NAME_KEY, CUSTOM_LOGGER_NAME_KEY, DOMAIN_TARGET_KEY, SERVER_TARGET_KEY| Constructor and Description |
|---|
JBIAdminCommandsClientImpl()
Constructor
|
JBIAdminCommandsClientImpl(MBeanServerConnection serverConnection)
Constructor
|
JBIAdminCommandsClientImpl(MBeanServerConnection serverConnection,
boolean isRemoteConnection)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
addApplicationConfiguration(String componentName,
String targetName,
String name,
Properties config)
Add a named application configuration to a component installed on a given
target.
|
String |
addApplicationVariables(String componentName,
String targetName,
Properties appVariables)
Add application variables to a component installed on a given target.
|
String |
deleteApplicationConfiguration(String componentName,
String targetName,
String name)
Delete a named application configuration in a component installed on a
given target.
|
String |
deleteApplicationVariables(String componentName,
String targetName,
String[] appVariableNames)
Delete application variables from a component installed on a given
target.
|
String |
deployServiceAssembly(String zipFilePath,
String targetName)
deploys service assembly
|
Map<String,String> |
deployServiceAssembly(String zipFilePath,
String[] targetNames)
deploys service assembly
|
String |
deployServiceAssemblyFromDomain(String assemblyName,
String targetName)
deploys service assembly
|
Map<String,String> |
deployServiceAssemblyFromDomain(String assemblyName,
String[] targetNames)
deploys service assembly from domain target
|
static void |
displayResult(String testingOperation,
Map<String,String> resultObject)
Displays the result map
|
static void |
displayResult(String testingOperation,
String result)
Displays the result
|
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.
|
static String |
formatTargetNames(String target) |
static String |
formatTargetNames(String[] target) |
protected AdministrationService |
getAdministrationService() |
Properties |
getApplicationConfiguration(String componentName,
String targetName,
String name)
Get a specific named configuration.
|
Map<String,Properties> |
getApplicationConfigurations(String componentName,
String targetName)
Get all the application configurations set on a component.
|
Properties |
getApplicationVariables(String componentName,
String targetName)
Get all the application variables set on a component.
|
Properties |
getComponentConfiguration(String componentName,
String targetName)
Retrieve component configuration
|
Map<String,ObjectName[]> |
getComponentExtensionMBeanObjectNames(String componentName,
String extensionName,
String targetName)
Gets the extension MBean object names
|
ObjectName[] |
getComponentExtensionMBeanObjectNames(String componentName,
String extensionName,
String targetName,
String targetInstanceName)
Gets the extension MBean object names
|
String |
getComponentInstallationDescriptor(String componentName)
Retrieve the Component Installation descriptor for the server target.
|
Map<String,String> |
getComponentLoggerDisplayNames(String componentName,
String targetName,
String targetInstanceName)
Gets the component custom loggers and their display names.
|
Map<String,Level> |
getComponentLoggerLevels(String componentName,
String targetName,
String targetInstanceName)
Gets the component custom loggers and their levels
|
TabularData |
getComponentStats(String componentName,
String targetName)
This method is used to provide statistics for the given component
in the given target
|
protected ConfigurationService |
getConfigurationService() |
TabularData |
getConsumingEndpointsForComponent(String componentName,
String targetName)
This method is used to provide a list of consuming endpoints for a component.
|
Properties |
getDefaultRuntimeConfiguration()
This method returns a tabular data of a complex open data objects that
represent the runtime configuration parameter descriptor.
|
protected DeploymentService |
getDeploymentService() |
TabularData |
getEndpointStats(String endpointName,
String targetName)
This method is used to provide statistic information about the given
endpoint in the given target
|
TabularData |
getFrameworkStats(String targetName)
This method is used to provide JBIFramework statistics in the
given target.
|
protected static I18NBundle |
getI18NBundle()
gives the I18N bundle
|
protected InstallationService |
getInstallationService() |
TabularData |
getNMRStats(String targetName)
This method is used to provide statistics about the message service in the
given target.
|
protected PerformanceMeasurementService |
getPerformanceMeasurementService() |
TabularData |
getProvidingEndpointsForComponent(String componentName,
String targetName)
This method is used to provide a list of provisioning endpoints for a component.
|
Properties |
getRuntimeConfiguration(String targetName)
This method returns a tabular data of a complex open data objects that
represent the runtime configuration parameter descriptor.
|
Properties |
getRuntimeConfigurationMetaData(String propertyKeyName)
This method returns the runtime configuration metadata associated with
the specified property.
|
String |
getRuntimeLoggerDisplayName(String runtimeLoggerName,
String targetName)
Return the display name for a runtime logger
|
String |
getRuntimeLoggerDisplayName(String runtimeLoggerName,
String targetName,
String targetInstanceName)
Deprecated.
|
Level |
getRuntimeLoggerLevel(String runtimeLoggerName,
String targetName)
Lookup the level of one runtime logger
|
Level |
getRuntimeLoggerLevel(String runtimeLoggerName,
String targetName,
String targetInstanceName)
Deprecated.
|
Map<String,Level> |
getRuntimeLoggerLevels(String targetName)
Gets all the runtime loggers and their levels
|
Map<String,Level> |
getRuntimeLoggerLevels(String targetName,
String targetInstanceName)
Deprecated.
|
Map<String,String> |
getRuntimeLoggerNames(String targetName)
Gets all the runtime loggers and their display names
|
Map<String,String> |
getRuntimeLoggerNames(String targetName,
String targetInstanceName)
Deprecated.
|
protected RuntimeManagementService |
getRuntimeManagementService() |
String |
getServiceAssemblyDeploymentDescriptor(String serviceAssemblyName)
Retrieve the Service Assembly Deployment descriptor for the domain
target.
|
TabularData |
getServiceAssemblyStats(String saName,
String targetName)
This method is used to provide statistics about a Service Assembly
in the given target.
|
String |
getServiceUnitDeploymentDescriptor(String serviceAssemblyName,
String serviceUnitName)
Returns the jbi.xml Deployment Descriptor for a Service Unit.
|
String |
getSharedLibraryInstallationDescriptor(String sharedLibraryName)
Retrieve the Shared Library Installation descriptor for the server
target.
|
String |
installComponent(String zipFilePath,
Properties paramProps,
String targetName)
installs component ( service engine, binding component)
|
Map<String,String> |
installComponent(String zipFilePath,
Properties paramProps,
String[] targetNames)
installs component ( service engine, binding component)
|
String |
installComponent(String zipFilePath,
String targetName)
installs component (service engine, binding component)
|
Map<String,String> |
installComponent(String zipFilePath,
String[] targetNames)
installs component (service engine, binding component)
|
String |
installComponentFromDomain(String componentName,
Properties properties,
String targetName)
installs component ( service engine, binding component)
|
Map<String,String> |
installComponentFromDomain(String componentName,
Properties properties,
String[] targetNames)
installs component from domain ( service engine, binding component)
|
String |
installComponentFromDomain(String componentName,
String targetName)
installs component ( service engine, binding component)
|
Map<String,String> |
installComponentFromDomain(String componentName,
String[] targetNames)
installs component from domain ( service engine, binding component)
|
String |
installSharedLibrary(String zipFilePath,
String targetName)
installs shared library
|
Map<String,String> |
installSharedLibrary(String zipFilePath,
String[] targetNames)
installs shared library
|
String |
installSharedLibraryFromDomain(String libraryName,
String targetName)
installs shared library
|
Map<String,String> |
installSharedLibraryFromDomain(String libraryName,
String[] targetNames)
installs shared library from domain
|
boolean |
isAppConfigSupported(String componentName,
String targetName)
Detect the components support for application configuration.
|
boolean |
isAppVarsSupported(String componentName,
String targetName)
Detect the components support for application variables.
|
boolean |
isComponentConfigSupported(String componentName,
String targetName)
Detect the components support for component configuration.
|
boolean |
isJBIRuntimeEnabled()
Test whether the JBI Runtime is enabled.
|
boolean |
isServerRestartRequired()
checks if the server need to be restarted to apply the changes made to
some of the configuration parameters.
|
boolean |
isTargetUp(String targetName)
Checks to see if the Target (server, cluster) is up or down.
|
String[] |
listApplicationConfigurationNames(String componentName,
String targetName)
List all the application configurations in a component.
|
String |
listBindingComponents(String targetName)
return component info xml text that has only binding component infos.
|
Map<String,String> |
listBindingComponents(String[] targetNames)
return component info xml text that has only binding component infos.
|
String |
listBindingComponents(String state,
String sharedLibraryName,
String serviceAssemblyName,
String targetName)
return component info xml text that has only binding component infos
which satisfies the options passed to the method.
|
Map<String,String> |
listBindingComponents(String state,
String sharedLibraryName,
String serviceAssemblyName,
String[] targetNames)
return component info xml text that has only binding component infos
which satisfies the options passed to the method.
|
String |
listServiceAssemblies(String targetName)
returns a list of Service Assembly Infos in a xml format.
|
Map<String,String> |
listServiceAssemblies(String[] targetNames)
returns a list of Service Assembly Infos in a xml format.
|
String |
listServiceAssemblies(String componentName,
String targetName)
returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component.
|
Map<String,String> |
listServiceAssemblies(String componentName,
String[] targetNames)
returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component.
|
String |
listServiceAssemblies(String state,
String componentName,
String targetName)
returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component.
|
Map<String,String> |
listServiceAssemblies(String state,
String componentName,
String[] targetNames)
returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component.
|
String |
listServiceEngines(String targetName)
return component info xml text that has only service engine infos.
|
Map<String,String> |
listServiceEngines(String[] targetNames)
return component info xml text that has only service engine infos.
|
String |
listServiceEngines(String state,
String sharedLibraryName,
String serviceAssemblyName,
String targetName)
return component info xml text that has only service engine infos which
satisfies the options passed to the method.
|
Map<String,String> |
listServiceEngines(String state,
String sharedLibraryName,
String serviceAssemblyName,
String[] targetNames)
return component info xml text that has only service engine infos which
satisfies the options passed to the method.
|
String |
listSharedLibraries(String targetName)
return component info xml text that has only shared library infos.
|
Map<String,String> |
listSharedLibraries(String[] targetNames)
return component info xml text that has only shared library infos.
|
String |
listSharedLibraries(String componentName,
String targetName)
returns the list of Shared Library infos in the in a xml format
|
Map<String,String> |
listSharedLibraries(String componentName,
String[] targetNames)
returns the list of Shared Library infos in the in a xml format
|
String |
listSharedLibraryDependents(String sharedLibraryName,
String targetName)
returns a list of Binding Component and Service Engine infos in xml
format, that are dependent upon a specified Shared Library
|
Map<String,String> |
listSharedLibraryDependents(String sharedLibraryName,
String[] targetNames)
returns a list of Binding Component and Service Engine infos in xml
format, that are dependent upon a specified Shared Library
|
static void |
main(String[] args) |
CompositeType |
queryApplicationConfigurationType(String componentName,
String targetName)
Get the CompositeType definition for the components application configuration
|
String |
retrieveConfigurationDisplayData(String componentName,
String targetName)
Retrieves the component configuration metadata.
|
String |
retrieveConfigurationDisplaySchema(String componentName,
String targetName)
Retrieves the component specific configuration schema.
|
String |
setApplicationConfiguration(String componentName,
String targetName,
String name,
Properties config)
Update a named application configuration in a component installed on a
given target.
|
String |
setApplicationVariables(String componentName,
String targetName,
Properties appVariables)
Set application variables on a component installed on a given target.
|
Properties |
setComponentConfiguration(String componentName,
Properties configurationValues,
String targetName)
Deprecated.
|
String |
setComponentConfiguration(String targetName,
String componentName,
Properties configurationValues)
Will return jbi mgmt message with success, failure, or partial success
per instance.
|
void |
setComponentLoggerLevel(String componentName,
String loggerCustomName,
Level logLevel,
String targetName,
String targetInstanceName)
Sets the component log level for a given custom logger
|
boolean |
setRuntimeConfiguration(Properties parameters,
String targetName)
This method sets one or more configuration parameters on the runtime with
a list of name/value pairs passed as a properties object.
|
void |
setRuntimeLoggerLevel(String runtimeLoggerName,
Level logLevel,
String targetName)
Sets the log level for a given runtime logger
|
void |
setRuntimeLoggerLevel(String runtimeLoggerName,
Level logLevel,
String targetName,
String targetInstanceName)
Deprecated.
|
String |
showBindingComponent(String name,
String state,
String sharedLibraryName,
String serviceAssemblyName,
String targetName)
return component info xml text for the specified binding component if
exists.
|
Map<String,String> |
showBindingComponent(String name,
String state,
String sharedLibraryName,
String serviceAssemblyName,
String[] targetNames)
return component info xml text for the specified binding component if
exists.
|
String |
showServiceAssembly(String name,
String state,
String componentName,
String targetName)
return service assembly info xml text for the specified service assembly
if exists.
|
Map<String,String> |
showServiceAssembly(String name,
String state,
String componentName,
String[] targetNames)
return service assembly info xml text for the specified service assembly
if exists.
|
String |
showServiceEngine(String name,
String state,
String sharedLibraryName,
String serviceAssemblyName,
String targetName)
return component info xml text for the specified service engine if
exists.
|
Map<String,String> |
showServiceEngine(String name,
String state,
String sharedLibraryName,
String serviceAssemblyName,
String[] targetNames)
return component info xml text for the specified service engine if
exists.
|
String |
showSharedLibrary(String name,
String componentName,
String targetName)
return component info xml text for the specified shared library if
exists.
|
Map<String,String> |
showSharedLibrary(String name,
String componentName,
String[] targetNames)
return component info xml text for the specified shared library if
exists.
|
String |
shutdownComponent(String componentName,
boolean force,
String targetName)
shuts down component ( service engine, binding component)
|
Map<String,String> |
shutdownComponent(String componentName,
boolean force,
String[] targetNames)
shuts down component ( service engine, binding component)
|
String |
shutdownComponent(String componentName,
String targetName)
shuts down component ( service engine, binding component)
|
Map<String,String> |
shutdownComponent(String componentName,
String[] targetNames)
shuts down component ( service engine, binding component)
|
String |
shutdownServiceAssembly(String serviceAssemblyName,
boolean forceShutdown,
String targetName)
shuts down service assembly
|
Map<String,String> |
shutdownServiceAssembly(String serviceAssemblyName,
boolean forceShutdown,
String[] targetNames)
shuts down service assembly
|
String |
shutdownServiceAssembly(String serviceAssemblyName,
String targetName)
shuts down service assembly
|
Map<String,String> |
shutdownServiceAssembly(String serviceAssemblyName,
String[] targetNames)
shuts down service assembly
|
String |
startComponent(String componentName,
String targetName)
starts component ( service engine, binding component)
|
Map<String,String> |
startComponent(String componentName,
String[] targetNames)
starts component ( service engine, binding component)
|
String |
startServiceAssembly(String serviceAssemblyName,
String targetName)
starts service assembly
|
Map<String,String> |
startServiceAssembly(String serviceAssemblyName,
String[] targetNames)
starts service assembly
|
String |
stopComponent(String componentName,
String targetName)
stops component (service engine, binding component)
|
Map<String,String> |
stopComponent(String componentName,
String[] targetNames)
stops component (service engine, binding component)
|
String |
stopServiceAssembly(String serviceAssemblyName,
String targetName)
stops service assembly
|
Map<String,String> |
stopServiceAssembly(String serviceAssemblyName,
String[] targetNames)
stops service assembly
|
static void |
testCleanupSingleTargetCases(JBIAdminCommands commands,
String bindingName,
String bindingArtifactFile,
String engineName,
String engineArtifactFile,
String libraryName,
String libraryArtifactFile,
String assemblyName,
String assemblyArtifactFile,
String targetName)
Cleanup Single target test cases
|
static void |
testMultipleTargetsCases(JBIAdminCommands commands,
String bindingName,
String bindingArtifactFile,
String engineName,
String engineArtifactFile,
String libraryName,
String libraryArtifactFile,
String assemblyName,
String assemblyArtifactFile,
String[] targetName)
Testing Multiple Targets Use-Cases
|
static void |
testPrepareSingleTargetCases(JBIAdminCommands commands,
String bindingName,
String bindingArtifactFile,
String engineName,
String engineArtifactFile,
String libraryName,
String libraryArtifactFile,
String assemblyName,
String assemblyArtifactFile,
String targetName)
Prepare Single target test cases
|
static void |
testShowSingleTargetCases(JBIAdminCommands commands,
String bindingName,
String bindingArtifactFile,
String engineName,
String engineArtifactFile,
String libraryName,
String libraryArtifactFile,
String assemblyName,
String assemblyArtifactFile,
String targetName)
list/show Single target test cases
|
static void |
testSingleTargetCases(JBIAdminCommands commands,
String bindingName,
String bindingArtifactFile,
String engineName,
String engineArtifactFile,
String libraryName,
String libraryArtifactFile,
String assemblyName,
String assemblyArtifactFile,
String targetName)
Testing Single Target Use-Cases
|
String |
undeployServiceAssembly(String serviceAssemblyName,
boolean forceDelete,
boolean retainInDomain,
String targetName)
undeploys service assembly
|
Map<String,String> |
undeployServiceAssembly(String serviceAssemblyName,
boolean forceDelete,
boolean retainInDomain,
String[] targetNames)
undeploys service assembly
|
String |
undeployServiceAssembly(String serviceAssemblyName,
boolean forceDelete,
String targetName)
undeploys service assembly
|
Map<String,String> |
undeployServiceAssembly(String serviceAssemblyName,
boolean forceDelete,
String[] targetNames)
undeploys service assembly
|
String |
undeployServiceAssembly(String serviceAssemblyName,
String targetName)
undeploys service assembly
|
Map<String,String> |
undeployServiceAssembly(String serviceAssemblyName,
String[] targetNames)
undeploys service assembly
|
String |
uninstallComponent(String componentName,
boolean forceDelete,
boolean retainInDomain,
String targetName)
uninstalls component ( service engine, binding component)
|
Map<String,String> |
uninstallComponent(String componentName,
boolean forceDelete,
boolean retainInDomain,
String[] targetNames)
uninstalls component ( service engine, binding component)
|
String |
uninstallComponent(String componentName,
boolean forceDelete,
String targetName)
uninstalls component ( service engine, binding component)
|
Map<String,String> |
uninstallComponent(String componentName,
boolean forceDelete,
String[] targetNames)
Forcefully uninstalls component ( service engine, binding component)
|
String |
uninstallComponent(String componentName,
String targetName)
uninstalls component (service engine, binding component)
|
Map<String,String> |
uninstallComponent(String componentName,
String[] targetNames)
uninstalls component (service engine, binding component)
|
String |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
boolean retainInDomain,
String targetName)
uninstalls shared library
|
Map<String,String> |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
boolean retainInDomain,
String[] targetNames)
uninstalls shared library
|
String |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
String targetName)
uninstalls shared library
|
Map<String,String> |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
String[] targetNames)
Forcefully uninstalls shared library
|
String |
uninstallSharedLibrary(String sharedLibraryName,
String targetName)
uninstalls shared library
|
Map<String,String> |
uninstallSharedLibrary(String sharedLibraryName,
String[] targetNames)
uninstalls shared library
|
String |
updateComponent(String componentName,
String zipFilePath)
updates component (service engine, binding component)
|
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.
|
protected Object mLastUploadId
protected transient AdministrationService administrationService
protected transient ConfigurationService configurationService
protected transient DeploymentService deploymentService
protected transient InstallationService installationService
protected transient RuntimeManagementService runtimeManagementService
protected transient PerformanceMeasurementService performanceMeasurementService
public JBIAdminCommandsClientImpl()
public JBIAdminCommandsClientImpl(MBeanServerConnection serverConnection)
public JBIAdminCommandsClientImpl(MBeanServerConnection serverConnection, boolean isRemoteConnection)
protected AdministrationService getAdministrationService() throws JBIRemoteException
JBIRemoteExceptionprotected ConfigurationService getConfigurationService() throws JBIRemoteException
JBIRemoteExceptionprotected DeploymentService getDeploymentService() throws JBIRemoteException
JBIRemoteExceptionprotected InstallationService getInstallationService() throws JBIRemoteException
JBIRemoteExceptionprotected RuntimeManagementService getRuntimeManagementService() throws JBIRemoteException
JBIRemoteExceptionprotected PerformanceMeasurementService getPerformanceMeasurementService() throws JBIRemoteException
JBIRemoteExceptionpublic String deployServiceAssembly(String zipFilePath, String targetName) throws JBIRemoteException
deployServiceAssembly in interface JBIAdminCommandszipFilePath - file pathtargetName - JBIRemoteException - on errorJBIAdminCommands.deployServiceAssembly(java.lang.String,
java.lang.String)public Map<String,String> deployServiceAssembly(String zipFilePath, String[] targetNames) throws JBIRemoteException
deployServiceAssembly in interface JBIAdminCommandszipFilePath - file pathtargetNames - JBIRemoteException - on errorJBIAdminCommands.deployServiceAssembly(java.lang.String,
java.lang.String[])public String getComponentInstallationDescriptor(String componentName) throws JBIRemoteException
getComponentInstallationDescriptor in interface JBIAdminCommandsComponent - name as a stringJBIRemoteException - on errorJBIAdminCommands.getComponentInstallationDescriptor(java.lang.String)public String getServiceAssemblyDeploymentDescriptor(String serviceAssemblyName) throws JBIRemoteException
getServiceAssemblyDeploymentDescriptor in interface JBIAdminCommandsservice - assembly name as a stringJBIRemoteException - on errorJBIAdminCommands.getServiceAssemblyDeploymentDescriptor(java.lang.String)public String getSharedLibraryInstallationDescriptor(String sharedLibraryName) throws JBIRemoteException
getSharedLibraryInstallationDescriptor in interface JBIAdminCommandsShared - Library name as a stringJBIRemoteException - on errorJBIAdminCommands.getSharedLibraryInstallationDescriptor(java.lang.String)public String installComponent(String zipFilePath, Properties paramProps, String targetName) throws JBIRemoteException
installComponent in interface JBIAdminCommandsparamProps - Properties object contains name/value pair.zipFilePath - archive file in a zip formattargetName - JBIRemoteException - on errorJBIAdminCommands.installComponent(java.lang.String,
java.util.Properties, java.lang.String)public String installComponent(String zipFilePath, String targetName) throws JBIRemoteException
installComponent in interface JBIAdminCommandszipFilePath - archive file in a zip formattargetName - JBIRemoteException - on errorJBIAdminCommands.installComponent(java.lang.String,
java.lang.String)public Map<String,String> installComponent(String zipFilePath, Properties paramProps, String[] targetNames) throws JBIRemoteException
installComponent in interface JBIAdminCommandsparamProps - Properties object contains name/value pair.zipFilePath - archive file in a zip formattargetNames - JBIRemoteException - on errorJBIAdminCommands.installComponent(java.lang.String,
java.util.Properties, java.lang.String[])public Map<String,String> installComponent(String zipFilePath, String[] targetNames) throws JBIRemoteException
installComponent in interface JBIAdminCommandszipFilePath - archive file in a zip formattargetNames - JBIRemoteException - on errorJBIAdminCommands.installComponent(java.lang.String,
java.lang.String[])public String installSharedLibrary(String zipFilePath, String targetName) throws JBIRemoteException
installSharedLibrary in interface JBIAdminCommandszipFilePath - archive file in a zip formattargetName - JBIRemoteException - on errorJBIAdminCommands.installSharedLibrary(java.lang.String,
java.lang.String)public Map<String,String> installSharedLibrary(String zipFilePath, String[] targetNames) throws JBIRemoteException
installSharedLibrary in interface JBIAdminCommandszipFilePath - archive file in a zip formattargetNames - JBIRemoteException - on errorJBIAdminCommands.installSharedLibrary(java.lang.String,
java.lang.String[])public boolean isJBIRuntimeEnabled()
throws JBIRemoteException
isJBIRuntimeEnabled in interface JBIAdminCommandsJBIRemoteExceptionJBIAdminCommands.isJBIRuntimeEnabled()public String listBindingComponents(String targetName) throws JBIRemoteException
listBindingComponents in interface JBIAdminCommandstargetName - JBIRemoteException - on errorJBIAdminCommands.listBindingComponents(java.lang.String)public String listBindingComponents(String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws JBIRemoteException
listBindingComponents in interface JBIAdminCommandsstate - return all the binding components that are in the specified
state. valid states are JBIComponentInfo.STARTED, STOPPED,
INSTALLED or null for ANY statesharedLibraryName - return all the binding components that have a dependency on
the specified shared library. null value to ignore this
option.serviceAssemblyName - return all the binding components that have the specified
service assembly deployed on them. null value to ignore this
option.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listBindingComponents(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)public Map<String,String> listBindingComponents(String[] targetNames) throws JBIRemoteException
listBindingComponents in interface JBIAdminCommandstargetNames - JBIRemoteException - on errorJBIAdminCommands.listBindingComponents(java.lang.String[])public Map<String,String> listBindingComponents(String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
listBindingComponents in interface JBIAdminCommandsstate - return all the binding components that are in the specified
state. valid states are JBIComponentInfo.STARTED, STOPPED,
INSTALLED or null for ANY statesharedLibraryName - return all the binding components that have a dependency on
the specified shared library. null value to ignore this
option.serviceAssemblyName - return all the binding components that have the specified
service assembly deployed on them. null value to ignore this
option.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listBindingComponents(java.lang.String,
java.lang.String, java.lang.String, java.lang.String[])public String listServiceAssemblies(String targetName) throws JBIRemoteException
listServiceAssemblies in interface JBIAdminCommandstargetName - JBIRemoteException - on errorJBIAdminCommands.listServiceAssemblies(java.lang.String)public String listServiceAssemblies(String componentName, String targetName) throws JBIRemoteException
listServiceAssemblies in interface JBIAdminCommandscomponentName - to list all the service assemblies that have some deployments
on this component.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listServiceAssemblies(java.lang.String,
java.lang.String)public String listServiceAssemblies(String state, String componentName, String targetName) throws JBIRemoteException
listServiceAssemblies in interface JBIAdminCommandsstate - to return all the service assemblies that are in the specified
state. JBIServiceAssemblyInfo.STARTED, STOPPED, SHUTDOWN or
null for ANY statecomponentName - to list all the service assemblies that have some deployments
on this component.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listServiceAssemblies(java.lang.String,
java.lang.String, java.lang.String)public Map<String,String> listServiceAssemblies(String[] targetNames) throws JBIRemoteException
listServiceAssemblies in interface JBIAdminCommandstargetNames - JBIRemoteException - on errorJBIAdminCommands.listServiceAssemblies(java.lang.String[])public Map<String,String> listServiceAssemblies(String componentName, String[] targetNames) throws JBIRemoteException
listServiceAssemblies in interface JBIAdminCommandscomponentName - to list all the service assemblies that have some deployments
on this component.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listServiceAssemblies(java.lang.String,
java.lang.String[])public Map<String,String> listServiceAssemblies(String state, String componentName, String[] targetNames) throws JBIRemoteException
listServiceAssemblies in interface JBIAdminCommandsstate - to return all the service assemblies that are in the specified
state. JBIServiceAssemblyInfo.STARTED, STOPPED, SHUTDOWN or
null for ANY statecomponentName - to list all the service assemblies that have some deployments
on this component.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listServiceAssemblies(java.lang.String,
java.lang.String, java.lang.String[])public String listServiceEngines(String targetName) throws JBIRemoteException
listServiceEngines in interface JBIAdminCommandstargetName - JBIRemoteException - on errorJBIAdminCommands.listServiceEngines(java.lang.String)public String listServiceEngines(String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws JBIRemoteException
listServiceEngines in interface JBIAdminCommandsstate - return all the service engines that are in the specified
state. valid states are JBIComponentInfo.STARTED, STOPPED,
INSTALLED or null for ANY statesharedLibraryName - return all the service engines that have a dependency on the
specified shared library. null value to ignore this option.serviceAssemblyName - return all the service engines that have the specified service
assembly deployed on them. null value to ignore this option.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listServiceEngines(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)public Map<String,String> listServiceEngines(String[] targetNames) throws JBIRemoteException
listServiceEngines in interface JBIAdminCommandstargetNames - JBIRemoteException - on errorJBIAdminCommands.listServiceEngines(java.lang.String[])public Map<String,String> listServiceEngines(String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
listServiceEngines in interface JBIAdminCommandsstate - return all the service engines that are in the specified
state. valid states are JBIComponentInfo.STARTED, STOPPED,
INSTALLED or null for ANY statesharedLibraryName - return all the service engines that have a dependency on the
specified shared library. null value to ignore this option.serviceAssemblyName - return all the service engines that have the specified service
assembly deployed on them. null value to ignore this option.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listServiceEngines(java.lang.String,
java.lang.String, java.lang.String, java.lang.String[])public String listSharedLibraries(String targetName) throws JBIRemoteException
listSharedLibraries in interface JBIAdminCommandstargetName - JBIRemoteException - on errorJBIAdminCommands.listSharedLibraries(java.lang.String)public String listSharedLibraries(String componentName, String targetName) throws JBIRemoteException
listSharedLibraries in interface JBIAdminCommandscomponentName - to return only the shared libraries that are this component
dependents. null for listing all the shared libraries in the
schemaorg_apache_xmlbeans.system.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listSharedLibraries(java.lang.String,
java.lang.String)public Map<String,String> listSharedLibraries(String[] targetNames) throws JBIRemoteException
listSharedLibraries in interface JBIAdminCommandstargetNames - JBIRemoteException - on errorJBIAdminCommands.listSharedLibraries(java.lang.String[])public Map<String,String> listSharedLibraries(String componentName, String[] targetNames) throws JBIRemoteException
listSharedLibraries in interface JBIAdminCommandscomponentName - to return only the shared libraries that are this component
dependents. null for listing all the shared libraries in the
schemaorg_apache_xmlbeans.system.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.listSharedLibraries(java.lang.String,
java.lang.String[])public String listSharedLibraryDependents(String sharedLibraryName, String targetName) throws JBIRemoteException
listSharedLibraryDependents in interface JBIAdminCommandssharedLibraryName - the shared library nametargetName - JBIRemoteException - on errorJBIAdminCommands.listSharedLibraryDependents(java.lang.String,
java.lang.String)public Map<String,String> listSharedLibraryDependents(String sharedLibraryName, String[] targetNames) throws JBIRemoteException
listSharedLibraryDependents in interface JBIAdminCommandssharedLibraryName - the shared library nametargetNames - JBIRemoteException - on errorJBIAdminCommands.listSharedLibraryDependents(java.lang.String,
java.lang.String[])public String showBindingComponent(String name, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws JBIRemoteException
showBindingComponent in interface JBIAdminCommandsname - name of the binding component to lookupstate - return the binding component that is in the specified state.
valid states are JBIComponentInfo.STARTED, STOPPED, INSTALLED
or null for ANY statesharedLibraryName - return the binding component that has a dependency on the
specified shared library. null value to ignore this option.serviceAssemblyName - return the binding component that has the specified service
assembly deployed on it. null value to ignore this option.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showBindingComponent(java.lang.String,
java.lang.String, java.lang.String, java.lang.String,
java.lang.String)public Map<String,String> showBindingComponent(String name, String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
showBindingComponent in interface JBIAdminCommandsname - name of the binding component to lookupstate - return the binding component that is in the specified state.
valid states are JBIComponentInfo.STARTED, STOPPED, INSTALLED
or null for ANY statesharedLibraryName - return the binding component that has a dependency on the
specified shared library. null value to ignore this option.serviceAssemblyName - return the binding component that has the specified service
assembly deployed on it. null value to ignore this option.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showBindingComponent(java.lang.String,
java.lang.String, java.lang.String, java.lang.String,
java.lang.String[])public String showServiceAssembly(String name, String state, String componentName, String targetName) throws JBIRemoteException
showServiceAssembly in interface JBIAdminCommandsname - name of the service assembly to lookupstate - return the service assembly that is in the specified state.
JBIServiceAssemblyInfo.STARTED, STOPPED, SHUTDOWN or null for
ANY statecomponentName - return the service assembly that has service units on this
component.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showServiceAssembly(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)public Map<String,String> showServiceAssembly(String name, String state, String componentName, String[] targetNames) throws JBIRemoteException
showServiceAssembly in interface JBIAdminCommandsname - name of the service assembly to lookupstate - return the service assembly that is in the specified state.
JBIServiceAssemblyInfo.STARTED, STOPPED, SHUTDOWN or null for
ANY statecomponentName - return the service assembly that has service units on this
component.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showServiceAssembly(java.lang.String,
java.lang.String, java.lang.String, java.lang.String[])public String showServiceEngine(String name, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws JBIRemoteException
showServiceEngine in interface JBIAdminCommandsname - name of the service engine to lookupstate - to return all the service engines that are in the specified
state. JBIComponentInfo.STARTED, STOPPED, INSTALLED or null
for ANY statesharedLibraryName - to return all the service engines that have a dependency on
the specified shared library. Could be null for not filtering
the service engines for this dependency.serviceAssemblyName - to return all the service engines that have the specified
service assembly deployed on them. Could be null for not
filtering the service engines for this dependency.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showServiceEngine(java.lang.String,
java.lang.String, java.lang.String, java.lang.String,
java.lang.String)public Map<String,String> showServiceEngine(String name, String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
showServiceEngine in interface JBIAdminCommandsname - name of the service engine to lookupstate - to return all the service engines that are in the specified
state. JBIComponentInfo.STARTED, STOPPED, INSTALLED or null
for ANY statesharedLibraryName - to return all the service engines that have a dependency on
the specified shared library. Could be null for not filtering
the service engines for this dependency.serviceAssemblyName - to return all the service engines that have the specified
service assembly deployed on them. Could be null for not
filtering the service engines for this dependency.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showServiceEngine(java.lang.String,
java.lang.String, java.lang.String, java.lang.String,
java.lang.String[])public String showSharedLibrary(String name, String componentName, String targetName) throws JBIRemoteException
showSharedLibrary in interface JBIAdminCommandsname - name of the shared library to lookupcomponentName - return the shared library that is this component dependents.
null to ignore this option.targetName - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showSharedLibrary(java.lang.String,
java.lang.String, java.lang.String)public Map<String,String> showSharedLibrary(String name, String componentName, String[] targetNames) throws JBIRemoteException
showSharedLibrary in interface JBIAdminCommandsname - name of the shared library to lookupcomponentName - return the shared library that is this component dependents.
null to ignore this option.targetNames - JBIRemoteException - if error or exception occurs.JBIAdminCommands.showSharedLibrary(java.lang.String,
java.lang.String, java.lang.String[])public String shutdownComponent(String componentName, String targetName) throws JBIRemoteException
shutdownComponent in interface JBIAdminCommandscomponentName - name of the componenttargetName - JBIRemoteException - on errorJBIAdminCommands.shutdownComponent(java.lang.String,
java.lang.String)public String shutdownComponent(String componentName, boolean force, String targetName) throws JBIRemoteException
shutdownComponent in interface JBIAdminCommandscomponentName - name of the componentforce - true if component should be shutdown in any case, else false.targetName - JBIRemoteException - on errorJBIAdminCommands.shutdownComponent(java.lang.String,
boolean, java.lang.String)public Map<String,String> shutdownComponent(String componentName, String[] targetNames) throws JBIRemoteException
shutdownComponent in interface JBIAdminCommandscomponentName - name of the componenttargetNames - JBIRemoteException - on errorJBIAdminCommands.shutdownComponent(java.lang.String,
java.lang.String[])public Map<String,String> shutdownComponent(String componentName, boolean force, String[] targetNames) throws JBIRemoteException
shutdownComponent in interface JBIAdminCommandscomponentName - name of the componentforce - true if component should be shutdown in any case, else false.targetNames - JBIRemoteException - on errorJBIAdminCommands.shutdownComponent(java.lang.String,
boolean, java.lang.String[])public String shutdownServiceAssembly(String serviceAssemblyName, String targetName) throws JBIRemoteException
shutdownServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetName - JBIRemoteException - on errorJBIAdminCommands.shutdownServiceAssembly(java.lang.String,
java.lang.String)public String shutdownServiceAssembly(String serviceAssemblyName, boolean forceShutdown, String targetName) throws JBIRemoteException
shutdownServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblyforceShutdown - targetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> shutdownServiceAssembly(String serviceAssemblyName, boolean forceShutdown, String[] targetNames) throws JBIRemoteException
shutdownServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblyforceShutdown - targetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> shutdownServiceAssembly(String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
shutdownServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetNames - JBIRemoteException - on errorJBIAdminCommands.shutdownServiceAssembly(java.lang.String,
java.lang.String[])public String startComponent(String componentName, String targetName) throws JBIRemoteException
startComponent in interface JBIAdminCommandscomponentName - name of the componenttargetName - name of the target for this operationJBIRemoteException - on errorJBIAdminCommands.startComponent(java.lang.String,
java.lang.String)public Map<String,String> startComponent(String componentName, String[] targetNames) throws JBIRemoteException
JBIAdminCommandsstartComponent in interface JBIAdminCommandscomponentName - name of the componentJBIRemoteException - on errorJBIAdminCommands.startComponent(java.lang.String,
java.lang.String[])public String startServiceAssembly(String serviceAssemblyName, String targetName) throws JBIRemoteException
startServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetName - JBIRemoteException - on errorJBIAdminCommands.startServiceAssembly(java.lang.String,
java.lang.String)public Map<String,String> startServiceAssembly(String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
startServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetNames - JBIRemoteException - on errorJBIAdminCommands.startServiceAssembly(java.lang.String,
java.lang.String[])public String stopComponent(String componentName, String targetName) throws JBIRemoteException
stopComponent in interface JBIAdminCommandscomponentName - name of the componenttargetName - JBIRemoteException - on errorJBIAdminCommands.stopComponent(java.lang.String,
java.lang.String)public Map<String,String> stopComponent(String componentName, String[] targetNames) throws JBIRemoteException
stopComponent in interface JBIAdminCommandscomponentName - name of the componenttargetNames - JBIRemoteException - on errorJBIAdminCommands.stopComponent(java.lang.String,
java.lang.String),
JBIAdminCommands.stopComponent(java.lang.String,
java.lang.String[])public String stopServiceAssembly(String serviceAssemblyName, String targetName) throws JBIRemoteException
stopServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetName - JBIRemoteException - on errorJBIAdminCommands.stopServiceAssembly(java.lang.String,
java.lang.String)public Map<String,String> stopServiceAssembly(String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
stopServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetNames - JBIRemoteException - on errorJBIAdminCommands.stopServiceAssembly(java.lang.String,
java.lang.String[])public String undeployServiceAssembly(String serviceAssemblyName, String targetName) throws JBIRemoteException
undeployServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetName - JBIRemoteException - on errorJBIAdminCommands.undeployServiceAssembly(java.lang.String,
java.lang.String)public Map<String,String> undeployServiceAssembly(String serviceAssemblyName, String[] targetNames) throws JBIRemoteException
undeployServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblytargetNames - JBIRemoteException - on errorJBIAdminCommands.undeployServiceAssembly(java.lang.String,
java.lang.String[])public String uninstallComponent(String componentName, String targetName) throws JBIRemoteException
uninstallComponent in interface JBIAdminCommandscomponentName - name of the componenttargetName - JBIRemoteException - on errorJBIAdminCommands.uninstallComponent(java.lang.String,
java.lang.String)public Map<String,String> uninstallComponent(String componentName, String[] targetNames) throws JBIRemoteException
uninstallComponent in interface JBIAdminCommandscomponentName - name of the componenttargetNames - JBIRemoteException - on errorJBIAdminCommands.uninstallComponent(java.lang.String,
java.lang.String[])public String uninstallSharedLibrary(String sharedLibraryName, String targetName) throws JBIRemoteException
uninstallSharedLibrary in interface JBIAdminCommandssharedLibraryName - name of the shared librarytargetName - JBIRemoteException - on errorJBIAdminCommands.uninstallSharedLibrary(java.lang.String,
java.lang.String)public Map<String,String> uninstallSharedLibrary(String sharedLibraryName, String[] targetNames) throws JBIRemoteException
uninstallSharedLibrary in interface JBIAdminCommandssharedLibraryName - name of the shared librarytargetNames - JBIRemoteException - on errorJBIAdminCommands.uninstallSharedLibrary(java.lang.String,
java.lang.String[])public String getServiceUnitDeploymentDescriptor(String serviceAssemblyName, String serviceUnitName) throws JBIRemoteException
getServiceUnitDeploymentDescriptor in interface JBIAdminCommandsthe - name of the Service Assemblythe - name of the Service UnitJBIRemoteException - if error or exception occurs.public String installComponentFromDomain(String componentName, String targetName) throws JBIRemoteException
installComponentFromDomain in interface JBIAdminCommandscomponentName - name of the component.targetName - name of the target for this operationJBIRemoteException - on errorpublic String installComponentFromDomain(String componentName, Properties properties, String targetName) throws JBIRemoteException
installComponentFromDomain in interface JBIAdminCommandscomponentName - name of the component.component - configuration propertiestargetName - name of the target for this operationJBIRemoteException - on errorpublic String uninstallComponent(String componentName, boolean forceDelete, String targetName) throws JBIRemoteException
uninstallComponent in interface JBIAdminCommandscomponentName - name of the componentforceDelete - true to delete, false to nottargetName - name of the target for this operationJBIRemoteException - on errorpublic String installSharedLibraryFromDomain(String libraryName, String targetName) throws JBIRemoteException
installSharedLibraryFromDomain in interface JBIAdminCommandslibraryName - Shared Library NametargetName - name of the target for this operationJBIRemoteException - on errorpublic String uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, String targetName) throws JBIRemoteException
uninstallSharedLibrary in interface JBIAdminCommandssharedLibraryName - name of the shared libraryforceDelete - true to delete, false to nottargetName - name of the target for this operationJBIRemoteException - on errorpublic String deployServiceAssemblyFromDomain(String assemblyName, String targetName) throws JBIRemoteException
deployServiceAssemblyFromDomain in interface JBIAdminCommandsassemblyName - service assembly nametargetName - name of the target for this operationJBIRemoteException - on errorpublic String undeployServiceAssembly(String serviceAssemblyName, boolean forceDelete, String targetName) throws JBIRemoteException
undeployServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblyforceDelete - forces deletion of the assembly if true, false if nottargetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> installComponentFromDomain(String componentName, String[] targetNames) throws JBIRemoteException
installComponentFromDomain in interface JBIAdminCommandscomponentName - name of the componenttargetNames - array of targets for this operationJBIRemoteException - on errorpublic Map<String,String> installComponentFromDomain(String componentName, Properties properties, String[] targetNames) throws JBIRemoteException
installComponentFromDomain in interface JBIAdminCommandscomponentName - name of the componentcomponent - configuration propertiestargetNames - array of targets for this operationJBIRemoteException - on errorpublic Map<String,String> uninstallComponent(String componentName, boolean forceDelete, String[] targetNames) throws JBIRemoteException
uninstallComponent in interface JBIAdminCommandscomponentName - name of the componentforceDelete - true to delete, false to nottargetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> installSharedLibraryFromDomain(String libraryName, String[] targetNames) throws JBIRemoteException
installSharedLibraryFromDomain in interface JBIAdminCommandslibraryName - name of the librarytargetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, String[] targetNames) throws JBIRemoteException
uninstallSharedLibrary in interface JBIAdminCommandssharedLibraryName - name of the shared libraryforceDelete - true to delete, false to nottargetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> deployServiceAssemblyFromDomain(String assemblyName, String[] targetNames) throws JBIRemoteException
deployServiceAssemblyFromDomain in interface JBIAdminCommandsassemblyName - name of the service assemblytargetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> undeployServiceAssembly(String serviceAssemblyName, boolean forceDelete, String[] targetNames) throws JBIRemoteException
undeployServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblyforceDelete - true to delete, false to nottargetName - name of the target for this operationJBIRemoteException - on errorpublic String uninstallComponent(String componentName, boolean forceDelete, boolean retainInDomain, String targetName) throws JBIRemoteException
uninstallComponent in interface JBIAdminCommandscomponentName - name of the componentforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetName - name of the target for this operationJBIRemoteException - on errorpublic String uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, boolean retainInDomain, String targetName) throws JBIRemoteException
uninstallSharedLibrary in interface JBIAdminCommandssharedLibraryName - name of the shared libraryforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetName - name of the target for this operationJBIRemoteException - on errorpublic String undeployServiceAssembly(String serviceAssemblyName, boolean forceDelete, boolean retainInDomain, String targetName) throws JBIRemoteException
undeployServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblyforceDelete - forces deletion of the assembly if true, false if notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetName - name of the target for this operationJBIRemoteException - on errorpublic Map<String,String> uninstallComponent(String componentName, boolean forceDelete, boolean retainInDomain, String[] targetNames) throws JBIRemoteException
uninstallComponent in interface JBIAdminCommandscomponentName - name of the componentforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetNames - array of targets for this operationJBIRemoteException - on errorpublic Map<String,String> uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, boolean retainInDomain, String[] targetNames) throws JBIRemoteException
uninstallSharedLibrary in interface JBIAdminCommandssharedLibraryName - name of the shared libraryforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetNames - array of targets for this operationJBIRemoteException - on errorpublic Map<String,String> undeployServiceAssembly(String serviceAssemblyName, boolean forceDelete, boolean retainInDomain, String[] targetNames) throws JBIRemoteException
undeployServiceAssembly in interface JBIAdminCommandsserviceAssemblyName - name of the service assemblyforceDelete - forces deletion of the assembly if true, false if notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetNames - array of targets for this operationJBIRemoteException - on errorpublic Map<String,Level> getComponentLoggerLevels(String componentName, String targetName, String targetInstanceName) throws JBIRemoteException
getComponentLoggerLevels in interface JBIAdminCommandscomponentName - name of the componenttargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic Map<String,String> getComponentLoggerDisplayNames(String componentName, String targetName, String targetInstanceName) throws JBIRemoteException
getComponentLoggerDisplayNames in interface JBIAdminCommandscomponentName - name of the componenttargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic void setComponentLoggerLevel(String componentName, String loggerCustomName, Level logLevel, String targetName, String targetInstanceName) throws JBIRemoteException
setComponentLoggerLevel in interface JBIAdminCommandscomponentName - name of the componentloggerCustomName - the custom logger namelogLevel - the level to set the loggertargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic Map<String,Level> getRuntimeLoggerLevels(String targetName, String targetInstanceName) throws JBIRemoteException
getRuntimeLoggerLevels in interface JBIAdminCommandstargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic Level getRuntimeLoggerLevel(String runtimeLoggerName, String targetName, String targetInstanceName) throws JBIRemoteException
getRuntimeLoggerLevel in interface JBIAdminCommandsruntimeLoggerName - name of the runtime logger (e.g. com.sun.jbi.frameworktargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic void setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName, String targetInstanceName) throws JBIRemoteException
setRuntimeLoggerLevel in interface JBIAdminCommandsruntimeLoggerName - name of the runtime loggerlogLevel - the level to set the loggertargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic Map<String,String> getRuntimeLoggerNames(String targetName, String targetInstanceName) throws JBIRemoteException
getRuntimeLoggerNames in interface JBIAdminCommandstargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic String getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName, String targetInstanceName) throws JBIRemoteException
getRuntimeLoggerDisplayName in interface JBIAdminCommandsruntimeLoggerName - name of the logger (e.g. com.sun.jbi.framework)targetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic Map<String,Level> getRuntimeLoggerLevels(String targetName) throws JBIRemoteException
getRuntimeLoggerLevels in interface JBIAdminCommandstargetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorpublic Level getRuntimeLoggerLevel(String runtimeLoggerName, String targetName) throws JBIRemoteException
getRuntimeLoggerLevel in interface JBIAdminCommandsruntimeLoggerName - name of the runtime logger (e.g. com.sun.jbi.frameworktargetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorpublic void setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName) throws JBIRemoteException
setRuntimeLoggerLevel in interface JBIAdminCommandsruntimeLoggerName - name of the runtime loggerlogLevel - the level to set the loggertargetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorpublic Map<String,String> getRuntimeLoggerNames(String targetName) throws JBIRemoteException
getRuntimeLoggerNames in interface JBIAdminCommandstargetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorpublic String getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName) throws JBIRemoteException
getRuntimeLoggerDisplayName in interface JBIAdminCommandsruntimeLoggerName - name of the logger (e.g. com.sun.jbi.framework)targetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorpublic Map<String,ObjectName[]> getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws JBIRemoteException
getComponentExtensionMBeanObjectNames in interface JBIAdminCommandscomponentName - name of the componentextensionName - the name of the extension (e.g., Configuration, Logger, etc.)targetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorpublic ObjectName[] getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName) throws JBIRemoteException
getComponentExtensionMBeanObjectNames in interface JBIAdminCommandscomponentName - name of the componentextensionName - the name of the extension (e.g., Configuration, Logger, etc.)targetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorpublic Properties getComponentConfiguration(String componentName, String targetName) throws JBIRemoteException
getComponentConfiguration in interface JBIAdminCommandscomponentName - targetName - JBIRemoteExceptionpublic Properties setComponentConfiguration(String componentName, Properties configurationValues, String targetName) throws JBIRemoteException
componentName - configurationValue - targetName - JBIRemoteExceptionpublic String setComponentConfiguration(String targetName, String componentName, Properties configurationValues) throws JBIRemoteException
setComponentConfiguration in interface JBIAdminCommandstargetName - the name of the JBI targetcomponentName - the component nameconfigurationValues - the configuration propertiesJBIRemoteExceptionpublic String updateComponent(String componentName, String zipFilePath) throws JBIRemoteException
updateComponent in interface JBIAdminCommandscomponentName - Name of the component to update.zipFilePath - archive file in a zip formatJBIRemoteException - on errorpublic boolean isTargetUp(String targetName) throws JBIRemoteException
isTargetUp in interface JBIAdminCommandstargetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - if error or exception occurs.public Properties getRuntimeConfigurationMetaData(String propertyKeyName) throws JBIRemoteException
getRuntimeConfigurationMetaData in interface JBIAdminCommandspropertyKeyName - JBIRemoteExceptionpublic boolean setRuntimeConfiguration(Properties parameters, String targetName) throws JBIRemoteException
setRuntimeConfiguration in interface JBIAdminCommandsMap - targetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverJBIRemoteException - if there is a jmx error or a invalid parameter is passed in
the params properties object. In case of an error setting the
a particular parameter, the error message should list the
invalid parameters.public Properties getRuntimeConfiguration(String targetName) throws JBIRemoteException
getRuntimeConfiguration in interface JBIAdminCommandstargetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverJBIRemoteException - if there is a jmx error accessing the instancepublic Properties getDefaultRuntimeConfiguration() throws JBIRemoteException
getDefaultRuntimeConfiguration in interface JBIAdminCommandstargetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverJBIRemoteException - if there is a jmx error accessing the instancepublic boolean isServerRestartRequired()
throws JBIRemoteException
isServerRestartRequired in interface JBIAdminCommandsJBIRemoteExceptionpublic boolean isComponentConfigSupported(String componentName, String targetName) throws JBIRemoteException
isComponentConfigSupported in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.JBIRemoteException - if the component is not installed or is not
in the Started state.public boolean isAppVarsSupported(String componentName, String targetName) throws JBIRemoteException
isAppVarsSupported in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.JBIRemoteException - if the component is not installed or is not
in the Started state.public String addApplicationVariables(String componentName, String targetName, Properties appVariables) throws JBIRemoteException
addApplicationVariables in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.appVariables - -
set of application variables to add. The values of the
application variables have the application variable type and
value and the format is "[type]value"JBIRemoteException - if there is a jmx error accessing the instancepublic String setApplicationVariables(String componentName, String targetName, Properties appVariables) throws JBIRemoteException
setApplicationVariables in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.appVariables - -
set of application variables to update. The values of the
application variables have the application variable type and
value and the format is "[type]value"JBIRemoteException - if there is a jmx error accessing the instancepublic String deleteApplicationVariables(String componentName, String targetName, String[] appVariableNames) throws JBIRemoteException
deleteApplicationVariables in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.appVariableNames - -
names of application variables to delete.JBIRemoteException - if there is a jmx error accessing the instancepublic Properties getApplicationVariables(String componentName, String targetName) throws JBIRemoteException
getApplicationVariables in interface JBIAdminCommandsJBIRemoteException - if there is a jmx error accessing the instancepublic boolean isAppConfigSupported(String componentName, String targetName) throws JBIRemoteException
isAppConfigSupported in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.JBIRemoteException - if the component is not installed or is not
in the Started state.public CompositeType queryApplicationConfigurationType(String componentName, String targetName) throws JBIRemoteException
queryApplicationConfigurationType in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.JBIRemoteExceptionpublic String addApplicationConfiguration(String componentName, String targetName, String name, Properties config) throws JBIRemoteException
addApplicationConfiguration in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.name - application configuration nameconfig - application configuration represented as a set of properties.JBIRemoteException - if there is a jmx error accessing the instancepublic String setApplicationConfiguration(String componentName, String targetName, String name, Properties config) throws JBIRemoteException
setApplicationConfiguration in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.name - application configuration nameconfig - application configuration represented as a set of properties.JBIRemoteException - if there is a jmx error accessing the instancepublic String deleteApplicationConfiguration(String componentName, String targetName, String name) throws JBIRemoteException
deleteApplicationConfiguration in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.name - name of application configuration to be deletedJBIRemoteException - if there is a jmx error accessing the instancepublic String[] listApplicationConfigurationNames(String componentName, String targetName) throws JBIRemoteException
listApplicationConfigurationNames in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.JBIRemoteException - if there is a jmx error accessing the instancepublic Properties getApplicationConfiguration(String componentName, String targetName, String name) throws JBIRemoteException
getApplicationConfiguration in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.JBIRemoteException - if there is a jmx error accessing the instancepublic Map<String,Properties> getApplicationConfigurations(String componentName, String targetName) throws JBIRemoteException
getApplicationConfigurations in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.JBIRemoteException - if there is a jmx error accessing the instancepublic CompositeData verifyApplication(String applicationURL, String targetName, boolean generateTemplates, String templateDir, boolean includeDeployCommand) throws JBIRemoteException
verifyApplication in interface JBIAdminCommandsapplicationURL - 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 commandJBIRemoteException - 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 exportApplicationConfiguration(String applicationName, String targetName, String configDir) throws JBIRemoteException
exportApplicationConfiguration in interface JBIAdminCommandsapplicationName - the name of the applicationtargetName - the target whose configuration has to be exportedconfigDir - the dir to store the configurationsJBIRemoteException - 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.public String retrieveConfigurationDisplaySchema(String componentName, String targetName) throws JBIRemoteException
retrieveConfigurationDisplaySchema in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - on errors.JBIRemoteExceptionpublic String retrieveConfigurationDisplayData(String componentName, String targetName) throws JBIRemoteException
retrieveConfigurationDisplayData in interface JBIAdminCommandscomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - on errorsJBIRemoteExceptionpublic TabularData getFrameworkStats(String targetName) throws JBIRemoteException
getFrameworkStats in interface JBIAdminCommandstarget - target name.JBIStatisticsMBeanJBIRemoteExceptionpublic TabularData getComponentStats(String componentName, String targetName) throws JBIRemoteException
getComponentStats in interface JBIAdminCommandstargetName - target namecomponentName - component nameJBIStatisticsMBeanJBIRemoteExceptionpublic TabularData getEndpointStats(String endpointName, String targetName) throws JBIRemoteException
getEndpointStats in interface JBIAdminCommandstargetName - target nameendpointName - the endpoint NameJBIStatisticsMBeanJBIRemoteExceptionpublic TabularData getNMRStats(String targetName) throws JBIRemoteException
getNMRStats in interface JBIAdminCommandstarget - target name.JBIStatisticsMBeanJBIRemoteExceptionpublic TabularData getServiceAssemblyStats(String saName, String targetName) throws JBIRemoteException
getServiceAssemblyStats in interface JBIAdminCommandstarget - target name.saName - the service assembly name.JBIStatisticsMBeanJBIRemoteExceptionpublic TabularData getConsumingEndpointsForComponent(String componentName, String targetName) throws JBIRemoteException
getConsumingEndpointsForComponent in interface JBIAdminCommandscomponentName - component nametarget - target name.JBIRemoteException - if the list of endpoints could not be obtained.
If the target is a standalone instance the table will have one entry.
If the target is a cluster the table will have an entry for each instance.
Each entry in this tabular data is of the following composite type
String - "InstanceName",
String[] - "Endpoints",public TabularData getProvidingEndpointsForComponent(String componentName, String targetName) throws JBIRemoteException
getProvidingEndpointsForComponent in interface JBIAdminCommandscomponentName - component nametarget - target name.JBIRemoteException - if the list of endpoints could not be obtained.
If the target is a standalone instance the table will have one entry.
If the target is a cluster the table will have an entry for each instance.
Each entry in this tabular data is of the following composite type
String - "InstanceName",
String[] - "Endpoints",protected static I18NBundle getI18NBundle()
public static void displayResult(String testingOperation, String result)
result - public static void displayResult(String testingOperation, Map<String,String> resultObject)
resultObject - public static void testPrepareSingleTargetCases(JBIAdminCommands commands, String bindingName, String bindingArtifactFile, String engineName, String engineArtifactFile, String libraryName, String libraryArtifactFile, String assemblyName, String assemblyArtifactFile, String targetName)
commands - bindingName - bindingArtifactFile - engineName - engineArtifactFile - libraryName - libraryArtifactFile - targetName - public static void testCleanupSingleTargetCases(JBIAdminCommands commands, String bindingName, String bindingArtifactFile, String engineName, String engineArtifactFile, String libraryName, String libraryArtifactFile, String assemblyName, String assemblyArtifactFile, String targetName)
commands - bindingName - bindingArtifactFile - engineName - engineArtifactFile - libraryName - libraryArtifactFile - targetName - public static void testShowSingleTargetCases(JBIAdminCommands commands, String bindingName, String bindingArtifactFile, String engineName, String engineArtifactFile, String libraryName, String libraryArtifactFile, String assemblyName, String assemblyArtifactFile, String targetName)
commands - bindingName - bindingArtifactFile - engineName - engineArtifactFile - libraryName - libraryArtifactFile - targetName - public static void testSingleTargetCases(JBIAdminCommands commands, String bindingName, String bindingArtifactFile, String engineName, String engineArtifactFile, String libraryName, String libraryArtifactFile, String assemblyName, String assemblyArtifactFile, String targetName)
commands - bindingName - bindingArtifactFile - engineName - engineArtifactFile - libraryName - libraryArtifactFile - assemblyName - assemblyArtifactFile - targetName - public static void testMultipleTargetsCases(JBIAdminCommands commands, String bindingName, String bindingArtifactFile, String engineName, String engineArtifactFile, String libraryName, String libraryArtifactFile, String assemblyName, String assemblyArtifactFile, String[] targetName)
commands - bindingName - bindingArtifactFile - engineName - engineArtifactFile - libraryName - libraryArtifactFile - assemblyName - assemblyArtifactFile - targetName - public static void main(String[] args)
args - Copyright © 2011-2016 OpenESB Community. All Rights Reserved.