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, write
public CommandEncoder(WritableByteChannel out)
public void sendRunClass(String testClassName) throws IOException
IOException
public void sendTestSetFinished() throws IOException
IOException
public void sendSkipSinceNextTest() throws IOException
IOException
public void sendShutdown(String shutdownData) throws IOException
IOException
public void sendNoop() throws IOException
IOException
public 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 AutoCloseable
IOException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.