|
|||||||||||
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 | |
java.util.Iterator |
getComponentNames()
Gets an iterator of all component names registered in the model |
UMOSession |
getComponentSession(java.lang.String muleName)
Returns the Component for the given Mule name. |
UMODescriptor |
getDescriptor(java.lang.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. |
UMOExceptionStrategy |
getExceptionStrategy()
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. |
java.lang.String |
getName()
The model's name. |
boolean |
isComponentRegistered(java.lang.String name)
Determines if a UMO component descriptor by the given name is regestered with the model |
void |
pauseComponent(java.lang.String name)
Pauses event processing for a single Mule Component. |
UMOComponent |
registerComponent(UMODescriptor descriptor)
Registers a UMODescriptor with the MuleManager . |
void |
resumeComponent(java.lang.String name)
Resumes a single Mule Component that has been paused. |
void |
setComponents(java.util.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 |
setExceptionStrategy(UMOExceptionStrategy exceptionStrategy)
The exception strategy to use by components managed by the model. |
void |
setLifecycleAdapterFactory(UMOLifecycleAdapterFactory lifecycleAdapterFactory)
Sets the lifecycleAdapterFactory on the model. |
void |
setName(java.lang.String name)
Sets the model's name. |
void |
startComponent(java.lang.String name)
Starts a single Mule Component. |
void |
stopComponent(java.lang.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(java.lang.String name)
name
- the model's namepublic java.lang.String getName()
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 compoennt is not registered or it failed to be disposing
or the descriptor is nullpublic boolean isComponentRegistered(java.lang.String name)
name
- the name of the UMO
UMODescriptor
public UMOLifecycleAdapterFactory getLifecycleAdapterFactory()
UMOLifecycleAdapterFactory
is used by the
model to instanciate LifecycleAdapters.
@UMOLifecycleAdapter
public void setLifecycleAdapterFactory(UMOLifecycleAdapterFactory lifecycleAdapterFactory)
lifecycleAdapterFactory
- The lifecycleAdapterFactory to set on this model.UMOLifecycleAdapterFactory
,
UMOLifecycleAdapter
public UMOSession getComponentSession(java.lang.String muleName)
muleName
- the Name of the Mule Component to obtain a session for
public void setComponents(java.util.List descriptors) throws UMOException
descriptors
-
UMOException
public UMOExceptionStrategy getExceptionStrategy()
UMOExceptionStrategy
public void setExceptionStrategy(UMOExceptionStrategy exceptionStrategy)
exceptionStrategy
- the default exception strategy for this model.UMOExceptionStrategy
public UMODescriptor getDescriptor(java.lang.String name)
name
- the name of the component
UMODescriptor
public void stopComponent(java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.util.Iterator getComponentNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |