|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.notification.KaosAgent
public class KaosAgent
| 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 Guard |
_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
|
static java.lang.String |
TRANSPORT_PROPERTY_KEY
|
| Constructor Summary | |
|---|---|
KaosAgent()
|
|
| Method Summary | |
|---|---|
protected void |
assertFalse(boolean exp,
java.lang.String msg)
Utility method: if exp is not false, then an Exception is generated using the provided message (msg) and then thrown. |
protected void |
assertTrue(boolean exp,
java.lang.String msg)
Utility method: if exp is not true, then an Exception is generated using the provided message (msg) and then thrown. |
boolean |
equals(java.lang.Object obj)
Two use-cases are equal if their respective hash codes are equal. |
protected KAoSAgentDescription |
getAgentDescription()
Creates a new AgentDescription for this Usecase. |
KAoSAgentDirectoryServiceProxy |
getDirectoryService()
|
java.lang.String |
getDomainName()
|
int |
hashCode()
Determines the hash code for the use-case. |
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)
Implements the receiveMessage method mandated by the MessageListener interface. |
void |
registerWithKaos()
This method registers with KAoS |
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 |
|---|
protected KAoSServiceRoot _sr
protected AgentNamingService _ans
protected AgentName _agentName
protected MessageTransportService _mts
protected AgentDirectoryService _ads
protected KAoSAgentDirectoryServiceProxy _kadsp
protected KAoSAgentDescription _agentDesc
protected java.lang.String _agentNickname
protected Logger _logger
protected boolean _kaosEnabled
protected Guard _guard
protected java.lang.String _domainName
protected Locator _lctr
protected int _msgTransport
public static final int CORBA_TRANSPORT
public static final int COABSGRID_TRANSPORT
public static final int TCP_TRANSPORT
public static final java.lang.String TRANSPORT_PROPERTY_KEY
| Constructor Detail |
|---|
public KaosAgent()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void start(java.lang.String[] args)
public java.lang.String getDomainName()
public void initialize(java.lang.String domainName,
java.lang.String agentNickname,
java.lang.String parentDomainName)
throws java.lang.Exception
java.lang.Exception
public void registerWithKaos()
throws java.lang.Exception
java.lang.Exceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjecthashCode(),
"JAS Specification, Section(s) 4.7.2"public int hashCode()
super.hashCode()
.
hashCode in class java.lang.ObjectAgentName#hashCode,
Object.hashCode(),
"JAS Specification, Section(s) 4.7.2"protected KAoSAgentDescription getAgentDescription()
AgentDescription,
AgentDirectoryService#createAgentDescription,
"JAS Specification, Section(s) 2.2.2.6, 4.5.1"public KAoSAgentDirectoryServiceProxy getDirectoryService()
protected void removeAgent()
public void receiveMessage(TransportMessage tmsg)
MessageListener,
TransportMessage,
"JAS Specification, Section(s) 3.4.2, 4.7.2"
public void sendMessageTo(java.lang.String receiverName,
java.lang.Object message)
protected void assertTrue(boolean exp,
java.lang.String msg)
throws java.lang.Exception
java.lang.Exception - if exp is false.
protected void assertFalse(boolean exp,
java.lang.String msg)
throws java.lang.Exception
java.lang.Exception - if exp is true.protected void printTransportMessage(TransportMessage tmsg)
protected void logMessage(java.lang.String msg,
int logLevel)
protected void logMessage(java.lang.String msg,
java.lang.Throwable t,
int logLevel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||