GigaSpaces XAP 7.0 API

org.openspaces.esb.mule.seda
Class OpenSpacesSedaModel

java.lang.Object
  extended by org.mule.model.AbstractModel
      extended by org.mule.model.seda.SedaModel
          extended by org.openspaces.esb.mule.seda.OpenSpacesSedaModel
All Implemented Interfaces:
org.mule.api.context.MuleContextAware, org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Initialisable, org.mule.api.lifecycle.Lifecycle, org.mule.api.lifecycle.Startable, org.mule.api.lifecycle.Stoppable, org.mule.api.model.Model, org.mule.api.NamedObject, ApplicationContextAware

public class OpenSpacesSedaModel
extends org.mule.model.seda.SedaModel
implements ApplicationContextAware

An OS queue connector. Holding the actual GigaSpace instance that will be used to communicate with the Space by the OpenSpacesSedaService.

If the giga space reference is defined (setGigaSpace(String), will use it to find the GigaSpace instance defined. If it is not defined, will try to get GigaSpace instances from Spring and if there is only one defined, will used it.

Also holds other attributes related to the written and read entry. Such as if the entry will be a fifo one, and if it will be persisted.

Author:
kimchy

Field Summary
 
Fields inherited from class org.mule.model.seda.SedaModel
poolingProfile, queueProfile
 
Fields inherited from class org.mule.model.AbstractModel
DEFAULT_MODEL_NAME, logger, muleContext
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
OpenSpacesSedaModel()
           
 
Method Summary
 String getGigaSpace()
           
 GigaSpace getGigaSpaceObj()
           
 String getType()
          Returns the model type name.
 void initialise()
           
 boolean isFifo()
           
 boolean isPersistent()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setFifo(boolean fifo)
           
 void setGigaSpace(String gigaSpaceRef)
           
 void setPersistent(boolean persistent)
           
 
Methods inherited from class org.mule.model.seda.SedaModel
getPoolingProfile, getQueueProfile, getQueueTimeout, setPoolingProfile, setQueueProfile, setQueueTimeout
 
Methods inherited from class org.mule.model.AbstractModel
dispose, getEntryPointResolverSet, getExceptionListener, getLifecycleAdapterFactory, getName, setEntryPointResolvers, setEntryPointResolverSet, setExceptionListener, setLifecycleAdapterFactory, setMuleContext, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenSpacesSedaModel

public OpenSpacesSedaModel()
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

Specified by:
getType in interface org.mule.api.model.Model
Overrides:
getType in class org.mule.model.seda.SedaModel
Returns:
the model type

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

setGigaSpace

public void setGigaSpace(String gigaSpaceRef)

getGigaSpace

public String getGigaSpace()

isFifo

public boolean isFifo()

setFifo

public void setFifo(boolean fifo)

isPersistent

public boolean isPersistent()

setPersistent

public void setPersistent(boolean persistent)

getGigaSpaceObj

public GigaSpace getGigaSpaceObj()

initialise

public void initialise()
                throws org.mule.api.lifecycle.InitialisationException
Specified by:
initialise in interface org.mule.api.lifecycle.Initialisable
Overrides:
initialise in class org.mule.model.seda.SedaModel
Throws:
org.mule.api.lifecycle.InitialisationException

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.