org.opennms.netmgt.rt
Class ReadOnlyRtConfigDao

java.lang.Object
  extended by org.opennms.netmgt.rt.ReadOnlyRtConfigDao
All Implemented Interfaces:
RtConfigDao
Direct Known Subclasses:
SupportRtConfigDao

public class ReadOnlyRtConfigDao
extends Object
implements RtConfigDao


Constructor Summary
ReadOnlyRtConfigDao()
           
 
Method Summary
protected  void clearCache()
           
 String getBaseURL()
           
 String getCancelledStatus()
           
 String getClosedStatus()
           
protected  String getFile()
           
 String getOpenStatus()
           
 String getPassword()
           
protected  String getPrefix()
           
protected  org.apache.commons.configuration.Configuration getProperties()
          Retrieves the properties defined in the rt.properties file.
 String getQueue()
           
 String getRequestor()
           
 int getRetry()
           
protected  String getStringProperty(String propertyName, String defaultValue)
           
 int getTimeout()
           
 String getUsername()
           
 List<String> getValidCancelledStatus()
           
 List<String> getValidClosedStatus()
           
 List<Integer> getValidOpenStatus()
           
 void save()
           
protected  void setProperty(String propertyName, Object propertyValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyRtConfigDao

public ReadOnlyRtConfigDao()
Method Detail

getProperties

protected org.apache.commons.configuration.Configuration getProperties()
Retrieves the properties defined in the rt.properties file.

Returns:
a java.util.Properties object containing rt plugin defined properties

getFile

protected String getFile()

getPrefix

protected String getPrefix()

getUsername

public String getUsername()
Specified by:
getUsername in interface RtConfigDao

getPassword

public String getPassword()
Specified by:
getPassword in interface RtConfigDao

getQueue

public String getQueue()
Specified by:
getQueue in interface RtConfigDao

getValidClosedStatus

public List<String> getValidClosedStatus()
Specified by:
getValidClosedStatus in interface RtConfigDao

getValidOpenStatus

public List<Integer> getValidOpenStatus()
Specified by:
getValidOpenStatus in interface RtConfigDao

getValidCancelledStatus

public List<String> getValidCancelledStatus()
Specified by:
getValidCancelledStatus in interface RtConfigDao

getOpenStatus

public String getOpenStatus()
Specified by:
getOpenStatus in interface RtConfigDao

getClosedStatus

public String getClosedStatus()
Specified by:
getClosedStatus in interface RtConfigDao

getCancelledStatus

public String getCancelledStatus()
Specified by:
getCancelledStatus in interface RtConfigDao

getRequestor

public String getRequestor()
Specified by:
getRequestor in interface RtConfigDao

getBaseURL

public String getBaseURL()
Specified by:
getBaseURL in interface RtConfigDao

getTimeout

public int getTimeout()
Specified by:
getTimeout in interface RtConfigDao

getRetry

public int getRetry()
Specified by:
getRetry in interface RtConfigDao

save

public void save()
          throws IOException
Specified by:
save in interface RtConfigDao
Throws:
IOException

clearCache

protected void clearCache()

getStringProperty

protected String getStringProperty(String propertyName,
                                   String defaultValue)

setProperty

protected void setProperty(String propertyName,
                           Object propertyValue)


Copyright © 2011. All Rights Reserved.