public class TwoPhaseHLSImple extends Object implements TwoPhaseHLS, UserCoordinatorService
| Modifier and Type | Field and Description |
|---|---|
static String |
coordinationType |
static String |
serviceType |
| Constructor and Description |
|---|
TwoPhaseHLSImple() |
| Modifier and Type | Method and Description |
|---|---|
void |
begun()
An activity has begun and is active on the current thread.
|
static String |
className() |
Outcome |
complete(CompletionStatus cs)
The current activity is completing with the specified completion status.
|
void |
completed()
The activity has completed and is no longer active on the current thread.
|
Context |
context()
Return the context augmentation for this HLS, if any on the current
activity.
|
Outcome |
coordinate(CompletionStatus cs)
If the application requires and if the coordination protocol supports it,
then this method can be used to execute a coordination protocol on the
currently enlisted participants at any time prior to the termination of
the coordination scope.
|
CoordinatorManager |
coordinatorManager() |
UserCoordinatorService |
coordinatorService() |
CoordinatorId |
identifier() |
String |
identity()
The HLS name.
|
int |
priority()
The activity service maintains a priority ordered list of HLS
implementations.
|
Qualifier[] |
qualifiers()
Not supported by basic ArjunaCore.
|
void |
resumed()
The activity has been resumed on the current thread.
|
Status |
status() |
void |
suspended()
The activity has been suspended.
|
UserCoordinator |
userCoordinator() |
public static final String serviceType
public static final String coordinationType
public UserCoordinatorService coordinatorService()
coordinatorService in interface TwoPhaseHLSpublic UserCoordinator userCoordinator()
userCoordinator in interface TwoPhaseHLSpublic CoordinatorManager coordinatorManager()
coordinatorManager in interface TwoPhaseHLSpublic void begun()
throws SystemException
begun in interface HLSSystemException - Thrown if an error occurs. Any error
will cause the activity to be failed.public Outcome complete(CompletionStatus cs) throws SystemException
complete in interface HLScs - The completion status to use.SystemException - Thrown if an error occurs. Any error
will cause the activity to be failed.public void suspended()
throws SystemException
suspended in interface HLSSystemExceptionpublic void resumed()
throws SystemException
resumed in interface HLSSystemExceptionpublic void completed()
throws SystemException
completed in interface HLSSystemExceptionpublic String identity() throws SystemException
identity in interface HLSSystemExceptionpublic int priority()
throws SystemException
priority in interface HLSSystemExceptionpublic Context context() throws SystemException
context in interface HLSSystemExceptionpublic Outcome coordinate(CompletionStatus cs) throws WrongStateException, ProtocolViolationException, SystemException
coordinate in interface UserCoordinatorServicecs - The completion status to use when determining how to
execute the protocol.WrongStateException - Thrown if the coordinator is in a state the does not allow
coordination to occur.ProtocolViolationException - Thrown if the protocol is violated in some manner during
execution.SystemException - Thrown if any other error occurs.public Status status() throws SystemException
status in interface UserCoordinatorServiceSystemException - Thrown if any error occurs.Statuspublic Qualifier[] qualifiers() throws NoCoordinatorException, SystemException
qualifiers in interface UserCoordinatorServiceSystemException - Thrown if any error occurs.NoCoordinatorExceptionpublic CoordinatorId identifier() throws NoCoordinatorException, SystemException
identifier in interface UserCoordinatorServiceSystemException - Thrown if any error occurs.NoCoordinatorExceptionpublic static String className()
Copyright © 2018 JBoss by Red Hat. All rights reserved.