|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--snmpmonitor.Options
| Constructor Summary | |
Options(java.lang.String args)
Create an Options object based on a single string that represents an arguments vector. |
|
Options(java.lang.String[] argv)
Create an Options object based on the arguments vector. |
|
| Method Summary | |
int |
getInterval()
Get the interval. |
Peer[] |
getPeers()
Get an array of the SNMP peers. |
long |
getThreshold(java.lang.String name)
Get threshold (-t name=value) of type long for the attribute "name". |
void |
parse(java.lang.String[] argv)
TODO |
void |
setThreshold(java.lang.String name,
long value)
Set threshold long value for a given threshold name. |
void |
setThresholdDefault(java.lang.String name,
long value)
Set threshold long value for a given threshold name if it is not yet set. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Options(java.lang.String[] argv)
throws java.text.ParseException,
java.lang.StringIndexOutOfBoundsException,
java.net.UnknownHostException,
java.net.SocketException
args - The arguments passed.
public Options(java.lang.String args)
throws java.text.ParseException,
java.lang.StringIndexOutOfBoundsException,
java.net.UnknownHostException,
java.net.SocketException
args - The arguments passed.| Method Detail |
public void parse(java.lang.String[] argv)
throws java.text.ParseException,
java.lang.StringIndexOutOfBoundsException,
java.net.UnknownHostException,
java.net.SocketException
argv - The arguments passed.public long getThreshold(java.lang.String name)
name - The name of the threshold attribute.
public void setThreshold(java.lang.String name,
long value)
name - The name of the threshold attribute.value - The long threshold value.
public void setThresholdDefault(java.lang.String name,
long value)
name - The name of the threshold attribute.value - The long threshold value.public int getInterval()
public Peer[] getPeers()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||