|
Sun Adapter for SAG API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stc.connector.sagadapter.namepattern.SeqNoFilePersistenceAdapter
public class SeqNoFilePersistenceAdapter
It is a file persistence adapter used to store sequence number.
| Field Summary | |
|---|---|
static java.lang.String |
version
|
| Constructor Summary | |
|---|---|
SeqNoFilePersistenceAdapter(java.io.File seqNoFile)
Constructor. |
|
| Method Summary | |
|---|---|
long[] |
load()
Loads sequence numbers from file. |
void |
reset()
Resets sequence numbers file with initial values. |
void |
store(long[] seqNos)
Stores/persists sequence numbers into file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String version
| Constructor Detail |
|---|
public SeqNoFilePersistenceAdapter(java.io.File seqNoFile)
seqNoFile - Sequence number file.| Method Detail |
|---|
public long[] load()
throws java.io.IOException
The file has following structure: %0=number %1=number %2=number %3=number %4=number %5=number %6=number %7=number %8=number %9=number start=number step=number max=number The returned list will contains the numbers in the same order.
java.io.IOException
public void store(long[] seqNos)
throws java.io.IOException
The file has following structure: %0=number %1=number %2=number %3=number %4=number %5=number %6=number %7=number %8=number %9=number start=number step=number max=number The passed-in list will contains the numbers in the same order.
seqNos - The list of sequence numbers to be stores.
java.io.IOException
public void reset()
throws java.io.IOException
The file has following structure and value: %0=1 %1=1 %2=1 %3=1 %4=1 %5=1 %6=1 %7=1 %8=1 %9=1 start=1 step=1 max=2147483647
java.io.IOException
|
Sun Adapter for SAG API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||