KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > impl > model > seda > optimised > OptimisedSedaModel


1 /*
2  * $Id: OptimisedSedaModel.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.impl.model.seda.optimised;
12
13 import org.mule.impl.MuleDescriptor;
14 import org.mule.impl.model.seda.SedaModel;
15 import org.mule.umo.UMOComponent;
16 import org.mule.umo.UMODescriptor;
17
18 /**
19  * A mule component service model that uses Seda principals to achieve high
20  * throughput by Quing events for compoonents and processing them concurrently.
21  *
22  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
23  * @version $Revision: 3798 $
24  */

25 public class OptimisedSedaModel extends SedaModel
26 {
27
28     /**
29      * Returns the model type name. This is a friendly identifier that is used to
30      * look up the SPI class for the model
31      *
32      * @return the model type
33      */

34     public String JavaDoc getType()
35     {
36         return "seda-optimised";
37     }
38
39     protected UMOComponent createComponent(UMODescriptor descriptor)
40     {
41         return new OptimisedSedaComponent((MuleDescriptor)descriptor, this);
42     }
43 }
44
Popular Tags