|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The UMOModel
encapsulates and manages the runtime behaviour of a
Mule Server instance. It is responsible for maintaining the UMOs instances and
their configuration.
Method Summary | |
UMOComponent |
getComponent(String name)
Returns the UMOComponent object for the given component name |
Iterator |
getComponentNames()
Gets an iterator of all component names registered in the model |
UMOSession |
getComponentSession(String muleName)
Returns the Component for the given Mule name. |
UMODescriptor |
getDescriptor(String name)
Returns a descriptor for the given component name |
UMOEntryPointResolver |
getEntryPointResolver()
The entry point resolver is used to determine the method to be called on a component when an event is received for it. |
ExceptionListener |
getExceptionListener()
The exception strategy to use by components managed by the model. |
UMOLifecycleAdapterFactory |
getLifecycleAdapterFactory()
The lifecycle adapter is used by the model to translate Mule lifecycle event to events that UMO components registered with the model understand. |
String |
getName()
The model's name. |
String |
getType()
Returns the model type name. |
boolean |
isComponentRegistered(String name)
Determines if a UMO component descriptor by the given name is regestered with the model |
void |
pauseComponent(String name)
Pauses event processing for a single Mule Component. |
UMOComponent |
registerComponent(UMODescriptor descriptor)
Registers a UMODescriptor with the MuleManager . |
void |
resumeComponent(String name)
Resumes a single Mule Component that has been paused. |
void |
setComponents(List descriptors)
A convenience method to set a list of components on the model. |
void |
setEntryPointResolver(UMOEntryPointResolver entryPointResolver)
This will be used to build entry points on the components registered with the model. |
void |
setExceptionListener(ExceptionListener listener)
The exception strategy to use by components managed by the model. |
void |
setLifecycleAdapterFactory(UMOLifecycleAdapterFactory lifecycleAdapterFactory)
Sets the lifecycleAdapterFactory on the model. |
void |
setName(String name)
Sets the model's name. |
void |
startComponent(String name)
Starts a single Mule Component. |
void |
stopComponent(String name)
Stops a single Mule Component. |
void |
unregisterComponent(UMODescriptor descriptor)
Unregisters a component From the model |
Methods inherited from interface org.mule.umo.lifecycle.Startable |
start |
Methods inherited from interface org.mule.umo.lifecycle.Stoppable |
stop |
Methods inherited from interface org.mule.umo.lifecycle.Disposable |
dispose |
Methods inherited from interface org.mule.umo.lifecycle.Initialisable |
initialise |
Method Detail |
public void setName(String name)
name
- the model's namepublic String getName()
public String getType()
public UMOEntryPointResolver getEntryPointResolver()
public void setEntryPointResolver(UMOEntryPointResolver entryPointResolver)
entryPointResolver
- The entryPointResolver to set. This will be used to
build entry points on the components registered with the model.public UMOComponent registerComponent(UMODescriptor descriptor) throws UMOException
UMODescriptor
with the MuleManager
.
The manager will take care of creating the Mule UMO and, it's component and
proxies.
descriptor
- the UMODescriptor
to register
UMOException
public void unregisterComponent(UMODescriptor descriptor) throws UMOException
descriptor
- the descriptor of the componnt to remove
UMOException
- if the component is not registered or it failed to be
disposing or the descriptor is nullpublic boolean isComponentRegistered(String name)
name
- the name of the UMO
UMODescriptor
public UMOLifecycleAdapterFactory getLifecycleAdapterFactory()
UMOLifecycleAdapterFactory
is used by the model to instanciate
LifecycleAdapters.
UMOLifecycleAdapterFactory
,
UMOLifecycleAdapter
public void setLifecycleAdapterFactory(UMOLifecycleAdapterFactory lifecycleAdapterFactory)
lifecycleAdapterFactory
- The lifecycleAdapterFactory to set on this
model.UMOLifecycleAdapterFactory
,
UMOLifecycleAdapter
public UMOSession getComponentSession(String muleName)
muleName
- the Name of the Mule Component to obtain a session for
public void setComponents(List descriptors) throws UMOException
descriptors
-
UMOException
public ExceptionListener getExceptionListener()
ExceptionListener
public void setExceptionListener(ExceptionListener listener)
listener
- the default exception strategy for this model.ExceptionListener
public UMODescriptor getDescriptor(String name)
name
- the name of the component
UMODescriptor
public UMOComponent getComponent(String name)
name
- the name of the component
UMOComponent
public void stopComponent(String name) throws UMOException
name
- the name of the Mule UMO to stop
UMOException
- if the MuleUMO is not registered or the component failed
to stoppublic void startComponent(String name) throws UMOException
name
- the name of the Mule UMO to start
UMOException
- if the MuleUMO is not registered or the component failed
to startpublic void pauseComponent(String name) throws UMOException
name
- the name of the Mule UMO to stop
UMOException
- if the MuleUMO is not registered or the component failed
to pause.MuleConfiguration
public void resumeComponent(String name) throws UMOException
name
- the name of the Mule UMO to resume
UMOException
- if the MuleUMO is not registered or the component failed
to resumepublic Iterator getComponentNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |