konark.manager
Class ConfigObject

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

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

See Also:
Serialized Form

Constructor Summary
ConfigObject()
           
 
Method Summary
 void addChangeListener(ConfigObjectChangeListener cl)
           
 void addDetector(ajanta.naming.URN agentURN, java.lang.String eventDetector, java.lang.String eventHandler)
           
 void addSubscriberAgentInfo(SubscriberEntry s)
           
 void addSubscription(ajanta.naming.URN monitorURN, ajanta.naming.URN subscriberURN, java.lang.String event, java.lang.String handler)
           
 void addSubscription(ajanta.naming.URN monitorURN, ajanta.naming.URN subscriberURN, java.util.Vector eventList)
           
 java.util.Hashtable createAgentHashtableForSmsFD()
           
 void createMonitorSubscriberTable()
           
 void deleteAgentEntry(ajanta.naming.URN agentURN)
          UPDATE METHODS
 SubscriberEntry getAgentEntry(ajanta.naming.URN agentURN)
           
 java.util.Hashtable getAgentHashtable()
           
 java.util.Hashtable getAgentHashtableForSmsFD()
           
 java.util.Hashtable getAgentInfo()
           
 AgentStatus getAgentStatus(ajanta.naming.URN agentURN)
           
 java.lang.String getCheckPointBaseDir()
           
 java.lang.String getCheckPointFile()
           
 SubscriberEntry getDefaultSubEntry()
           
 ajanta.naming.URN getDefaultURN()
           
 java.util.Vector getDetectors(ajanta.naming.URN agentURN)
           
 java.util.Vector getEventList(ajanta.naming.URN subscriberURN, ajanta.naming.URN publisherURN)
           
 java.util.Vector getFailureDetectionAgents()
           
 java.lang.String getHandle()
           
 java.util.Vector getPatternVector()
           
 java.util.Vector getPublishers(ajanta.naming.URN agentURN)
           
 boolean getRunStatus()
           
 java.lang.String getSMSAgentName()
           
 java.lang.String getSMSAgentURL()
           
 java.util.Vector getSubscribers(ajanta.naming.URN agentURN)
           
 java.lang.Object getSystemValue(java.lang.String v)
           
 boolean getSystemValueChangedFlag()
           
 java.util.Hashtable getURNeventTableForEvents(java.util.Vector events)
           
 java.util.Vector getURNlistForDetector(java.lang.String detName)
          QUERY METHODS
 void initialize()
           
 boolean isFailureAgent(ajanta.naming.URN agentURN)
           
static void main(java.lang.String[] args)
           
 void removeAllChangeListeners()
           
 void removeDetector(ajanta.naming.URN agentURN, java.lang.String eventDetector)
           
 void removeSubscription(ajanta.naming.URN monitorURN, ajanta.naming.URN subscriberURN, java.lang.String event)
           
 void removeSubscription(ajanta.naming.URN monitorURN, ajanta.naming.URN subscriberURN, java.util.Vector eventList)
           
 void saveToFiles(java.io.File baseDir, java.lang.String baseName)
           
 void setDefaultSubscriberEntry(SubscriberEntry s)
           
 void setHandle(java.lang.String s)
           
 void setPatternVector(java.util.Vector s)
           
 java.lang.String toString()
           
 void updateSystemValues(java.lang.String systemValueKey, java.lang.Object systemValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigObject

public ConfigObject()
Method Detail

removeAllChangeListeners

public void removeAllChangeListeners()

addChangeListener

public void addChangeListener(ConfigObjectChangeListener cl)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

saveToFiles

public void saveToFiles(java.io.File baseDir,
                        java.lang.String baseName)
                 throws java.lang.Exception
Throws:
java.lang.Exception

deleteAgentEntry

public void deleteAgentEntry(ajanta.naming.URN agentURN)
                      throws java.lang.Exception
UPDATE METHODS

Throws:
java.lang.Exception

removeDetector

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

addDetector

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

addSubscriberAgentInfo

public void addSubscriberAgentInfo(SubscriberEntry s)

setPatternVector

public void setPatternVector(java.util.Vector s)

setDefaultSubscriberEntry

public void setDefaultSubscriberEntry(SubscriberEntry s)

updateSystemValues

public void updateSystemValues(java.lang.String systemValueKey,
                               java.lang.Object systemValue)
                        throws configException
Throws:
configException

initialize

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

addSubscription

public void addSubscription(ajanta.naming.URN monitorURN,
                            ajanta.naming.URN subscriberURN,
                            java.lang.String event,
                            java.lang.String handler)
                     throws java.lang.Exception
Throws:
java.lang.Exception

addSubscription

public void addSubscription(ajanta.naming.URN monitorURN,
                            ajanta.naming.URN subscriberURN,
                            java.util.Vector eventList)
                     throws java.lang.Exception
Throws:
java.lang.Exception

removeSubscription

public void removeSubscription(ajanta.naming.URN monitorURN,
                               ajanta.naming.URN subscriberURN,
                               java.lang.String event)
                        throws java.lang.Exception
Throws:
java.lang.Exception

removeSubscription

public void removeSubscription(ajanta.naming.URN monitorURN,
                               ajanta.naming.URN subscriberURN,
                               java.util.Vector eventList)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getURNlistForDetector

public java.util.Vector getURNlistForDetector(java.lang.String detName)
QUERY METHODS


getURNeventTableForEvents

public java.util.Hashtable getURNeventTableForEvents(java.util.Vector events)

getRunStatus

public boolean getRunStatus()

getEventList

public java.util.Vector getEventList(ajanta.naming.URN subscriberURN,
                                     ajanta.naming.URN publisherURN)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getSystemValueChangedFlag

public boolean getSystemValueChangedFlag()

getAgentInfo

public java.util.Hashtable getAgentInfo()

getSubscribers

public java.util.Vector getSubscribers(ajanta.naming.URN agentURN)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getPublishers

public java.util.Vector getPublishers(ajanta.naming.URN agentURN)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getPatternVector

public java.util.Vector getPatternVector()

getFailureDetectionAgents

public java.util.Vector getFailureDetectionAgents()

getAgentStatus

public AgentStatus getAgentStatus(ajanta.naming.URN agentURN)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultSubEntry

public SubscriberEntry getDefaultSubEntry()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultURN

public ajanta.naming.URN getDefaultURN()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getSystemValue

public java.lang.Object getSystemValue(java.lang.String v)

getAgentEntry

public SubscriberEntry getAgentEntry(ajanta.naming.URN agentURN)
                              throws java.lang.Exception
Throws:
java.lang.Exception

isFailureAgent

public boolean isFailureAgent(ajanta.naming.URN agentURN)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getCheckPointBaseDir

public java.lang.String getCheckPointBaseDir()

getCheckPointFile

public java.lang.String getCheckPointFile()

getSMSAgentName

public java.lang.String getSMSAgentName()

getSMSAgentURL

public java.lang.String getSMSAgentURL()

getAgentHashtable

public java.util.Hashtable getAgentHashtable()

getAgentHashtableForSmsFD

public java.util.Hashtable getAgentHashtableForSmsFD()

getDetectors

public java.util.Vector getDetectors(ajanta.naming.URN agentURN)
                              throws java.lang.Exception
Throws:
java.lang.Exception

createAgentHashtableForSmsFD

public java.util.Hashtable createAgentHashtableForSmsFD()

createMonitorSubscriberTable

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

setHandle

public void setHandle(java.lang.String s)

getHandle

public java.lang.String getHandle()

toString

public java.lang.String toString()