|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UMOModel
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 |
---|
void setName(String name)
name
- the model's nameString getName()
String getType()
UMOEntryPointResolver getEntryPointResolver()
void setEntryPointResolver(UMOEntryPointResolver entryPointResolver)
entryPointResolver
- The entryPointResolver to set. This will be used to
build entry points on the components registered with the model.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
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 nullboolean isComponentRegistered(String name)
name
- the name of the UMO
UMODescriptor
UMOLifecycleAdapterFactory getLifecycleAdapterFactory()
UMOLifecycleAdapterFactory
is used by the model to instanciate
LifecycleAdapters.
UMOLifecycleAdapterFactory
,
UMOLifecycleAdapter
void setLifecycleAdapterFactory(UMOLifecycleAdapterFactory lifecycleAdapterFactory)
lifecycleAdapterFactory
- The lifecycleAdapterFactory to set on this
model.UMOLifecycleAdapterFactory
,
UMOLifecycleAdapter
UMOSession getComponentSession(String muleName)
muleName
- the Name of the Mule Component to obtain a session for
void setComponents(List descriptors) throws UMOException
descriptors
-
UMOException
ExceptionListener getExceptionListener()
ExceptionListener
void setExceptionListener(ExceptionListener listener)
listener
- the default exception strategy for this model.ExceptionListener
UMODescriptor getDescriptor(String name)
name
- the name of the component
UMODescriptor
UMOComponent getComponent(String name)
name
- the name of the component
UMOComponent
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 stopvoid 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 startvoid 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
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 resumeIterator getComponentNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |