com.sun.grizzly.standalone.framework
Class Example_1_Client
java.lang.Object
com.sun.grizzly.standalone.framework.Example_1_Client
public class Example_1_Client
- extends java.lang.Object
An example of How-To write a "Custom Protocol" with Grizzly.
Just shows an simple Example of how the CustomProtocol Layer can be used.
This Example_1_Server goes in pair with this Example_1_Client
- Version:
- 1.0
- Author:
- John Vieten 21.06.2008
|
Field Summary |
protected static java.util.logging.Logger |
logger
|
|
Constructor Summary |
Example_1_Client(java.lang.String name,
java.util.concurrent.CountDownLatch finishedLatch)
|
Example_1_Client(java.lang.String name,
java.util.concurrent.CountDownLatch finishedLatch,
SSLConfig sslConfig)
|
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
start()
|
void |
stop()
|
void |
write(java.lang.Object[] params,
java.io.OutputStream stream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static java.util.logging.Logger logger
Example_1_Client
public Example_1_Client(java.lang.String name,
java.util.concurrent.CountDownLatch finishedLatch)
Example_1_Client
public Example_1_Client(java.lang.String name,
java.util.concurrent.CountDownLatch finishedLatch,
SSLConfig sslConfig)
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
write
public void write(java.lang.Object[] params,
java.io.OutputStream stream)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011 Oracle Corporation. All Rights Reserved.