org.apache.servicemix.jbi.deployer.impl
Class AdminCommandsImpl

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.impl.AdminCommandsImpl
All Implemented Interfaces:
AdminCommandsService, Nameable

public class AdminCommandsImpl
extends java.lang.Object
implements AdminCommandsService, Nameable


Constructor Summary
AdminCommandsImpl()
           
 
Method Summary
 java.lang.String deployServiceAssembly(java.lang.String file, boolean deferException)
          Deploys a Service Assembly.
 void destroy()
           
 Deployer getDeployer()
           
 DeploymentService getDeploymentService()
           
 InstallationService getInstallationService()
           
 java.lang.String getMainType()
           
 java.lang.String getName()
           
 java.lang.String getParent()
           
 java.lang.Class getPrimaryInterface()
           
 java.lang.String getSubType()
           
 java.lang.String getVersion()
           
 void init()
           
 java.lang.String installComponent(java.lang.String file, java.util.Properties props, boolean deferException)
          Install a JBI component (a Service Engine or Binding Component)
 java.lang.String installSharedLibrary(java.lang.String file, boolean deferException)
          Installs a Shared Library.
 java.lang.String listComponents(boolean excludeSEs, boolean excludeBCs, boolean excludePojos, java.lang.String requiredState, java.lang.String sharedLibraryName, java.lang.String serviceAssemblyName)
          Prints information about all components (Service Engine or Binding Component) installedServiceReference[] refs = getAdminService().getComponentServiceReferences(filter); if (excludeBCs && excludeSEs) { refs = new ServiceReference[0]; } List components = new ArrayList();
 java.lang.String listServiceAssemblies(java.lang.String state, java.lang.String componentName, java.lang.String serviceAssemblyName)
          Prints information about service assemblies deployed.
 java.lang.String listSharedLibraries(java.lang.String componentName, java.lang.String sharedLibraryName)
          Prints information about shared libraries installed.
 void setDeployer(Deployer deployer)
           
 void setDeploymentService(DeploymentService deploymentService)
           
 void setInstallationService(InstallationService installationService)
           
 java.lang.String shutdownComponent(java.lang.String name)
          Shuts down a particular Component.
 java.lang.String shutdownServiceAssembly(java.lang.String name)
          Shuts down a particular service assembly.
 java.lang.String startComponent(java.lang.String name)
          Starts a particular Component (Service Engine or Binding Component).
 java.lang.String startServiceAssembly(java.lang.String name)
          Starts a service assembly.
 java.lang.String stopComponent(java.lang.String name)
          Stops a particular Component (Service Engine or Binding Component).
 java.lang.String stopServiceAssembly(java.lang.String name)
          Stops a particular service assembly.
 java.lang.String undeployServiceAssembly(java.lang.String name)
          Undeploys a previously deployed service assembly.
 java.lang.String uninstallComponent(java.lang.String name)
          Uninstalls a previously install JBI Component (a Service Engine or Binding Component)
 java.lang.String uninstallSharedLibrary(java.lang.String name)
          Uninstalls a previously installed Shared Library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminCommandsImpl

public AdminCommandsImpl()
Method Detail

installComponent

public java.lang.String installComponent(java.lang.String file,
                                         java.util.Properties props,
                                         boolean deferException)
                                  throws java.lang.Exception
Install a JBI component (a Service Engine or Binding Component)

Specified by:
installComponent in interface AdminCommandsService
Parameters:
file - jbi component archive to install
props - installation properties
Returns:
Throws:
java.lang.Exception

uninstallComponent

public java.lang.String uninstallComponent(java.lang.String name)
                                    throws java.lang.Exception
Uninstalls a previously install JBI Component (a Service Engine or Binding Component)

Specified by:
uninstallComponent in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

installSharedLibrary

public java.lang.String installSharedLibrary(java.lang.String file,
                                             boolean deferException)
                                      throws java.lang.Exception
Installs a Shared Library.

Specified by:
installSharedLibrary in interface AdminCommandsService
Parameters:
file -
Returns:
Throws:
java.lang.Exception

uninstallSharedLibrary

public java.lang.String uninstallSharedLibrary(java.lang.String name)
                                        throws java.lang.Exception
Uninstalls a previously installed Shared Library.

Specified by:
uninstallSharedLibrary in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

startComponent

public java.lang.String startComponent(java.lang.String name)
                                throws java.lang.Exception
Starts a particular Component (Service Engine or Binding Component).

Specified by:
startComponent in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

stopComponent

public java.lang.String stopComponent(java.lang.String name)
                               throws java.lang.Exception
Stops a particular Component (Service Engine or Binding Component).

Specified by:
stopComponent in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

shutdownComponent

public java.lang.String shutdownComponent(java.lang.String name)
                                   throws java.lang.Exception
Shuts down a particular Component.

Specified by:
shutdownComponent in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

deployServiceAssembly

public java.lang.String deployServiceAssembly(java.lang.String file,
                                              boolean deferException)
                                       throws java.lang.Exception
Deploys a Service Assembly.

Specified by:
deployServiceAssembly in interface AdminCommandsService
Parameters:
file -
Returns:
Throws:
java.lang.Exception

undeployServiceAssembly

public java.lang.String undeployServiceAssembly(java.lang.String name)
                                         throws java.lang.Exception
Undeploys a previously deployed service assembly.

Specified by:
undeployServiceAssembly in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

startServiceAssembly

public java.lang.String startServiceAssembly(java.lang.String name)
                                      throws java.lang.Exception
Starts a service assembly.

Specified by:
startServiceAssembly in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

stopServiceAssembly

public java.lang.String stopServiceAssembly(java.lang.String name)
                                     throws java.lang.Exception
Stops a particular service assembly.

Specified by:
stopServiceAssembly in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

shutdownServiceAssembly

public java.lang.String shutdownServiceAssembly(java.lang.String name)
                                         throws java.lang.Exception
Shuts down a particular service assembly.

Specified by:
shutdownServiceAssembly in interface AdminCommandsService
Parameters:
name -
Returns:
Throws:
java.lang.Exception

listComponents

public java.lang.String listComponents(boolean excludeSEs,
                                       boolean excludeBCs,
                                       boolean excludePojos,
                                       java.lang.String requiredState,
                                       java.lang.String sharedLibraryName,
                                       java.lang.String serviceAssemblyName)
                                throws java.lang.Exception
Prints information about all components (Service Engine or Binding Component) installedServiceReference[] refs = getAdminService().getComponentServiceReferences(filter); if (excludeBCs && excludeSEs) { refs = new ServiceReference[0]; } List components = new ArrayList();

Specified by:
listComponents in interface AdminCommandsService
Parameters:
excludeSEs -
excludeBCs -
requiredState -
sharedLibraryName -
serviceAssemblyName -
Returns:
list of components in an XML blob
Throws:
java.lang.Exception

listSharedLibraries

public java.lang.String listSharedLibraries(java.lang.String componentName,
                                            java.lang.String sharedLibraryName)
                                     throws java.lang.Exception
Prints information about shared libraries installed.

Specified by:
listSharedLibraries in interface AdminCommandsService
Parameters:
componentName -
sharedLibraryName -
Returns:
Throws:
java.lang.Exception

listServiceAssemblies

public java.lang.String listServiceAssemblies(java.lang.String state,
                                              java.lang.String componentName,
                                              java.lang.String serviceAssemblyName)
                                       throws java.lang.Exception
Prints information about service assemblies deployed.

Specified by:
listServiceAssemblies in interface AdminCommandsService
Parameters:
state -
componentName -
serviceAssemblyName -
Returns:
Throws:
java.lang.Exception

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Throws:
java.lang.Exception

setInstallationService

public void setInstallationService(InstallationService installationService)

getInstallationService

public InstallationService getInstallationService()

setDeploymentService

public void setDeploymentService(DeploymentService deploymentService)

getDeploymentService

public DeploymentService getDeploymentService()

getDeployer

public Deployer getDeployer()

setDeployer

public void setDeployer(Deployer deployer)

getParent

public java.lang.String getParent()
Specified by:
getParent in interface Nameable

getName

public java.lang.String getName()
Specified by:
getName in interface Nameable

getMainType

public java.lang.String getMainType()
Specified by:
getMainType in interface Nameable

getSubType

public java.lang.String getSubType()
Specified by:
getSubType in interface Nameable

getPrimaryInterface

public java.lang.Class getPrimaryInterface()
Specified by:
getPrimaryInterface in interface Nameable

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface Nameable


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.