Process function ( ) { return this . processBuilder . start ( ) ; }
the processbuilder class is final so not easily mocked . we wrap the only interaction we have with it inthis package level method to permit unit testing . concode_field_sep Process process concode_elem_sep Log LOG concode_elem_sep ExecutorService executorService concode_elem_sep DrainChildSTDERRTask readSTDERRTask concode_elem_sep int EXIT_VALUE concode_elem_sep String shardId concode_elem_sep MessageReader messageReader concode_elem_sep Future<?> stderrReadTask concode_elem_sep MultiLangProtocol protocol concode_elem_sep ObjectMapper objectMapper concode_elem_sep ProcessBuilder processBuilder concode_elem_sep boolean initialized concode_elem_sep ProcessState state concode_elem_sep MessageWriter messageWriter concode_field_sep void safelyWaitOnFuture concode_elem_sep void exit concode_elem_sep void processRecords concode_elem_sep void safelyCloseInputStream concode_elem_sep void stopProcessing concode_elem_sep void initialize concode_elem_sep void childProcessShutdownSequence concode_elem_sep void shutdown