|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource<D,F>
net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource<None,JmsServerManagedObjectSource.JmsServerFlows>
net.officefloor.plugin.jms.server.JmsServerManagedObjectSource
public class JmsServerManagedObjectSource
JMS Server ManagedObjectSource.
| Nested Class Summary | |
|---|---|
static class |
JmsServerManagedObjectSource.JmsServerFlows
Provides the flow instances. |
| Nested classes/interfaces inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource |
|---|
AbstractAsyncManagedObjectSource.DependencyLabeller, AbstractAsyncManagedObjectSource.Labeller, AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext |
| Field Summary | |
|---|---|
static String |
JMS_MAX_SERVER_SESSIONS
Property name to obtain the maximum number of ServerSession
instances. |
static String |
JMS_MESSAGE_SELECTOR
Property name to obtain the message selector. |
| Constructor Summary | |
|---|---|
JmsServerManagedObjectSource()
|
|
| Method Summary | |
|---|---|
protected ManagedObject |
getManagedObject()
Synchronously obtains the ManagedObject. |
javax.jms.ServerSession |
getServerSession()
|
protected void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,JmsServerManagedObjectSource.JmsServerFlows> context)
Overridden to load meta-data. |
protected void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications. |
protected void |
returnJmsServerManagedObject(JmsServerManagedObject jmsServerManagedObject)
Returns the JmsServerManagedObject to its pool. |
void |
runSession(JmsServerManagedObject managedObject)
Runs the Session to obtain the Message. |
void |
start(ManagedObjectExecuteContext<JmsServerManagedObjectSource.JmsServerFlows> context)
Called once after ManagedObjectSource.init(ManagedObjectSourceContext) to indicate
this ManagedObjectSource should start execution. |
| Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource |
|---|
sourceManagedObject |
| Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource |
|---|
getMetaData, getSpecification, init, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JMS_MESSAGE_SELECTOR
public static final String JMS_MAX_SERVER_SESSIONS
ServerSession
instances.
| Constructor Detail |
|---|
public JmsServerManagedObjectSource()
| Method Detail |
|---|
protected void returnJmsServerManagedObject(JmsServerManagedObject jmsServerManagedObject)
JmsServerManagedObject to its pool.
jmsServerManagedObject - JmsServerManagedObject to be returned to pool.public void runSession(JmsServerManagedObject managedObject)
Session to obtain the Message.
managedObject - JmsServerManagedObject.protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
AbstractAsyncManagedObjectSource
loadSpecification in class AbstractAsyncManagedObjectSource<None,JmsServerManagedObjectSource.JmsServerFlows>context - Specifications.
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,JmsServerManagedObjectSource.JmsServerFlows> context)
throws Exception
AbstractAsyncManagedObjectSource
loadMetaData in class AbstractAsyncManagedObjectSource<None,JmsServerManagedObjectSource.JmsServerFlows>context - Meta-data.
Exception - If fails to load the meta-data.
public void start(ManagedObjectExecuteContext<JmsServerManagedObjectSource.JmsServerFlows> context)
throws Exception
ManagedObjectSource
Called once after ManagedObjectSource.init(ManagedObjectSourceContext) to indicate
this ManagedObjectSource should start execution.
On invocation of this method, ProcessState instances may be
invoked via the ManagedObjectExecuteContext.
start in interface ManagedObjectSource<None,JmsServerManagedObjectSource.JmsServerFlows>start in class AbstractAsyncManagedObjectSource<None,JmsServerManagedObjectSource.JmsServerFlows>context - ManagedObjectExecuteContext to use in starting this
ManagedObjectSource.
Exception - Should the ManagedObjectSource fail to start
execution.
protected ManagedObject getManagedObject()
throws Throwable
AbstractManagedObjectSourceManagedObject.
getManagedObject in class AbstractManagedObjectSource<None,JmsServerManagedObjectSource.JmsServerFlows>ManagedObject.
Throwable - If fails to obtain the ManagedObject.
public javax.jms.ServerSession getServerSession()
throws javax.jms.JMSException
getServerSession in interface javax.jms.ServerSessionPooljavax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||