org.apache.servicemix.common
Class ServiceUnit
java.lang.Object
org.apache.servicemix.common.ServiceUnit
- Direct Known Subclasses:
- XBeanServiceUnit
public class ServiceUnit
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
component
protected ServiceMixComponent component
name
protected String name
rootPath
protected String rootPath
status
protected String status
endpoints
protected Map<String,Endpoint> endpoints
ServiceUnit
public ServiceUnit()
ServiceUnit
public ServiceUnit(ServiceMixComponent component)
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.