|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Suspendable may be implemented by a ResourceAdapter JavaBean if it supports suspend, resume or side-by-side versioning
Field Summary | |
static int |
ALL
Used to indicate that INBOUND, OUTBOUND & WORK are to be suspended/resumed |
static int |
INBOUND
Used to indicate that inbound communication is to be suspended/resumed |
static int |
OUTBOUND
Used to indicate that outbound communication is to be suspended/resumed |
static int |
RESUME
May be used to indicate a resume() operation |
static int |
SUSPEND
May be used to indicate a suspend() operation |
static int |
WORK
Used to indicate that submission of Work is to be suspended/resumed |
Method Summary | |
void |
init(ResourceAdapter ra,
Properties props)
Used by WLS to inform a ResourceAdapter that it is a new version of an already deployed resource adapter. |
boolean |
isInboundSuspended(MessageEndpointFactory endptFactory)
Used to determine whether the inbound activity is currently suspended for the given MessageEndpointFactory |
boolean |
isSuspended(int type)
Used to determine whether the specified type of activity is currently suspended. |
void |
resume(int type,
Properties props)
Request to resume the activity specified. |
void |
resumeInbound(MessageEndpointFactory endptFactory,
Properties props)
Request to resume the inbound activity on the given MessageEndpointFactory |
void |
startVersioning(ResourceAdapter ra,
Properties props)
Used by WLS to indicate to the current version of this resource adapter that a new version of the resource adapter is being deployed. |
boolean |
supportsInit()
Used to determine if this resource adapter supports the init() method used for resource adapter versioning (side-by-side deployment) |
boolean |
supportsSuspend(int type)
|
boolean |
supportsVersioning()
Used to determine if this resource adapter supports the startVersioning() method used for resource adapter versioning (side-by-side deployment) |
void |
suspend(int type,
Properties props)
Request to suspend the activity specified. |
void |
suspendInbound(MessageEndpointFactory endptFactory,
Properties props)
Request to suspend the inbound activity on the given MessageEndpointFactory |
Field Detail |
public static final int ALL
public static final int INBOUND
public static final int OUTBOUND
public static final int RESUME
public static final int SUSPEND
public static final int WORK
Method Detail |
public void init(ResourceAdapter ra, Properties props) throws ResourceException
ra
- The old version of the resource adapter that is currently runningprops
- Properties associated with the versioning operation
ResourceException
- If the init() fails.public boolean isInboundSuspended(MessageEndpointFactory endptFactory) throws ResourceException
ResourceException
public boolean isSuspended(int type)
type
- An int from 1 to 7 specifying the type of activity
requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )
public void resume(int type, Properties props) throws ResourceException
type
- An int from 1 to 7 specifying the type of resume being
requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )props
- Optional Properties (or null) to be used for ResourceAdapter
specific purposes
ResourceException
- If the resource adapter can't complete the
requestpublic void resumeInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
props
- Optional Properties (or null) to be used for ResourceAdapter
specific purposes
ResourceException
- If the resource adapter can't complete the
requestpublic void startVersioning(ResourceAdapter ra, Properties props) throws ResourceException
ra
- The new ResourceAdapter JavaBeanprops
- Properties associated with the versioning
when it can be undeployed
ResourceException
- If something goes wrongpublic boolean supportsInit()
public boolean supportsSuspend(int type)
type
- An int from 1 to 7 specifying the type of suspend this inquiry
is about (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )
public boolean supportsVersioning()
public void suspend(int type, Properties props) throws ResourceException
type
- An int from 1 to 7 specifying the type of suspension being
requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )props
- Optional Properties (or null) to be used for ResourceAdapter
specific purposes
ResourceException
- If the resource adapter can't complete the
requestpublic void suspendInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
props
- Optional Properties (or null) to be used for ResourceAdapter
specific purposes
ResourceException
- If the resource adapter can't complete the
request
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |