com.sun.grizzly.standalone.framework
Class Example_1_Client

java.lang.Object
  extended by com.sun.grizzly.standalone.framework.Example_1_Client

public class Example_1_Client
extends 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 Logger logger
           
 
Constructor Summary
Example_1_Client(String name, CountDownLatch finishedLatch)
           
Example_1_Client(String name, CountDownLatch finishedLatch, SSLConfig sslConfig)
           
 
Method Summary
static void main(String[] args)
           
 void start()
           
 void stop()
           
 void write(Object[] params, OutputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static Logger logger
Constructor Detail

Example_1_Client

public Example_1_Client(String name,
                        CountDownLatch finishedLatch)

Example_1_Client

public Example_1_Client(String name,
                        CountDownLatch finishedLatch,
                        SSLConfig sslConfig)
Method Detail

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

write

public void write(Object[] params,
                  OutputStream stream)
           throws IOException
Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.