public class CommandEncoder extends AbstractStreamEncoder<MasterProcessCommand> implements AutoCloseable
| Constructor and Description |
|---|
CommandEncoder(WritableByteChannel out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected byte[] |
enumToByteArray(MasterProcessCommand masterProcessCommand) |
protected Charset |
getCharset() |
protected byte[] |
getEncodedCharsetName() |
protected byte[] |
getEncodedMagicNumber() |
protected CharsetEncoder |
newCharsetEncoder() |
void |
sendByeAck() |
void |
sendNoop() |
void |
sendRunClass(String testClassName) |
void |
sendShutdown(String shutdownData) |
void |
sendSkipSinceNextTest() |
void |
sendTestSetFinished() |
encode, encode, encodeCharset, encodeHeader, encodeHeader, encodeInteger, encodeString, estimateBufferLength, writepublic CommandEncoder(WritableByteChannel out)
public void sendRunClass(String testClassName) throws IOException
IOExceptionpublic void sendTestSetFinished()
throws IOException
IOExceptionpublic void sendSkipSinceNextTest()
throws IOException
IOExceptionpublic void sendShutdown(String shutdownData) throws IOException
IOExceptionpublic void sendNoop()
throws IOException
IOExceptionpublic void sendByeAck()
throws IOException
IOException@Nonnull protected final byte[] getEncodedMagicNumber()
getEncodedMagicNumber in class AbstractStreamEncoder<MasterProcessCommand>@Nonnull protected final byte[] enumToByteArray(MasterProcessCommand masterProcessCommand)
enumToByteArray in class AbstractStreamEncoder<MasterProcessCommand>@Nonnull protected final byte[] getEncodedCharsetName()
getEncodedCharsetName in class AbstractStreamEncoder<MasterProcessCommand>@Nonnull protected final Charset getCharset()
getCharset in class AbstractStreamEncoder<MasterProcessCommand>@Nonnull protected final CharsetEncoder newCharsetEncoder()
newCharsetEncoder in class AbstractStreamEncoder<MasterProcessCommand>public void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.