org.apache.servicemix.jbi.deployer.artifacts
Class ServiceUnitImpl

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl
All Implemented Interfaces:
ServiceUnit

public class ServiceUnitImpl
extends java.lang.Object
implements ServiceUnit


Field Summary
protected  org.apache.commons.logging.Log LOGGER
           
 
Constructor Summary
ServiceUnitImpl(ServiceUnitDesc serviceUnitDesc, java.io.File rootDir, ComponentImpl component)
           
 
Method Summary
protected  void checkComponentStarted(java.lang.String task)
           
protected  void checkComponentStartedOrStopped(java.lang.String task)
           
 void deploy()
           
 Component getComponent()
          Retrieve the Component onto which this ServiceUnit is deployed
 ComponentImpl getComponentImpl()
           
 java.lang.String getComponentName()
           
 java.lang.String getDescription()
          Retrieves the description of this service assembly
 java.lang.String getDescriptor()
          Retrieve the JBI descriptor for this service assembly
 java.lang.String getKey()
           
 java.lang.String getName()
          Retrieves the name of this service assembly
 java.io.File getRootDir()
           
 ServiceAssembly getServiceAssembly()
          Get the ServiceAssembly to which this ServiceUnit belongs
protected  ServiceAssemblyImpl getServiceAssemblyImpl()
           
 void init()
           
protected  void setServiceAssemblyImpl(ServiceAssemblyImpl serviceAssembly)
           
 void shutdown()
           
 void start()
           
 void stop()
           
 void undeploy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected final org.apache.commons.logging.Log LOGGER
Constructor Detail

ServiceUnitImpl

public ServiceUnitImpl(ServiceUnitDesc serviceUnitDesc,
                       java.io.File rootDir,
                       ComponentImpl component)
Method Detail

getKey

public java.lang.String getKey()

getName

public java.lang.String getName()
Description copied from interface: ServiceUnit
Retrieves the name of this service assembly

Specified by:
getName in interface ServiceUnit
Returns:
the name

getDescription

public java.lang.String getDescription()
Description copied from interface: ServiceUnit
Retrieves the description of this service assembly

Specified by:
getDescription in interface ServiceUnit
Returns:
the description

getDescriptor

public java.lang.String getDescriptor()
Description copied from interface: ServiceUnit
Retrieve the JBI descriptor for this service assembly

Specified by:
getDescriptor in interface ServiceUnit
Returns:
the JBI descriptor

getComponentName

public java.lang.String getComponentName()

getServiceAssembly

public ServiceAssembly getServiceAssembly()
Description copied from interface: ServiceUnit
Get the ServiceAssembly to which this ServiceUnit belongs

Specified by:
getServiceAssembly in interface ServiceUnit
Returns:

getServiceAssemblyImpl

protected ServiceAssemblyImpl getServiceAssemblyImpl()

setServiceAssemblyImpl

protected void setServiceAssemblyImpl(ServiceAssemblyImpl serviceAssembly)

getComponent

public Component getComponent()
Description copied from interface: ServiceUnit
Retrieve the Component onto which this ServiceUnit is deployed

Specified by:
getComponent in interface ServiceUnit
Returns:

getComponentImpl

public ComponentImpl getComponentImpl()

getRootDir

public java.io.File getRootDir()

deploy

public void deploy()
            throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

init

public void init()
          throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

start

public void start()
           throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

stop

public void stop()
          throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

shutdown

public void shutdown()
              throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

undeploy

public void undeploy()
              throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

checkComponentStarted

protected void checkComponentStarted(java.lang.String task)
                              throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException

checkComponentStartedOrStopped

protected void checkComponentStartedOrStopped(java.lang.String task)
                                       throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException


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