org.jboss.messaging.ra.inflow
Class JBMActivationSpec

java.lang.Object
  extended by org.jboss.messaging.ra.inflow.JBMActivationSpec
All Implemented Interfaces:
javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation

public class JBMActivationSpec
extends java.lang.Object
implements javax.resource.spi.ActivationSpec

The activation spec These properties are set on the MDB ActivactionProperties

Version:
$Revision: $
Author:
Adrian Brock, Jesper Pedersen, Andy Taylor, Clebert Suconic

Field Summary
 java.lang.String strConnectionParameters
           
 
Constructor Summary
JBMActivationSpec()
          Constructor
 
Method Summary
 java.lang.String getAcknowledgeMode()
          Get the acknowledge mode
 int getAcknowledgeModeInt()
           
 java.lang.String getClientId()
          Get the client id
 java.lang.String getConnectionParameters()
           
 java.lang.String getConnectorClassName()
           
 java.lang.String getDestination()
          Get the destination
 java.lang.String getDestinationType()
          Get the destination type
 java.lang.Integer getForceClearAttempts()
          Get force clear attempts
 java.lang.Boolean getForceClearOnShutdown()
          Get force clear on shutdown
 java.lang.Long getForceClearOnShutdownInterval()
          Get force clear on shutdown interval
 java.lang.Boolean getIsSameRMOverrideValue()
          Get the is same rm override
 java.lang.Long getKeepAlive()
          Get the keep alive
 long getKeepAliveLong()
          Get the keep alive
 java.lang.Integer getMaxMessages()
          Get the numer of max messages
 int getMaxMessagesInt()
          Get the number of max messages
 java.lang.Integer getMaxSession()
          Get the number of max session
 int getMaxSessionInt()
          Get the number of max session
 java.lang.String getMessageSelector()
          Get the message selector
 java.lang.Integer getMinSession()
          Get the number of min session
 int getMinSessionInt()
          Get the number of min session
 java.util.Map<java.lang.String,java.lang.Object> getParsedConnectionParameters()
           
 java.lang.String getPassword()
          Get the password
 java.lang.Boolean getRedeliverUnspecified()
          Get the redeliver upspecified
 javax.resource.spi.ResourceAdapter getResourceAdapter()
          Get the resource adapter
 java.lang.Boolean getSessionTransacted()
          Get the session transacted
 java.lang.String getSubscriptionDurability()
          Get the subscription durability
 java.lang.String getSubscriptionName()
          Get the subscription name
 java.lang.Integer getTransactionTimeout()
          Get the transaction timeout
 java.lang.String getUser()
          Get the user
 boolean isForceClearOnShutdown()
          Get force clear on shutdown
 boolean isSessionTransacted()
          Get the session transaced
 boolean isSubscriptionDurable()
          Get the status of subscription durability
 boolean isUseJNDI()
           
 void setAcknowledgeMode(java.lang.String value)
          Set the acknowledge mode
 void setClientId(java.lang.String value)
          Set the client id
 void setConnectionParameters(java.lang.String configuration)
           
 void setConnectorClassName(java.lang.String value)
           
 void setDestination(java.lang.String value)
          Set the destination
 void setDestinationType(java.lang.String value)
          Set the destination type
 void setDLQJNDIName(java.lang.String name)
           
 void setDLQMaxResent(int maxResent)
           
 void setForceClearAttempts(java.lang.Integer value)
          Set the force clear attempts
 void setForceClearOnShutdown(java.lang.Boolean value)
          Set the force clear on shutdown
 void setForceClearOnShutdownInterval(java.lang.Long value)
          Set the force clear on shutdown interval
 void setIsSameRMOverrideValue(java.lang.Boolean value)
          Set the is same RM override
 void setKeepAlive(java.lang.Long value)
          Set the keep alive
 void setMaxMessages(java.lang.Integer value)
          Set the numer of max messages
 void setMaxSession(java.lang.Integer value)
          Set the number of max session
 void setMessageSelector(java.lang.String value)
          Set the message selector
 void setMinSession(java.lang.Integer value)
          Set the number of min session
 void setPassword(java.lang.String value)
          Set the password
 void setProviderAdapterJNDI(java.lang.String jndi)
           
 void setRedeliverUnspecified(java.lang.Boolean value)
          Set the redeliver unspecified
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
          Set the resource adapter
 void setSessionTransacted(java.lang.Boolean value)
          Set the session transacted
 void setSubscriptionDurability(java.lang.String value)
          Set the subscription durability
 void setSubscriptionName(java.lang.String value)
          Set the subscription name
 void setTransactionTimeout(java.lang.Integer value)
          Set the transaction timeout
 void setUseDLQ(boolean b)
           
 void setUseJNDI(boolean value)
           
 void setUser(java.lang.String value)
          Set the user
 java.lang.String toString()
          Get a string representation
 void validate()
          Validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strConnectionParameters

public java.lang.String strConnectionParameters
Constructor Detail

JBMActivationSpec

public JBMActivationSpec()
Constructor

Method Detail

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Get the resource adapter

Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Returns:
The resource adapter

isUseJNDI

public boolean isUseJNDI()
Returns:
the useJNDI

setUseJNDI

public void setUseJNDI(boolean value)
Parameters:
useJNDI - the useJNDI to set

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
                        throws javax.resource.ResourceException
Set the resource adapter

Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Parameters:
ra - The resource adapter
Throws:
javax.resource.ResourceException - Thrown if incorrect resource adapter

getDestination

public java.lang.String getDestination()
Get the destination

Returns:
The value

setDestination

public void setDestination(java.lang.String value)
Set the destination

Parameters:
value - The value

getDestinationType

public java.lang.String getDestinationType()
Get the destination type

Returns:
The value

setDestinationType

public void setDestinationType(java.lang.String value)
Set the destination type

Parameters:
value - The value

getMessageSelector

public java.lang.String getMessageSelector()
Get the message selector

Returns:
The value

setMessageSelector

public void setMessageSelector(java.lang.String value)
Set the message selector

Parameters:
value - The value

getAcknowledgeMode

public java.lang.String getAcknowledgeMode()
Get the acknowledge mode

Returns:
The value

setAcknowledgeMode

public void setAcknowledgeMode(java.lang.String value)
Set the acknowledge mode

Parameters:
value - The value

getAcknowledgeModeInt

public int getAcknowledgeModeInt()
Returns:
the acknowledgement mode

getSubscriptionDurability

public java.lang.String getSubscriptionDurability()
Get the subscription durability

Returns:
The value

setSubscriptionDurability

public void setSubscriptionDurability(java.lang.String value)
Set the subscription durability

Parameters:
value - The value

isSubscriptionDurable

public boolean isSubscriptionDurable()
Get the status of subscription durability

Returns:
The value

getSubscriptionName

public java.lang.String getSubscriptionName()
Get the subscription name

Returns:
The value

setSubscriptionName

public void setSubscriptionName(java.lang.String value)
Set the subscription name

Parameters:
value - The value

getClientId

public java.lang.String getClientId()
Get the client id

Returns:
The value

setClientId

public void setClientId(java.lang.String value)
Set the client id

Parameters:
value - The value

getUser

public java.lang.String getUser()
Get the user

Returns:
The value

setUser

public void setUser(java.lang.String value)
Set the user

Parameters:
value - The value

getPassword

public java.lang.String getPassword()
Get the password

Returns:
The value

setPassword

public void setPassword(java.lang.String value)
Set the password

Parameters:
value - The value

getMaxMessages

public java.lang.Integer getMaxMessages()
Get the numer of max messages

Returns:
The value

setMaxMessages

public void setMaxMessages(java.lang.Integer value)
Set the numer of max messages

Parameters:
value - The value

getMaxMessagesInt

public int getMaxMessagesInt()
Get the number of max messages

Returns:
The value

getMinSession

public java.lang.Integer getMinSession()
Get the number of min session

Returns:
The value

setMinSession

public void setMinSession(java.lang.Integer value)
Set the number of min session

Parameters:
value - The value

getMinSessionInt

public int getMinSessionInt()
Get the number of min session

Returns:
The value

getMaxSession

public java.lang.Integer getMaxSession()
Get the number of max session

Returns:
The value

setMaxSession

public void setMaxSession(java.lang.Integer value)
Set the number of max session

Parameters:
value - The value

getMaxSessionInt

public int getMaxSessionInt()
Get the number of max session

Returns:
The value

getKeepAlive

public java.lang.Long getKeepAlive()
Get the keep alive

Returns:
The value

setKeepAlive

public void setKeepAlive(java.lang.Long value)
Set the keep alive

Parameters:
value - The value

getKeepAliveLong

public long getKeepAliveLong()
Get the keep alive

Returns:
The value

getSessionTransacted

public java.lang.Boolean getSessionTransacted()
Get the session transacted

Returns:
The value

setSessionTransacted

public void setSessionTransacted(java.lang.Boolean value)
Set the session transacted

Parameters:
value - The value

isSessionTransacted

public boolean isSessionTransacted()
Get the session transaced

Returns:
THe value

getRedeliverUnspecified

public java.lang.Boolean getRedeliverUnspecified()
Get the redeliver upspecified

Returns:
The value

setRedeliverUnspecified

public void setRedeliverUnspecified(java.lang.Boolean value)
Set the redeliver unspecified

Parameters:
value - The value

getTransactionTimeout

public java.lang.Integer getTransactionTimeout()
Get the transaction timeout

Returns:
The value

setTransactionTimeout

public void setTransactionTimeout(java.lang.Integer value)
Set the transaction timeout

Parameters:
value - The value

getIsSameRMOverrideValue

public java.lang.Boolean getIsSameRMOverrideValue()
Get the is same rm override

Returns:
The value

setIsSameRMOverrideValue

public void setIsSameRMOverrideValue(java.lang.Boolean value)
Set the is same RM override

Parameters:
value - The value

getForceClearOnShutdown

public java.lang.Boolean getForceClearOnShutdown()
Get force clear on shutdown

Returns:
The value

setForceClearOnShutdown

public void setForceClearOnShutdown(java.lang.Boolean value)
Set the force clear on shutdown

Parameters:
value - The value

isForceClearOnShutdown

public boolean isForceClearOnShutdown()
Get force clear on shutdown

Returns:
The value

getForceClearOnShutdownInterval

public java.lang.Long getForceClearOnShutdownInterval()
Get force clear on shutdown interval

Returns:
The value

setForceClearOnShutdownInterval

public void setForceClearOnShutdownInterval(java.lang.Long value)
Set the force clear on shutdown interval

Parameters:
value - The value

getForceClearAttempts

public java.lang.Integer getForceClearAttempts()
Get force clear attempts

Returns:
The value

setForceClearAttempts

public void setForceClearAttempts(java.lang.Integer value)
Set the force clear attempts

Parameters:
value - The value

validate

public void validate()
              throws javax.resource.spi.InvalidPropertyException
Validate

Specified by:
validate in interface javax.resource.spi.ActivationSpec
Throws:
javax.resource.spi.InvalidPropertyException - Thrown if a validation exception occurs

getConnectionParameters

public java.lang.String getConnectionParameters()
Returns:
the connectionParameters

getParsedConnectionParameters

public java.util.Map<java.lang.String,java.lang.Object> getParsedConnectionParameters()

setConnectionParameters

public void setConnectionParameters(java.lang.String configuration)

getConnectorClassName

public java.lang.String getConnectorClassName()
Returns:
the connectorClassName

setConnectorClassName

public void setConnectorClassName(java.lang.String value)

toString

public java.lang.String toString()
Get a string representation

Overrides:
toString in class java.lang.Object
Returns:
The value

setUseDLQ

public void setUseDLQ(boolean b)

setDLQJNDIName

public void setDLQJNDIName(java.lang.String name)

setDLQMaxResent

public void setDLQMaxResent(int maxResent)

setProviderAdapterJNDI

public void setProviderAdapterJNDI(java.lang.String jndi)


Copyright © 2006 JBoss Inc. All Rights Reserved.