public abstract class Persister extends java.lang.Object implements MessagePersister
| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity |
protected int |
displayMask |
protected java.lang.String |
linkName |
protected int |
maxRetry |
protected java.lang.String |
operation |
protected int[] |
partition |
protected int |
pauseTime |
protected java.lang.String[] |
propertyName |
protected int |
repeatPeriod |
protected int |
standbyTime |
protected int |
status |
protected int |
timeout |
protected int |
tolerance |
protected java.lang.String |
uri |
protected long |
waitTime |
protected int |
xaMode |
PSTR_CLOSED, PSTR_DISABLED, PSTR_PAUSE, PSTR_READY, PSTR_RETRYING, PSTR_RUNNING, PSTR_STANDBY, PSTR_STOPPED| Constructor and Description |
|---|
Persister(java.util.Map props) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
closes all opened resources
|
int |
getCapacity()
returns the capacity of the InLink
|
java.lang.String |
getLinkName()
returns the name of the InLink
|
java.lang.String |
getName()
returns the name of the persister
|
java.lang.String |
getOperation()
returns the string of the operation
|
int |
getStatus()
returns the status of the persister
|
int |
getXAMode()
returns the transaction mode of the persister
|
protected boolean |
isStopped(XQueue xq) |
protected boolean |
keepRunning(XQueue xq) |
abstract void |
persist(XQueue xq,
int baseTime)
gets all the JMS messages from the XQueue and delivers them to
their destinations.
|
protected void |
resetStatus(int current,
int status) |
void |
setStatus(int status)
sets the status of the persister
|
protected java.lang.String uri
protected java.lang.String operation
protected java.lang.String linkName
protected int xaMode
protected int capacity
protected int status
protected int repeatPeriod
protected int maxRetry
protected int tolerance
protected int pauseTime
protected int standbyTime
protected int timeout
protected int displayMask
protected java.lang.String[] propertyName
protected long waitTime
protected int[] partition
public abstract void persist(XQueue xq, int baseTime)
MessagePersisterpersist in interface MessagePersisterpublic abstract void close()
MessagePersisterclose in interface MessagePersisterprotected void resetStatus(int current,
int status)
protected boolean keepRunning(XQueue xq)
protected boolean isStopped(XQueue xq)
public java.lang.String getName()
MessagePersistergetName in interface MessagePersisterpublic java.lang.String getOperation()
MessagePersistergetOperation in interface MessagePersisterpublic java.lang.String getLinkName()
MessagePersistergetLinkName in interface MessagePersisterpublic int getXAMode()
MessagePersistergetXAMode in interface MessagePersisterpublic int getCapacity()
MessagePersistergetCapacity in interface MessagePersisterpublic int getStatus()
MessagePersistergetStatus in interface MessagePersisterpublic void setStatus(int status)
MessagePersistersetStatus in interface MessagePersister