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 final AS400Bin4private final AS400Bin8private final AS400Textprivate final AS400Textprivate final AS400Textprivate 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) decodeBigIntFromString(byte[] data, int offset) decodeInt(byte[] data, int offset) decodeLong(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.getJournal(AS400 as400, String schema, String table) getJournal(AS400 as400, String schema, List<FileFilter> includes) (package private) DetailedJournalReceivergetOffset(AS400 as400, JournalReceiver receiver) getReceiver(AS400 as400, JournalInfo journalLib) uses the current attached journal information in the headergetReceiverDetails(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 -
as400Text8
-
as400Text20
-
as400Text1
-
as400Text10
-
as400Bin8
-
as400Bin4
-
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 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
public 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
-