|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.profile.util.NetworkReporter
public final class NetworkReporter
A very simple utility class used to report on a socket. This allows any number of clients to connect and listen for text encoded in the platform's default character set encoding. Note that this is intended only as a means for reporting in testing and development systems. In deployment, a more robust mechanism should be used.
| Constructor Summary | |
|---|---|
NetworkReporter(int port)
Creates an instance of NetworkReporter. |
|
| Method Summary | |
|---|---|
void |
report(String message)
Reports the provided message to all connected clients. |
void |
shutdown()
Cleans up. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkReporter(int port)
throws IOException
NetworkReporter.
port - the port on which to listen for client connections
IOException - if the server socket cannot be created| Method Detail |
|---|
public void report(String message)
message - the message to sendpublic void shutdown()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||