|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.communication.StreamSender
public class StreamSender
Class that manages the sending of messages to a server.
| Constructor Summary | |
|---|---|
StreamSender(OutputStream outputStream)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
isShutdown()
Return whether we are shutdown. |
void |
send(Message message)
Send the given message. |
void |
shutdown()
Cleanly shutdown the Sender. |
protected void |
writeMessage(Message message)
Send a message. |
protected static void |
writeMessageToStream(Message message,
OutputStream stream)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamSender(OutputStream outputStream)
outputStream - The output stream to write to.| Method Detail |
|---|
protected final void writeMessage(Message message)
throws IOException
message - The message.
IOException - If an error occurs.public void shutdown()
Sender. Ignore most errors,
connection has probably been reset by peer.
shutdown in interface Sender
public final void send(Message message)
throws CommunicationException
send in interface Sendermessage - A Message.
CommunicationException - If an error occurs.
protected static final void writeMessageToStream(Message message,
OutputStream stream)
throws IOException
IOExceptionpublic boolean isShutdown()
true if and only if we are shut down.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||