kaos.notification
Class KaosAgent

java.lang.Object
  extended by kaos.notification.KaosAgent
Direct Known Subclasses:
TestMonitor

public class KaosAgent
extends java.lang.Object


Field Summary
protected  AgentDirectoryService _ads
           
protected  KAoSAgentDescription _agentDesc
           
protected  AgentName _agentName
           
protected  java.lang.String _agentNickname
           
protected  AgentNamingService _ans
           
protected  java.lang.String _domainName
           
protected  KAoSGuard _guard
           
protected  KAoSAgentDirectoryServiceProxy _kadsp
           
protected  boolean _kaosEnabled
           
protected  Locator _lctr
           
protected  Logger _logger
           
protected  int _msgTransport
           
protected  MessageTransportService _mts
           
protected  KAoSServiceRoot _sr
           
static int COABSGRID_TRANSPORT
           
static int CORBA_TRANSPORT
           
static int TCP_TRANSPORT
           
 
Constructor Summary
KaosAgent()
           
 
Method Summary
protected  void assertFalse(boolean exp, java.lang.String msg)
           
protected  void assertTrue(boolean exp, java.lang.String msg)
           
 boolean equals(java.lang.Object obj)
           
protected  KAoSAgentDescription getAgentDescription()
           
 KAoSAgentDirectoryServiceProxy getDirectoryService()
           
 java.lang.String getDomainName()
           
 int hashCode()
           
 void initialize(java.lang.String domainName, java.lang.String agentNickname, java.lang.String parentDomainName)
           
protected  void logMessage(java.lang.String msg, int logLevel)
           
protected  void logMessage(java.lang.String msg, java.lang.Throwable t, int logLevel)
           
static void main(java.lang.String[] args)
           
protected  void printTransportMessage(TransportMessage tmsg)
           
 void receiveMessage(TransportMessage tmsg)
           
 void registerWithKaos()
           
protected  void removeAgent()
           
 void sendMessageTo(java.lang.String receiverName, java.lang.Object message)
           
 void start(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sr

protected KAoSServiceRoot _sr

_ans

protected AgentNamingService _ans

_agentName

protected AgentName _agentName

_mts

protected MessageTransportService _mts

_ads

protected AgentDirectoryService _ads

_kadsp

protected KAoSAgentDirectoryServiceProxy _kadsp

_agentDesc

protected KAoSAgentDescription _agentDesc

_agentNickname

protected java.lang.String _agentNickname

_logger

protected Logger _logger

_kaosEnabled

protected boolean _kaosEnabled

_guard

protected KAoSGuard _guard

_domainName

protected java.lang.String _domainName

_lctr

protected Locator _lctr

_msgTransport

protected int _msgTransport

CORBA_TRANSPORT

public static final int CORBA_TRANSPORT
See Also:
Constant Field Values

COABSGRID_TRANSPORT

public static final int COABSGRID_TRANSPORT
See Also:
Constant Field Values

TCP_TRANSPORT

public static final int TCP_TRANSPORT
See Also:
Constant Field Values
Constructor Detail

KaosAgent

public KaosAgent()
Method Detail

main

public static void main(java.lang.String[] args)

start

public void start(java.lang.String[] args)

getDomainName

public java.lang.String getDomainName()

initialize

public void initialize(java.lang.String domainName,
                       java.lang.String agentNickname,
                       java.lang.String parentDomainName)
                throws java.lang.Exception
Throws:
java.lang.Exception

registerWithKaos

public void registerWithKaos()
                      throws java.lang.Exception
Throws:
java.lang.Exception

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getAgentDescription

protected KAoSAgentDescription getAgentDescription()

getDirectoryService

public KAoSAgentDirectoryServiceProxy getDirectoryService()

removeAgent

protected void removeAgent()

receiveMessage

public void receiveMessage(TransportMessage tmsg)

sendMessageTo

public void sendMessageTo(java.lang.String receiverName,
                          java.lang.Object message)

assertTrue

protected void assertTrue(boolean exp,
                          java.lang.String msg)
                   throws java.lang.Exception
Throws:
java.lang.Exception

assertFalse

protected void assertFalse(boolean exp,
                           java.lang.String msg)
                    throws java.lang.Exception
Throws:
java.lang.Exception

printTransportMessage

protected void printTransportMessage(TransportMessage tmsg)

logMessage

protected void logMessage(java.lang.String msg,
                          int logLevel)

logMessage

protected void logMessage(java.lang.String msg,
                          java.lang.Throwable t,
                          int logLevel)