konark.manager
Class SubscriberEntry

java.lang.Object
  extended bykonark.manager.SubscriberEntry
All Implemented Interfaces:
java.io.Serializable

public class SubscriberEntry
extends java.lang.Object
implements java.io.Serializable

SubscriberEntry class is a container for subscriber agent information.

See Also:
Serialized Form

Field Summary
 boolean agentAlivePublisher
           
 ajanta.naming.URN agentURN
          URN of the subscriber agent
 java.lang.String config_file
           
 java.lang.String dbpasswd
          Database related parameters
 java.lang.String dburl
          Database related parameters
 java.lang.String dbuserName
          Database related parameters
 boolean failureAgent
           
 java.lang.String host_file
           
 ajanta.naming.URN hostURN
          URN of the agent server hosting the subscriber agent
 int interval
          Iteniary-agent specific info
 boolean itinAgent
           
 java.util.Hashtable localTriggerTable
          Triggering dependancies hash table
 java.util.Hashtable monAgTable
          Hashtable of the monitor agents subscribed and their properties
 java.util.Hashtable monitoredEvents
          key is the detector name and value is EventInfo
 java.lang.String pattern
           
 java.util.Hashtable remoteTriggerTable
           
 boolean smsAgent
           
 AgentStatus status
           
 
Constructor Summary
SubscriberEntry(ajanta.naming.URN agURN, int interval, java.lang.String config_file, java.lang.String host_file, java.lang.String pattern)
           
SubscriberEntry(ajanta.naming.URN agURN, ajanta.naming.URN hURN, java.lang.String dburl, java.lang.String dbuserName, java.lang.String dbpasswd, java.lang.String bluetoothLog, java.lang.String rfidLog, java.lang.String gpsLog, java.lang.String agClass)
          Constructor for the subscriber entry
 
Method Summary
 void addDetector(java.lang.String eventDetector, java.lang.String eventHandler)
           
 void addSubscription(ajanta.naming.URN agentURN, java.lang.String eventName, java.lang.String eventHandler)
           
 boolean equals(java.lang.Object object)
          Tests for the equality of an object with MonitorEntry
 java.lang.String getBlueToothLogFileLocation()
           
 java.lang.String getClassName()
           
 java.util.Hashtable getDetectors()
           
 java.lang.String getGPSLogFileLocation()
           
 java.lang.Object getLocalEvents(java.lang.String key)
          Method that returns the list of triggering events
 java.lang.Object getRemoteEvents(java.lang.String key)
           
 java.lang.String getRFIDLogFileLocation()
           
 void removeDetector(java.lang.String eventDetector)
           
 void removeSubscription(ajanta.naming.URN agentURN, java.lang.String eventName)
           
 void setTriggerTable(java.util.Hashtable localTriggerTable, java.util.Hashtable remoteTriggerTable)
          Method that sets the trigger table
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

itinAgent

public boolean itinAgent

agentURN

public ajanta.naming.URN agentURN
URN of the subscriber agent


hostURN

public ajanta.naming.URN hostURN
URN of the agent server hosting the subscriber agent


monAgTable

public java.util.Hashtable monAgTable
Hashtable of the monitor agents subscribed and their properties


dburl

public java.lang.String dburl
Database related parameters


dbuserName

public java.lang.String dbuserName
Database related parameters


dbpasswd

public java.lang.String dbpasswd
Database related parameters


monitoredEvents

public java.util.Hashtable monitoredEvents
key is the detector name and value is EventInfo


failureAgent

public boolean failureAgent

agentAlivePublisher

public boolean agentAlivePublisher

smsAgent

public boolean smsAgent

status

public AgentStatus status

localTriggerTable

public java.util.Hashtable localTriggerTable
Triggering dependancies hash table


remoteTriggerTable

public java.util.Hashtable remoteTriggerTable

interval

public int interval
Iteniary-agent specific info


config_file

public java.lang.String config_file

host_file

public java.lang.String host_file

pattern

public java.lang.String pattern
Constructor Detail

SubscriberEntry

public SubscriberEntry(ajanta.naming.URN agURN,
                       ajanta.naming.URN hURN,
                       java.lang.String dburl,
                       java.lang.String dbuserName,
                       java.lang.String dbpasswd,
                       java.lang.String bluetoothLog,
                       java.lang.String rfidLog,
                       java.lang.String gpsLog,
                       java.lang.String agClass)
Constructor for the subscriber entry

Parameters:
agURN - URN of the subscriber agent
hURN - URN of the agent server hosting the subscriber agent
dburl - URL of the database engine
dbuserName - Username for login to the database
dbpasswd - Password for dbuserName

SubscriberEntry

public SubscriberEntry(ajanta.naming.URN agURN,
                       int interval,
                       java.lang.String config_file,
                       java.lang.String host_file,
                       java.lang.String pattern)
Method Detail

getClassName

public java.lang.String getClassName()

getBlueToothLogFileLocation

public java.lang.String getBlueToothLogFileLocation()

getRFIDLogFileLocation

public java.lang.String getRFIDLogFileLocation()

getGPSLogFileLocation

public java.lang.String getGPSLogFileLocation()

addDetector

public void addDetector(java.lang.String eventDetector,
                        java.lang.String eventHandler)
                 throws java.lang.Exception
Throws:
java.lang.Exception

removeDetector

public void removeDetector(java.lang.String eventDetector)
                    throws java.lang.Exception
Throws:
java.lang.Exception

addSubscription

public void addSubscription(ajanta.naming.URN agentURN,
                            java.lang.String eventName,
                            java.lang.String eventHandler)
                     throws java.lang.Exception
Throws:
java.lang.Exception

removeSubscription

public void removeSubscription(ajanta.naming.URN agentURN,
                               java.lang.String eventName)
                        throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Returns:
a string representation of the object

equals

public boolean equals(java.lang.Object object)
Tests for the equality of an object with MonitorEntry

Parameters:
object - Object to compared

setTriggerTable

public void setTriggerTable(java.util.Hashtable localTriggerTable,
                            java.util.Hashtable remoteTriggerTable)
Method that sets the trigger table


getLocalEvents

public java.lang.Object getLocalEvents(java.lang.String key)
Method that returns the list of triggering events

Parameters:
key -

getRemoteEvents

public java.lang.Object getRemoteEvents(java.lang.String key)

getDetectors

public java.util.Hashtable getDetectors()