org.mule.impl.space
Class DefaultSpaceFactory

java.lang.Object
  extended byorg.mule.impl.space.DefaultSpaceFactory
All Implemented Interfaces:
UMOSpaceFactory
Direct Known Subclasses:
FileSpaceFactory, VMSpaceFactory

public abstract class DefaultSpaceFactory
extends Object
implements UMOSpaceFactory

As Space factory that creates a local, non-shared space. If a Jounaling or DB persistence strategy is used this can be used in a clustered environment


Constructor Summary
DefaultSpaceFactory()
           
DefaultSpaceFactory(boolean enableMonitorEvents)
           
DefaultSpaceFactory(boolean enableMonitorEvents, int capacity)
           
DefaultSpaceFactory(QueueManager qm, boolean enableMonitorEvents)
           
DefaultSpaceFactory(QueuePersistenceStrategy ps, boolean enableMonitorEvents)
           
DefaultSpaceFactory(QueuePersistenceStrategy ps, boolean enableMonitorEvents, int capacity)
           
 
Method Summary
 UMOSpace create(String name)
          Creates a space based on a URI identifier for the space
 UMOSpace create(UMOImmutableEndpoint endpoint)
          Creates a space based on the endpoint URI and can use additional properties, transaction info, security info and filters associated with the endpoint
 int getCapacity()
           
 QueuePersistenceStrategy getPersistenceStrategy()
           
 QueueManager getQueueManager()
           
 boolean isEnableCaching()
           
 boolean isEnableMonitorEvents()
           
 void setCapacity(int capacity)
           
 void setEnableCaching(boolean enableCaching)
           
 void setEnableMonitorEvents(boolean enableMonitorEvents)
           
 void setPersistenceStrategy(QueuePersistenceStrategy persistenceStrategy)
           
 void setQueueManager(QueueManager queueManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpaceFactory

public DefaultSpaceFactory()

DefaultSpaceFactory

public DefaultSpaceFactory(boolean enableMonitorEvents)

DefaultSpaceFactory

public DefaultSpaceFactory(boolean enableMonitorEvents,
                           int capacity)

DefaultSpaceFactory

public DefaultSpaceFactory(QueuePersistenceStrategy ps,
                           boolean enableMonitorEvents)

DefaultSpaceFactory

public DefaultSpaceFactory(QueuePersistenceStrategy ps,
                           boolean enableMonitorEvents,
                           int capacity)

DefaultSpaceFactory

public DefaultSpaceFactory(QueueManager qm,
                           boolean enableMonitorEvents)
Method Detail

isEnableMonitorEvents

public boolean isEnableMonitorEvents()

setEnableMonitorEvents

public void setEnableMonitorEvents(boolean enableMonitorEvents)

getCapacity

public int getCapacity()

setCapacity

public void setCapacity(int capacity)

getPersistenceStrategy

public QueuePersistenceStrategy getPersistenceStrategy()

setPersistenceStrategy

public void setPersistenceStrategy(QueuePersistenceStrategy persistenceStrategy)

getQueueManager

public QueueManager getQueueManager()

setQueueManager

public void setQueueManager(QueueManager queueManager)

isEnableCaching

public boolean isEnableCaching()

setEnableCaching

public void setEnableCaching(boolean enableCaching)

create

public UMOSpace create(String name)
                throws UMOSpaceException
Description copied from interface: UMOSpaceFactory
Creates a space based on a URI identifier for the space

Specified by:
create in interface UMOSpaceFactory
Parameters:
name - a URI from which to construct the space
Returns:
an new Space object
Throws:
UMOSpaceException

create

public UMOSpace create(UMOImmutableEndpoint endpoint)
                throws UMOSpaceException
Creates a space based on the endpoint URI and can use additional properties, transaction info, security info and filters associated with the endpoint

Specified by:
create in interface UMOSpaceFactory
Parameters:
endpoint - the endpoint from which to construct the space
Returns:
an new Space object
Throws:
UMOSpaceException


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.