|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.AGIServerThread
public class AGIServerThread
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.
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 |
---|
public AGIServerThread()
Method Detail |
---|
public void setAgiServer(AGIServer agiServer)
agiServer
- the AGIServer to run.public void startup()
public void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |