mConfig = config;
}
private void init() throws Exception {
mOffsetTracker = new OffsetTracker();
mMessageReader = new MessageReader(mConfig, mOffsetTracker);
FileRegistry fileRegistry = new FileRegistry(mConfig);
mMessageWriter = new MessageWriter(mConfig, mOffsetTracker, fileRegistry);
mMessageParser = (MessageParser) ReflectionUtil.createMessageParser(
mConfig.getMessageParserClass(), mConfig);
mUploader = new Uploader(mConfig, mOffsetTracker, fileRegistry);