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 TwoPhaseHLS
public UserCoordinator userCoordinator()
userCoordinator
in interface TwoPhaseHLS
public CoordinatorManager coordinatorManager()
coordinatorManager
in interface TwoPhaseHLS
public void begun() throws SystemException
begun
in interface HLS
SystemException
- Thrown if an error occurs. Any error
will cause the activity to be failed.public Outcome complete(CompletionStatus cs) throws SystemException
complete
in interface HLS
cs
- 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 HLS
SystemException
public void resumed() throws SystemException
resumed
in interface HLS
SystemException
public void completed() throws SystemException
completed
in interface HLS
SystemException
public String identity() throws SystemException
identity
in interface HLS
SystemException
public int priority() throws SystemException
priority
in interface HLS
SystemException
public Context context() throws SystemException
context
in interface HLS
SystemException
public Outcome coordinate(CompletionStatus cs) throws WrongStateException, ProtocolViolationException, SystemException
coordinate
in interface UserCoordinatorService
cs
- 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 UserCoordinatorService
SystemException
- Thrown if any error occurs.Status
public Qualifier[] qualifiers() throws NoCoordinatorException, SystemException
qualifiers
in interface UserCoordinatorService
SystemException
- Thrown if any error occurs.NoCoordinatorException
public CoordinatorId identifier() throws NoCoordinatorException, SystemException
identifier
in interface UserCoordinatorService
SystemException
- Thrown if any error occurs.NoCoordinatorException
public static String className()
Copyright © 2018 JBoss by Red Hat. All rights reserved.