|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
zeus.actors.Server
zeus.actors.intrays.FIPA_2000_HTTP_Server
This is an extention of the Server class which provides an "InTray" service for HTTP transports. It will read messages from a http connection and will then call a the handle method in the FIPA_2000_Handler object that was used to init it.
| Field Summary | |
protected AgentContext |
context
|
private java.io.File |
file
|
private FIPA_2000_Handler |
handler
|
private java.lang.String |
host
|
private java.io.FileWriter |
log
|
private Queue |
msgQ
|
private java.lang.String |
name
|
private ZeusParser |
parser
|
private java.lang.String |
port
|
| Fields inherited from class zeus.actors.Server |
address, connection_count, DEFAULT_PORT_MAX, DEFAULT_PORT_MIN, inMail, listenSocket, MAX_CONNECTIONS, MAX_QUEUE_LENGTH, mbox, msgHandler, processing, timeout |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
FIPA_2000_HTTP_Server(FIPA_2000_Handler handler,
java.lang.String host,
java.lang.String port,
java.lang.String name,
java.lang.String threadId)
|
|
| Method Summary | |
void |
debug(java.lang.String str)
|
java.lang.String |
getResponseAddress()
returns http://host:port/name |
static void |
main(java.lang.String[] argv)
main method for testing only - not for user applications |
FIPAPerformative |
pop()
|
void |
run()
this is the method that gets stuff off the q and sends it to the handler for processing |
| Methods inherited from class zeus.actors.Server |
finalize, getAddress, getAgentContext, lowerStatus, newMsg, normalStatus, stopProcessing, updateCount |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AgentContext context
private Queue msgQ
private ZeusParser parser
private FIPA_2000_Handler handler
private java.lang.String host
private java.lang.String port
private java.lang.String name
private java.io.File file
private java.io.FileWriter log
| Constructor Detail |
public FIPA_2000_HTTP_Server(FIPA_2000_Handler handler,
java.lang.String host,
java.lang.String port,
java.lang.String name,
java.lang.String threadId)
| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class Serverpublic FIPAPerformative pop()
public java.lang.String getResponseAddress()
getResponseAddress in interface InTraygetResponseAddress in class Serverpublic static void main(java.lang.String[] argv)
public void debug(java.lang.String str)
debug in class Server
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||