|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.commons.AbstractMOMRegistrationAware
com.sun.xml.ws.rx.rm.runtime.sequence.invm.InVmSequenceManager
public final class InVmSequenceManager
| Field Summary |
|---|
| Fields inherited from interface com.sun.xml.ws.rx.rm.runtime.sequence.SequenceManager |
|---|
MANAGED_BEAN_NAME |
| Constructor Summary | |
|---|---|
InVmSequenceManager(String uniqueEndpointId,
DeliveryQueueBuilder inboundQueueBuilder,
DeliveryQueueBuilder outboundQueueBuilder,
RmConfiguration configuration,
Container container,
LocalIDManager localIDManager)
|
|
| Method Summary | |
|---|---|
void |
bindSequences(String referenceSequenceId,
String boundSequenceId)
Binds two sequences together. |
Map<String,String> |
boundSequences()
|
void |
close()
|
Sequence |
closeSequence(String sequenceId)
Closes an existing sequence. |
long |
concurrentlyOpenedInboundSequencesCount()
|
Sequence |
createInboundSequence(String sequenceId,
String strId,
long expirationTime)
Creates a new inbound sequence object |
Sequence |
createOutboundSequence(String sequenceId,
String strId,
long expirationTime)
Creates a new outbound sequence object with a given Id. |
long |
currentTimeInMillis()
|
void |
destroy()
|
void |
dispose()
Tells the SequenceManager that it is going to be disposed. |
String |
generateSequenceUID()
Generates a unique identifier of a sequence |
Sequence |
getBoundSequence(String referenceSequenceId)
Retrieves a sequence previously bound to the reference sequence |
Sequence |
getInboundSequence(String sequenceId)
Retrieves an existing inbound sequence from the internal sequence storage |
Sequence |
getOutboundSequence(String sequenceId)
Retrieves an existing outbound sequence from the internal sequence storage |
Sequence |
getSequence(String sequenceId)
Retrieves an existing sequence from the internal sequence storage |
void |
invalidateCache()
Instructs the SequenceManager instance to invalidate it's local
cache. |
boolean |
isValid(String sequenceId)
Provides information on whether the sequence identifier is a valid identifier that belongs to an existing sequence registered with the sequence manager. |
AbstractSequence |
load(String key)
|
boolean |
onMaintenance()
Terminates all sequences that became expired in the meantime and removes all previously terminated sequences that were terminated sooner than a pre-configured period of time. |
boolean |
persistent()
|
void |
remove(String key)
|
void |
save(String key,
AbstractSequence sequence,
boolean isNew)
|
Map<String,Sequence> |
sequences()
|
Sequence |
terminateSequence(String sequenceId)
Terminates an existing sequence by calling the Sequence.preDestroy() method. |
String |
uniqueEndpointId()
|
| Methods inherited from class com.sun.xml.ws.commons.AbstractMOMRegistrationAware |
|---|
isRegisteredAtMOM, setRegisteredAtMOM |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.xml.ws.commons.MOMRegistrationAware |
|---|
isRegisteredAtMOM, setRegisteredAtMOM |
| Constructor Detail |
|---|
public InVmSequenceManager(String uniqueEndpointId,
DeliveryQueueBuilder inboundQueueBuilder,
DeliveryQueueBuilder outboundQueueBuilder,
RmConfiguration configuration,
Container container,
LocalIDManager localIDManager)
| Method Detail |
|---|
public boolean persistent()
persistent in interface SequenceManagerpublic String uniqueEndpointId()
uniqueEndpointId in interface SequenceManagerpublic Map<String,Sequence> sequences()
sequences in interface SequenceManagerpublic Map<String,String> boundSequences()
boundSequences in interface SequenceManagerpublic long concurrentlyOpenedInboundSequencesCount()
concurrentlyOpenedInboundSequencesCount in interface SequenceManager
public Sequence createOutboundSequence(String sequenceId,
String strId,
long expirationTime)
throws DuplicateSequenceException
createOutboundSequence in interface SequenceManagersequenceId - identifier of the new sequencestrId - security reference token identifier which this session is bound toexpirationTime - expiration time of the sequence in milliseconds; value of com.sun.xml.ws.rm.policy.Configuration#UNSPECIFIED
means that this sequence never expires.
DuplicateSequenceException
public Sequence createInboundSequence(String sequenceId,
String strId,
long expirationTime)
throws DuplicateSequenceException
createInboundSequence in interface SequenceManagersequenceId - identifier of the new sequencestrId - security reference token identifier which this session is bound toexpirationTime - expiration time of the sequence in milliseconds; value of com.sun.xml.ws.rm.policy.Configuration#UNSPECIFIED
means that this sequence never expires.
DuplicateSequenceExceptionpublic String generateSequenceUID()
generateSequenceUID in interface SequenceManager
public Sequence closeSequence(String sequenceId)
throws UnknownSequenceException
closeSequence in interface SequenceManagersequenceId - the unique sequence identifier
UnknownSequenceException
public Sequence getSequence(String sequenceId)
throws UnknownSequenceException
getSequence in interface SequenceManagersequenceId - the unique sequence identifier
sequenceId identifier
UnknownSequenceException - in case no such sequence is registered within the sequence manager
public Sequence getInboundSequence(String sequenceId)
throws UnknownSequenceException
getInboundSequence in interface SequenceManagersequenceId - the unique sequence identifier
sequenceId identifier
UnknownSequenceException - in case no such sequence is registered
within the sequence manager or in case the registered sequence was
not created as inbound.
public Sequence getOutboundSequence(String sequenceId)
throws UnknownSequenceException
getOutboundSequence in interface SequenceManagersequenceId - the unique sequence identifier
sequenceId identifier
UnknownSequenceException - in case no such sequence is registered
within the sequence manager or in case the registered sequence was
not created as outbound.public boolean isValid(String sequenceId)
isValid in interface SequenceManagersequenceId - sequence identifier to be checked
true in case the sequence identifier is valid, false otherwise
public Sequence terminateSequence(String sequenceId)
throws UnknownSequenceException
Sequence.preDestroy() method. In addition to this, the terminated
sequence is removed from the internal sequence storage
terminateSequence in interface SequenceManagersequenceId - the unique sequence identifier
UnknownSequenceException
public void bindSequences(String referenceSequenceId,
String boundSequenceId)
throws UnknownSequenceException
bindSequences in interface SequenceManagerreferenceSequenceId - a reference sequence identifier to which the other sequence shall be bound.boundSequenceId - a bound sequence identifier
UnknownSequenceException - in case any of the sequence identifiers does not represent a valid sequence
public Sequence getBoundSequence(String referenceSequenceId)
throws UnknownSequenceException
getBoundSequence in interface SequenceManagerreferenceSequenceId - a reference sequence identifier to which the other sequence has been bound.
null in case no sequence is bound to the reference sequence
UnknownSequenceExceptionpublic long currentTimeInMillis()
currentTimeInMillis in interface TimeSynchronizerpublic boolean onMaintenance()
SequenceManagerSequenceMaintenanceTask
instance associated with this SequenceManager.
onMaintenance in interface SequenceManagertrue if the next maintenance execution task is supposed to be scheduled,
false otherwise.public void invalidateCache()
SequenceManagerSequenceManager instance to invalidate it's local
cache. This prevents stale data being used and ensures that fresh data are
loaded from the RM HA backing stores.
invalidateCache in interface SequenceManagerpublic void dispose()
SequenceManagerSequenceManager that it is going to be disposed. An implementation
of this interface can use the method to do the necessary resource cleanup.
dispose in interface SequenceManagerpublic AbstractSequence load(String key)
load in interface ReplicationManager<String,AbstractSequence>
public void save(String key,
AbstractSequence sequence,
boolean isNew)
save in interface ReplicationManager<String,AbstractSequence>public void remove(String key)
remove in interface ReplicationManager<String,AbstractSequence>public void close()
close in interface ReplicationManager<String,AbstractSequence>public void destroy()
destroy in interface ReplicationManager<String,AbstractSequence>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||