|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.notification.KaosAgent
kaos.notification.KaosEnforcerAgent
kaos.notification.NotifyAgent
public class NotifyAgent
| Field Summary | |
|---|---|
protected EmailClient |
_emailClient
|
protected JabberClient |
_imClient
|
protected NotifyWnd |
_notifyWnd
|
protected PagerClient |
_pagerClient
|
protected java.util.Hashtable |
_sentNotifications
|
static KAoSAgentDirectoryServiceProxy |
_staticKadsp
|
static java.lang.String |
DEFAULT_PORT
|
static java.lang.String |
LOCAL_HOST
|
| Fields inherited from class kaos.notification.KaosEnforcerAgent |
|---|
_controlledActions, _policyTriggerActions |
| Fields inherited from class kaos.notification.KaosAgent |
|---|
_ads, _agentDesc, _agentName, _agentNickname, _ans, _domainName, _guard, _kadsp, _kaosEnabled, _lctr, _logger, _msgTransport, _mts, _sr, COABSGRID_TRANSPORT, CORBA_TRANSPORT, TCP_TRANSPORT, TRANSPORT_PROPERTY_KEY |
| Constructor Summary | |
|---|---|
NotifyAgent()
|
|
| Method Summary | |
|---|---|
protected KAoSAgentDescription |
getAgentDescription()
Includes this agent as an instance of the NotificationAgent ontological class. |
static KAoSAgentDirectoryServiceProxy |
getDirectoryServiceProxy()
|
void |
initialize(java.lang.String domainName,
java.lang.String agentNickname,
java.lang.String parentDomainName)
Constructor relies on superclass to register the agent with KAoS, then initializes each mode of notification. |
static java.lang.String |
lookupAgentNickname(java.lang.String agentUUID)
|
static void |
main(java.lang.String[] args)
Start the NotificationAgent in a specified domain with the given agent nickname. |
void |
notify(NotifyRequest nReq)
Entry point to the notification process. |
void |
receiveMessage(TransportMessage tmsg)
Implements the receiveMessage method mandated by the MessageListener interface. |
protected boolean |
recipientIsURI(NotifyRequest nReq)
returns true if the recipient in the NotifyRequest is a URI, implying an ontology ref. |
protected void |
removeAgent()
Called to perform cleanup activities before the agent is terminated. |
protected void |
sendDefaultNotification(NotifyRequest nReq)
Called when the NotifyReqest includes both a recipient and a mode Sends the requested notification without checking obligation policies |
void |
updateTriggerCondition(BasicActionDescription triggerCondition)
This method is called by Guard upon receiving an obligation policy containing the specified triggerACD. |
| Methods inherited from class kaos.notification.KaosEnforcerAgent |
|---|
addEnforcedAction, checkObligations, getControlledActionClasses, getName |
| Methods inherited from class kaos.notification.KaosAgent |
|---|
assertFalse, assertTrue, equals, getDirectoryService, getDomainName, hashCode, logMessage, logMessage, printTransportMessage, registerWithKaos, sendMessageTo, start |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOCAL_HOST
public static final java.lang.String DEFAULT_PORT
protected EmailClient _emailClient
protected JabberClient _imClient
protected PagerClient _pagerClient
protected java.util.Hashtable _sentNotifications
protected NotifyWnd _notifyWnd
public static KAoSAgentDirectoryServiceProxy _staticKadsp
| Constructor Detail |
|---|
public NotifyAgent()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void initialize(java.lang.String domainName,
java.lang.String agentNickname,
java.lang.String parentDomainName)
throws java.lang.Exception
initialize in class KaosEnforcerAgentdomainName - parentDomainName - agentNickname -
java.lang.Exceptionprotected void removeAgent()
removeAgent in class KaosEnforcerAgentprotected KAoSAgentDescription getAgentDescription()
getAgentDescription in class KaosAgentAgentDescription,
AgentDirectoryService#createAgentDescription,
"JAS Specification, Section(s) 2.2.2.6, 4.5.1"public void receiveMessage(TransportMessage tmsg)
receiveMessage in class KaosAgentMessageListener,
TransportMessage,
"JAS Specification, Section(s) 3.4.2, 4.7.2"public void notify(NotifyRequest nReq)
nReq - protected void sendDefaultNotification(NotifyRequest nReq)
nReq - public void updateTriggerCondition(BasicActionDescription triggerCondition)
TriggerConditionListener
updateTriggerCondition in interface TriggerConditionListenerupdateTriggerCondition in class KaosEnforcerAgenttriggerCondition - BasicActionDescription describes the trigger condition the listener has registered for.protected boolean recipientIsURI(NotifyRequest nReq)
nReq - public static KAoSAgentDirectoryServiceProxy getDirectoryServiceProxy()
public static java.lang.String lookupAgentNickname(java.lang.String agentUUID)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||