public abstract class JnlpProtocol extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GREETING_SUCCESS |
protected String |
secretKey |
protected String |
slaveName |
Modifier | Constructor and Description |
---|---|
protected |
JnlpProtocol(String secretKey,
String slaveName) |
Modifier and Type | Method and Description |
---|---|
abstract String |
getName()
Get the name of the protocol.
|
abstract String |
performHandshake(DataOutputStream outputStream,
BufferedInputStream inputStream)
Performs a handshake with the master.
|
protected final String secretKey
protected final String slaveName
public static final String GREETING_SUCCESS
public abstract String getName()
public abstract String performHandshake(DataOutputStream outputStream, BufferedInputStream inputStream) throws IOException
outputStream
- The stream to write into to initiate the handshake.inputStream
- The stream to read responses from the master.IOException
Copyright © 2015. All rights reserved.