|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.snmp.TrapSink
This class represents the trapSink XML node in config file
Constructor Summary | |
TrapSink()
Constructor |
|
TrapSink(Map attributes)
Construct a TrapSink object based on the name/value pair contained in passed attributes object |
|
TrapSink(String hostname,
int port,
String community,
int version,
boolean isInform)
Constructor |
Method Summary | |
String |
getCommunity()
Returns the community string of trap receiver |
String |
getHostName()
Returns the host name or ip of the trap receiver |
int |
getPort()
Returns the port number of trap receiver |
String |
getProperty(String key)
Gets the trapsink property indicated by the specified key. |
int |
getVersion()
Returns trap receiver's version number |
boolean |
isEnabled()
Tests if this trapsink is enabled. |
boolean |
isInform()
Returns true if it's an SNMP Inform notification |
void |
setCommunity(String community)
Sets the community string of trap receiver |
void |
setEnabled(boolean b)
Enables or disables this trapsink. |
void |
setHostName(String hostName)
Sets the host name or ip of the trap receiver |
void |
setInform(boolean isInform)
|
void |
setPort(int port)
Sets the port number of trap receiver |
void |
setProperty(String key,
String value)
Sets the property indicated by the specified key. |
void |
setVersion(int version)
Sets trap receiver's version number. |
Map |
toMap()
Returns a map object which contains name/value pair representing data of this object |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TrapSink()
public TrapSink(String hostname, int port, String community, int version, boolean isInform)
public TrapSink(Map attributes)
Method Detail |
public int getVersion()
public void setVersion(int version)
public int getPort()
public void setPort(int port)
public String getCommunity()
public void setCommunity(String community)
public String getHostName()
public void setHostName(String hostName)
public boolean isInform()
public void setInform(boolean isInform)
public boolean isEnabled()
public void setEnabled(boolean b)
public String toString()
public String getProperty(String key)
key
- - the name of the system property.
public void setProperty(String key, String value)
key
- the name of the propertyvalue
- the value of the propertypublic Map toMap()
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |