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)
MessagePersister
persist
in interface MessagePersister
public abstract void close()
MessagePersister
close
in interface MessagePersister
protected void resetStatus(int current, int status)
protected boolean keepRunning(XQueue xq)
protected boolean isStopped(XQueue xq)
public java.lang.String getName()
MessagePersister
getName
in interface MessagePersister
public java.lang.String getOperation()
MessagePersister
getOperation
in interface MessagePersister
public java.lang.String getLinkName()
MessagePersister
getLinkName
in interface MessagePersister
public int getXAMode()
MessagePersister
getXAMode
in interface MessagePersister
public int getCapacity()
MessagePersister
getCapacity
in interface MessagePersister
public int getStatus()
MessagePersister
getStatus
in interface MessagePersister
public void setStatus(int status)
MessagePersister
setStatus
in interface MessagePersister