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

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

public class AdminCommandsImpl
extends Object
implements AdminCommandsService, org.apache.servicemix.nmr.management.Nameable


Constructor Summary
AdminCommandsImpl()
           
 
Method Summary
 String deployServiceAssembly(String file, boolean deferException)
          Deploys a Service Assembly.
 void destroy()
           
 Deployer getDeployer()
           
 DeploymentService getDeploymentService()
           
 InstallationService getInstallationService()
           
 String getMainType()
           
 String getName()
           
 String getParent()
           
 Class getPrimaryInterface()
           
 String getSubType()
           
 String getVersion()
           
 void init()
           
 String installComponent(String file, Properties props, boolean deferException)
          Install a JBI component (a Service Engine or Binding Component)
 String installSharedLibrary(String file, boolean deferException)
          Installs a Shared Library.
 String listComponents(boolean excludeSEs, boolean excludeBCs, boolean excludePojos, String requiredState, String sharedLibraryName, 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();
 String listServiceAssemblies(String state, String componentName, String serviceAssemblyName)
          Prints information about service assemblies deployed.
 String listSharedLibraries(String componentName, String sharedLibraryName)
          Prints information about shared libraries installed.
 void setDeployer(Deployer deployer)
           
 void setDeploymentService(DeploymentService deploymentService)
           
 void setInstallationService(InstallationService installationService)
           
 String shutdownComponent(String name)
          Shuts down a particular Component.
 String shutdownServiceAssembly(String name)
          Shuts down a particular service assembly.
 String startComponent(String name)
          Starts a particular Component (Service Engine or Binding Component).
 String startServiceAssembly(String name)
          Starts a service assembly.
 String stopComponent(String name)
          Stops a particular Component (Service Engine or Binding Component).
 String stopServiceAssembly(String name)
          Stops a particular service assembly.
 String undeployServiceAssembly(String name)
          Undeploys a previously deployed service assembly.
 String uninstallComponent(String name)
          Uninstalls a previously install JBI Component (a Service Engine or Binding Component)
 String uninstallSharedLibrary(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 String installComponent(String file,
                               Properties props,
                               boolean deferException)
                        throws 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:
Exception

uninstallComponent

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

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

installSharedLibrary

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

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

uninstallSharedLibrary

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

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

startComponent

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

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

stopComponent

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

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

shutdownComponent

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

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

deployServiceAssembly

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

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

undeployServiceAssembly

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

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

startServiceAssembly

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

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

stopServiceAssembly

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

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

shutdownServiceAssembly

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

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

listComponents

public String listComponents(boolean excludeSEs,
                             boolean excludeBCs,
                             boolean excludePojos,
                             String requiredState,
                             String sharedLibraryName,
                             String serviceAssemblyName)
                      throws 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:
Exception

listSharedLibraries

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

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

listServiceAssemblies

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

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

init

public void init()
          throws Exception
Throws:
Exception

destroy

public void destroy()
             throws Exception
Throws:
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 String getParent()
Specified by:
getParent in interface org.apache.servicemix.nmr.management.Nameable

getName

public String getName()
Specified by:
getName in interface org.apache.servicemix.nmr.management.Nameable

getMainType

public String getMainType()
Specified by:
getMainType in interface org.apache.servicemix.nmr.management.Nameable

getSubType

public String getSubType()
Specified by:
getSubType in interface org.apache.servicemix.nmr.management.Nameable

getPrimaryInterface

public Class getPrimaryInterface()
Specified by:
getPrimaryInterface in interface org.apache.servicemix.nmr.management.Nameable

getVersion

public String getVersion()
Specified by:
getVersion in interface org.apache.servicemix.nmr.management.Nameable


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