Class JournalInfoRetrieval
java.lang.Object
io.debezium.ibmi.db2.journal.retrieve.JournalInfoRetrieval
- Author:
- sillencem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AS400Bin4private static final AS400Bin8private static final AS400Textprivate static final AS400Textprivate static final AS400Textprivate static final AS400Textprivate final DetailedJournalReceiverCacheprivate static final byte[](package private) static final Patternstatic final Stringprivate static final intprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcallServiceProgram(AS400 as400, String programLibrary, String program, ProgramParameter[] parameters, JournalInfoRetrieval.ProcessFirstParamaterData<T> processor) static <T> TcallServiceProgramParams(AS400 as400, String programLibrary, String program, ProgramParameter[] parameters, JournalInfoRetrieval.ProcessDataAllParamaterData<T> processor) static BigIntegerdecodeBigIntFromString(byte[] data, int offset) static IntegerdecodeInt(byte[] data, int offset) static LongdecodeLong(byte[] data, int offset) static StringdecodeString(byte[] data, int offset, int length) getCurrentDetailedJournalReceiver(AS400 as400, JournalInfo journalLib) getCurrentPosition(AS400 as400, JournalInfo journalLib) static JournalInfogetJournal(AS400 as400, String schema) Deprecated.static JournalInfogetJournal(AS400 as400, String schema, String table) static JournalInfogetJournal(AS400 as400, String schema, List<FileFilter> includes) (package private) DetailedJournalReceivergetOffset(AS400 as400, JournalReceiver receiver) static JournalReceivergetReceiver(AS400 as400, JournalInfo journalLib) uses the current attached journal information in the headerprivate DetailedJournalReceivergetReceiverDetails(AS400 as400, JournalReceiverInfo receiverInfo) getReceivers(AS400 as400, JournalInfo journalLib) requests the list of receivers and orders them in attach timeprivate byte[]getReceiversForJournal(AS400 as400, JournalInfo journalLib, int bufSize) static String
-
Field Details
-
log
private static final org.slf4j.Logger log -
JOURNAL_SERVICE_LIB
- See Also:
-
EMPTY_AS400_TEXT
private static final byte[] EMPTY_AS400_TEXT -
AS400_TEXT_8
-
AS400_TEXT_20
-
AS400_TEXT_1
-
AS400_TEXT_10
-
AS400_BIN8
-
AS400_BIN4
-
KEY_HEADER_LENGTH
private static final int KEY_HEADER_LENGTH- See Also:
-
cache
-
JOURNAL_REGEX
-
-
Constructor Details
-
JournalInfoRetrieval
public JournalInfoRetrieval()
-
-
Method Details
-
getCurrentPosition
- Throws:
Exception
-
getCurrentDetailedJournalReceiver
public DetailedJournalReceiver getCurrentDetailedJournalReceiver(AS400 as400, JournalInfo journalLib) throws Exception - Throws:
Exception
-
getJournal
@Deprecated public static JournalInfo getJournal(AS400 as400, String schema) throws IllegalStateException Deprecated.- Throws:
IllegalStateException
-
getJournal
public static JournalInfo getJournal(AS400 as400, String schema, List<FileFilter> includes) throws IllegalStateException - Throws:
IllegalStateException
-
getJournal
- Throws:
Exception
-
getReceiver
uses the current attached journal information in the header- Parameters:
as400-journalLibrary-journalFile-- Returns:
- Throws:
Exception
-
getReceiversForJournal
private byte[] getReceiversForJournal(AS400 as400, JournalInfo journalLib, int bufSize) throws Exception - Throws:
Exception
-
getReceivers
public List<DetailedJournalReceiver> getReceivers(AS400 as400, JournalInfo journalLib) throws Exception requests the list of receivers and orders them in attach time- Parameters:
as400-journalLibrary-journalFile-- Returns:
- Throws:
Exception
-
getOffset
- Throws:
Exception
-
getReceiverDetails
private DetailedJournalReceiver getReceiverDetails(AS400 as400, JournalReceiverInfo receiverInfo) throws Exception - Parameters:
as400-receiverInfo-- Returns:
- Throws:
Exception
-
callServiceProgramParams
public static <T> T callServiceProgramParams(AS400 as400, String programLibrary, String program, ProgramParameter[] parameters, JournalInfoRetrieval.ProcessDataAllParamaterData<T> processor) throws Exception - Type Parameters:
T- return type of processor- Parameters:
as400-programLibrary-program-parameters- assumes first parameter is outputprocessor-- Returns:
- output of processor
- Throws:
Exception
-
callServiceProgram
public static <T> T callServiceProgram(AS400 as400, String programLibrary, String program, ProgramParameter[] parameters, JournalInfoRetrieval.ProcessFirstParamaterData<T> processor) throws Exception - Type Parameters:
T- return type of processor- Parameters:
as400-programLibrary-program-parameters- assumes first parameter is outputprocessor-- Returns:
- output of processor
- Throws:
Exception
-
decodeInt
-
decodeLong
-
decodeString
-
padRight
-
decodeBigIntFromString
-