Package org.opennms.netmgt.rt
Class ReadOnlyRtConfigDao
- java.lang.Object
-
- org.opennms.netmgt.rt.ReadOnlyRtConfigDao
-
- All Implemented Interfaces:
RtConfigDao
- Direct Known Subclasses:
SupportRtConfigDao
public class ReadOnlyRtConfigDao extends java.lang.Object implements RtConfigDao
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyRtConfigDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearCache()
java.lang.String
getBaseURL()
java.lang.String
getCancelledStatus()
java.lang.String
getClosedStatus()
protected java.lang.String
getFile()
java.lang.String
getOpenStatus()
java.lang.String
getPassword()
protected java.lang.String
getPrefix()
protected org.apache.commons.configuration.Configuration
getProperties()
Retrieves the properties defined in the rt.properties file.java.lang.String
getQueue()
java.lang.String
getRequestor()
int
getRetry()
protected java.lang.String
getStringProperty(java.lang.String propertyName, java.lang.String defaultValue)
int
getTimeout()
java.lang.String
getUsername()
boolean
getUseSystemProxy()
java.util.List<java.lang.String>
getValidCancelledStatus()
java.util.List<java.lang.String>
getValidClosedStatus()
java.util.List<java.lang.String>
getValidOpenStatus()
void
save()
protected void
setProperty(java.lang.String propertyName, java.lang.Object propertyValue)
-
-
-
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 java.lang.String getFile()
-
getPrefix
protected java.lang.String getPrefix()
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfaceRtConfigDao
-
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interfaceRtConfigDao
-
getQueue
public java.lang.String getQueue()
- Specified by:
getQueue
in interfaceRtConfigDao
-
getValidClosedStatus
public java.util.List<java.lang.String> getValidClosedStatus()
- Specified by:
getValidClosedStatus
in interfaceRtConfigDao
-
getValidOpenStatus
public java.util.List<java.lang.String> getValidOpenStatus()
- Specified by:
getValidOpenStatus
in interfaceRtConfigDao
-
getValidCancelledStatus
public java.util.List<java.lang.String> getValidCancelledStatus()
- Specified by:
getValidCancelledStatus
in interfaceRtConfigDao
-
getOpenStatus
public java.lang.String getOpenStatus()
- Specified by:
getOpenStatus
in interfaceRtConfigDao
-
getClosedStatus
public java.lang.String getClosedStatus()
- Specified by:
getClosedStatus
in interfaceRtConfigDao
-
getCancelledStatus
public java.lang.String getCancelledStatus()
- Specified by:
getCancelledStatus
in interfaceRtConfigDao
-
getRequestor
public java.lang.String getRequestor()
- Specified by:
getRequestor
in interfaceRtConfigDao
-
getBaseURL
public java.lang.String getBaseURL()
- Specified by:
getBaseURL
in interfaceRtConfigDao
-
getTimeout
public int getTimeout()
- Specified by:
getTimeout
in interfaceRtConfigDao
-
getRetry
public int getRetry()
- Specified by:
getRetry
in interfaceRtConfigDao
-
getUseSystemProxy
public boolean getUseSystemProxy()
- Specified by:
getUseSystemProxy
in interfaceRtConfigDao
-
save
public void save() throws java.io.IOException
- Specified by:
save
in interfaceRtConfigDao
- Throws:
java.io.IOException
-
clearCache
protected void clearCache()
-
getStringProperty
protected java.lang.String getStringProperty(java.lang.String propertyName, java.lang.String defaultValue)
-
setProperty
protected void setProperty(java.lang.String propertyName, java.lang.Object propertyValue)
-
-