org.apache.servicemix.common
Class ServiceUnit

java.lang.Object
  extended by org.apache.servicemix.common.ServiceUnit
Direct Known Subclasses:
XBeanServiceUnit

public class ServiceUnit
extends Object


Field Summary
protected  ServiceMixComponent component
           
protected  Map<String,Endpoint> endpoints
           
protected  String name
           
protected  String rootPath
           
protected  String status
           
 
Constructor Summary
ServiceUnit()
           
ServiceUnit(ServiceMixComponent component)
           
 
Method Summary
 void addEndpoint(Endpoint endpoint)
           
 ServiceMixComponent getComponent()
           
 ClassLoader getConfigurationClassLoader()
           
 String getCurrentState()
           
 Endpoint getEndpoint(String key)
           
 Collection<Endpoint> getEndpoints()
           
 String getName()
           
 String getRootPath()
           
 void removeEndpoint(Endpoint endpoint)
           
 void setComponent(ServiceMixComponent component)
           
 void setName(String name)
           
 void setRootPath(String rootPath)
           
 void shutDown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected ServiceMixComponent component

name

protected String name

rootPath

protected String rootPath

status

protected String status

endpoints

protected Map<String,Endpoint> endpoints
Constructor Detail

ServiceUnit

public ServiceUnit()

ServiceUnit

public ServiceUnit(ServiceMixComponent component)
Method Detail

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

shutDown

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

getCurrentState

public String getCurrentState()

getName

public String getName()

setName

public void setName(String name)

getRootPath

public String getRootPath()

setRootPath

public void setRootPath(String rootPath)

getComponent

public ServiceMixComponent getComponent()
Returns:
Returns the component.

setComponent

public void setComponent(ServiceMixComponent component)
Parameters:
component - The component to set.

getEndpoints

public Collection<Endpoint> getEndpoints()

addEndpoint

public void addEndpoint(Endpoint endpoint)
                 throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException

removeEndpoint

public void removeEndpoint(Endpoint endpoint)
                    throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException

getEndpoint

public Endpoint getEndpoint(String key)

getConfigurationClassLoader

public ClassLoader getConfigurationClassLoader()


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.