org.mule.impl.model.seda
Class SedaModel

java.lang.Object
  extended by org.mule.impl.model.AbstractModel
      extended by org.mule.impl.model.seda.SedaModel
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOModel
Direct Known Subclasses:
OptimisedSedaModel

public class SedaModel
extends AbstractModel

A Mule component service model that uses Seda principles to achieve high throughput by queueing events for components and processing them concurrently.


Field Summary
protected  boolean componentPerRequest
          Whether to create a new component for every request.
protected  PoolingProfile poolingProfile
          the pooling configuration used when initialising the component described by this descriptor.
protected  QueueProfile queueProfile
          The queuing profile for events received for this component
 
Fields inherited from class org.mule.impl.model.AbstractModel
descriptors, logger
 
Constructor Summary
SedaModel()
           
 
Method Summary
protected  UMOComponent createComponent(UMODescriptor descriptor)
           
 PoolingProfile getPoolingProfile()
           
 QueueProfile getQueueProfile()
           
 int getQueueTimeout()
           
 String getType()
          Returns the model type name.
 boolean isComponentPerRequest()
           
 boolean isEnablePooling()
           
 void setComponentPerRequest(boolean componentPerRequest)
           
 void setEnablePooling(boolean enablePooling)
           
 void setPoolingProfile(PoolingProfile poolingProfile)
           
 void setQueueProfile(QueueProfile queueProfile)
           
 void setQueueTimeout(int queueTimeout)
           
 
Methods inherited from class org.mule.impl.model.AbstractModel
dispose, getComponent, getComponentNames, getComponentSession, getDescriptor, getEntryPointResolver, getExceptionListener, getLifecycleAdapterFactory, getName, initialise, isComponentRegistered, pauseComponent, registerComponent, resumeComponent, setComponents, setEntryPointResolver, setExceptionListener, setLifecycleAdapterFactory, setName, start, startComponent, stop, stopComponent, unregisterComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentPerRequest

protected boolean componentPerRequest
Whether to create a new component for every request.


poolingProfile

protected PoolingProfile poolingProfile
the pooling configuration used when initialising the component described by this descriptor.


queueProfile

protected QueueProfile queueProfile
The queuing profile for events received for this component

Constructor Detail

SedaModel

public SedaModel()
Method Detail

getType

public String getType()
Returns the model type name. This is a friendly identifier that is used to look up the SPI class for the model

Returns:
the model type

createComponent

protected UMOComponent createComponent(UMODescriptor descriptor)
Specified by:
createComponent in class AbstractModel

getQueueTimeout

public int getQueueTimeout()

setQueueTimeout

public void setQueueTimeout(int queueTimeout)

isEnablePooling

public boolean isEnablePooling()

setEnablePooling

public void setEnablePooling(boolean enablePooling)

isComponentPerRequest

public boolean isComponentPerRequest()

setComponentPerRequest

public void setComponentPerRequest(boolean componentPerRequest)

getPoolingProfile

public PoolingProfile getPoolingProfile()

setPoolingProfile

public void setPoolingProfile(PoolingProfile poolingProfile)

getQueueProfile

public QueueProfile getQueueProfile()

setQueueProfile

public void setQueueProfile(QueueProfile queueProfile)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.