org.resteasy.plugins.server.grizzly
Class GrizzlyServer

java.lang.Object
  extended by org.resteasy.plugins.server.grizzly.GrizzlyServer
All Implemented Interfaces:
com.sun.grizzly.ControllerStateListener
Direct Known Subclasses:
GrizzlyCometServer, GrizzlyHttpServletServer

public abstract class GrizzlyServer
extends java.lang.Object
implements com.sun.grizzly.ControllerStateListener

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  int port
           
protected  com.sun.grizzly.http.SelectorThread selectorThread
           
protected  java.util.concurrent.CountDownLatch start
           
protected  java.util.concurrent.CountDownLatch stop
           
 
Constructor Summary
GrizzlyServer()
           
 
Method Summary
 int getPort()
           
protected abstract  void initSelectorThread()
           
 void onException(java.lang.Throwable throwable)
           
 void onReady()
           
 void onStarted()
           
 void onStopped()
           
 void setPort(int port)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

protected int port

selectorThread

protected com.sun.grizzly.http.SelectorThread selectorThread

start

protected java.util.concurrent.CountDownLatch start

stop

protected java.util.concurrent.CountDownLatch stop
Constructor Detail

GrizzlyServer

public GrizzlyServer()
Method Detail

getPort

public int getPort()

setPort

public void setPort(int port)

onStarted

public void onStarted()
Specified by:
onStarted in interface com.sun.grizzly.ControllerStateListener

onReady

public void onReady()
Specified by:
onReady in interface com.sun.grizzly.ControllerStateListener

onStopped

public void onStopped()
Specified by:
onStopped in interface com.sun.grizzly.ControllerStateListener

onException

public void onException(java.lang.Throwable throwable)
Specified by:
onException in interface com.sun.grizzly.ControllerStateListener

stop

public void stop()

start

public void start()
           throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

initSelectorThread

protected abstract void initSelectorThread()
                                    throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException


Copyright © 2008. All Rights Reserved.