zeus.actors.intrays
Class FIPA_97_Server

java.lang.Object
  extended byjava.lang.Thread
      extended byzeus.actors.Server
          extended byzeus.actors.intrays.FIPA_97_Server
All Implemented Interfaces:
InTray, java.lang.Runnable

public class FIPA_97_Server
extends Server
implements InTray

This is an extention of the Server class which is normally used in Zeus Instead of providing a sockets/TCPIP based transport this class provides a IIOP based transport as per the FIPA specs

Perhaps it should be called IIOP_Server?


Field Summary
protected  AgentContext context
           
private  FIPA_97_Handler handler
           
private  java.lang.String host
           
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_97_Server(FIPA_97_Handler handler, java.lang.String host, java.lang.String port, java.lang.String name, java.lang.String threadId)
           
 
Method Summary
 java.lang.String getResponseAddress()
          returns iiop://host:port/name
 java.lang.String pop()
           
 void run()
          run loop that pops a message off the Q (it will wait () if there is no message) and then sends it to the handler that was used to construct this object.
 
Methods inherited from class zeus.actors.Server
debug, 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

context

protected AgentContext context

msgQ

private Queue msgQ

parser

private ZeusParser parser

host

private java.lang.String host

port

private java.lang.String port

name

private java.lang.String name

handler

private FIPA_97_Handler handler
Constructor Detail

FIPA_97_Server

public FIPA_97_Server(FIPA_97_Handler handler,
                      java.lang.String host,
                      java.lang.String port,
                      java.lang.String name,
                      java.lang.String threadId)
Method Detail

run

public void run()
run loop that pops a message off the Q (it will wait () if there is no message) and then sends it to the handler that was used to construct this object.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class Server

pop

public java.lang.String pop()

getResponseAddress

public java.lang.String getResponseAddress()
returns iiop://host:port/name

Specified by:
getResponseAddress in interface InTray
Overrides:
getResponseAddress in class Server


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.