Public Member Functions | |
| void | interruptThreadOnExpectedOutput (Thread thread, String expectedRegex) |
| void | run () |
Protected Member Functions | |
| Reader (InputStream sourceStream) | |
Protected Attributes | |
| Thread | interruptableThread |
| Pattern | expectedOutput |
| InputStream | sourceStream |
Reads a process's streams. Can notify a suspended thread if a specified piece of output (as regex) occurs.
| alma.acs.commandcenter.engine.NativeCommand.Reader.Reader | ( | InputStream | sourceStream | ) | [protected] |
| void alma.acs.commandcenter.engine.NativeCommand.Reader.interruptThreadOnExpectedOutput | ( | Thread | thread, | |
| String | expectedRegex | |||
| ) |
| thread | this parameter is actually redundant but makes things clearer |
References alma.acs.commandcenter.engine.NativeCommand.Reader.expectedOutput, and alma.acs.commandcenter.engine.NativeCommand.Reader.interruptableThread.
Referenced by alma.acs.commandcenter.engine.NativeCommand.run().
| void alma.acs.commandcenter.engine.NativeCommand.Reader.run | ( | ) |
References alma.acs.commandcenter.engine.NativeCommand.Reader.expectedOutput, alma.acs.commandcenter.engine.NativeCommand.fireOutputWritten(), alma.acs.commandcenter.engine.NativeCommand.Reader.interruptableThread, alma.acs.commandcenter.engine.NativeCommand.log, and alma.acs.commandcenter.engine.NativeCommand.Reader.sourceStream.
Pattern alma.acs.commandcenter.engine.NativeCommand.Reader.expectedOutput [protected] |
Thread alma.acs.commandcenter.engine.NativeCommand.Reader.interruptableThread [protected] |
InputStream alma.acs.commandcenter.engine.NativeCommand.Reader.sourceStream [protected] |
Referenced by alma.acs.commandcenter.engine.NativeCommand.Reader.run().
1.7.0