|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.tx.coordinator.CoordinationManager
public final class CoordinationManager
This singleton class is responsible for managing coordinated activities for the entire appserver.
Whenever a new coordinated activity is started, a newCoordinator
object is constructed and managed by this class.
Method Summary | |
---|---|
Coordinator |
getCoordinator(java.lang.String id)
Get the Coordinator object with the given coordination id |
static CoordinationManager |
getInstance()
Return the singleton instance of CoordinationManager. |
Coordinator |
lookupOrCreateCoordinator(CoordinationContextInterface context)
Lookup if coordinator exists for context, if not, create a Coordinator object from the given coordination
context and add it to the list of managed activities. |
Coordinator |
lookupOrCreateCoordinator(CreateCoordinationContextType contextRequest)
Create a Coordinator object from the incoming request and
add it to the list of managed activities. |
void |
putCoordinator(Coordinator coordinator)
Add the specified Coordinator object to the list of managed
activities. |
void |
removeCoordinator(java.lang.String id)
Remove the specified Coordinator object from the list of managed
activities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CoordinationManager getInstance()
@Nullable public Coordinator getCoordinator(@NotNull java.lang.String id)
Coordinator
object with the given coordination id
id
- the coordination context id
public void putCoordinator(Coordinator coordinator)
Coordinator
object to the list of managed
activities.
TODO: what about duplicate keys or entries?
coordinator
- coordinatorpublic void removeCoordinator(@NotNull java.lang.String id)
Coordinator
object from the list of managed
activities.
id
- activity id@NotNull public Coordinator lookupOrCreateCoordinator(@NotNull CreateCoordinationContextType contextRequest)
Coordinator
object from the incoming request and
add it to the list of managed activities. The actual type of the
Coordinator
object created will depend on the
Protocol
specified in the contextRequest
parameter.
This method is invoked when we receive a createCoordinationContext soap
request.
contextRequest
- the incoming wscoor:createCoordinationContext message
@NotNull public Coordinator lookupOrCreateCoordinator(@NotNull CoordinationContextInterface context)
Coordinator
object from the given coordination
context and add it to the list of managed activities. The actual
type of the Coordinator
object created will depend on the
protocol identifier contained in the context.
This method is used for direct private invocation within the
appserver.
context
- the coordination context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |