net.sf.asterisk.fastagi
Class AGIServerThread

java.lang.Object
  extended by net.sf.asterisk.fastagi.AGIServerThread

public class AGIServerThread
extends java.lang.Object

Runs an AGIServer in a separate Thread.
You can use this class to run an AGIServer in the background of your application or run it in your webcontainer or application server.

Since:
0.2
Version:
$Id: AGIServerThread.java,v 1.2 2005/10/25 22:26:21 srt Exp $
Author:
srt

Constructor Summary
AGIServerThread()
           
 
Method Summary
 void setAgiServer(AGIServer agiServer)
          Sets the AGIServer to run.
 void shutdown()
          Stops the AGIServer.
 void startup()
          Starts the AGIServer in its own thread.
Note: The AGIServerThread is designed to handle on AGIServer instance at a time so calling this method twice without stopping the AGIServer in between will result in a RuntimeException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGIServerThread

public AGIServerThread()
Method Detail

setAgiServer

public void setAgiServer(AGIServer agiServer)
Sets the AGIServer to run.

Parameters:
agiServer - the AGIServer to run.

startup

public void startup()
Starts the AGIServer in its own thread.
Note: The AGIServerThread is designed to handle on AGIServer instance at a time so calling this method twice without stopping the AGIServer in between will result in a RuntimeException.


shutdown

public void shutdown()
Stops the AGIServer.



Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.