|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--disman.Disman
| Field Summary | |
protected int |
pollFactor
|
protected int |
pollInterval
|
protected int |
pollTimeout
|
| Constructor Summary | |
Disman()
Equivalent to Disman("localhost", 161, "public"). |
|
Disman(java.lang.String host)
Equivalent to Disman(host, 161, "public"). |
|
Disman(java.lang.String host,
int port,
java.lang.String community)
Create a Disman object associated with a given set of SNMP parameters. |
|
Disman(java.lang.String host,
java.lang.String community)
Equivalent to Disman(host, 161, community). |
|
| Method Summary | |
java.lang.String |
call(java.lang.String owner,
Language language,
java.lang.String source,
java.lang.String argument)
Run a script from a given URL written in a given language, with a given argument, and with a given owner. |
java.lang.String |
call(java.lang.String owner,
java.lang.String pattern,
java.lang.String source,
java.lang.String argument)
Run a script from a given URL written in a language described by a given description substring, with a given argument, and with a given owner. |
Extension |
getExtension(int[] oidarray)
Get an Extension object by a given OID. |
Extension |
getExtension(java.lang.String pattern)
Get an Extension object matching a description substring pattern. |
java.util.Vector |
getExtensions()
Get a vector of all Extension objects. |
java.util.Vector |
getExtensions(Language language)
Get a vector of all Extension objects related to a given Language object. |
Language |
getLanguage(int index)
Get a Language object by an smLangTable index. |
Language |
getLanguage(int[] oidarray)
Get a Language object by a given OID. |
Language |
getLanguage(java.lang.String pattern)
Get a Language object matching a description substring pattern. |
java.util.Vector |
getLanguages()
Get a vector of all Language objects. |
Launch |
getLaunch(java.lang.String owner,
java.lang.String name)
Get a Launch object by a given owner and name. |
java.util.Vector |
getLaunches()
Get a vector of all Launch objects. |
java.util.Vector |
getLaunches(Script script)
Get a vector of all Launch objects associated with a given Script object. |
java.util.Vector |
getLaunches(java.lang.String owner)
Get a vector of all Launch objects of a given owner. |
int[] |
getLocalTime()
Return the local time from the scheduler as an array of integer values representing the MIB value's octets (schedLocalTime). |
int |
getPollFactor()
Return the percentage by which the poll interval increases between two polls (default: 150). |
int |
getPollInterval()
Return the start interval in milli seconds for methods of this Disman object that perform SNMP polling operations (default: 100). |
int |
getPollTimeout()
Return the maximum polling time in milli seconds for methods of this Disman object that perform SNMP polling operations (default: 10000). |
protected java.lang.String[] |
getRequest(jmgmt.snmp.io.Varbind[] varbinds)
|
Run |
getRun(java.lang.String owner,
java.lang.String name,
int index)
Get a Run object by a given launch button owner, launch button name, and index. |
java.util.Vector |
getRuns()
Get a vector of all Run objects. |
java.util.Vector |
getRuns(Launch launch)
Get a vector of all Run objects started from a given launch button. |
java.util.Vector |
getRuns(java.lang.String owner)
Get a vector of all Run objects started from launch buttons of a given owner. |
Schedule |
getSchedule(java.lang.String owner,
java.lang.String name)
Get a Schedule object by a given owner and name. |
java.util.Vector |
getSchedules()
Get a vector of all Schedule objects. |
java.util.Vector |
getSchedules(java.lang.String owner)
Get a vector of all Schedule objects of a given owner. |
Script |
getScript(java.lang.String owner,
java.lang.String name)
Get a Script object by a given owner and name. |
java.util.Vector |
getScripts()
Get a vector of all Script objects. |
java.util.Vector |
getScripts(Language language)
Get a vector of all Script objects written in a given language. |
java.util.Vector |
getScripts(java.lang.String owner)
Get a vector of all Script objects of a given owner. |
java.util.Date |
getTime()
Get the local time from the scheduler as a Date object. |
Launch |
installLaunch(java.lang.String owner,
java.lang.String name,
Script script)
Create and install a Launch object by a given owner, name, and script. |
Schedule |
installSchedule(java.lang.String owner,
java.lang.String name,
java.lang.String description,
java.lang.String spec,
java.lang.String oid,
int value,
int type)
Create and install a Schedule object by a given owner and name. |
Script |
installScript(java.lang.String owner,
java.lang.String name,
java.lang.String description,
Language language,
java.lang.String source)
Create and install a Script object by a given owner and name. |
protected java.util.Date |
intArrayToDate(int[] dat)
Convert a DateAndTime int array into a Date object. |
void |
setPollFactor(int factor)
Set the percentage by which the poll interval increases between two polls. |
void |
setPollInterval(int interval)
Set the start interval in milli seconds for methods of this Disman object that perform SNMP polling operations (default: 100). |
void |
setPollTimeout(int timeout)
Set the maximum polling time in milli seconds for methods of this Disman object that perform SNMP polling operations (default: 10000). |
protected java.lang.String |
setRequest(java.lang.String oid,
java.util.BitSet value)
|
protected java.lang.String |
setRequest(java.lang.String oid,
byte[] value)
|
protected java.lang.String |
setRequest(java.lang.String oid,
long value)
|
protected java.lang.String |
setRequest(java.lang.String oid,
jmgmt.asn1.OID value)
|
protected java.lang.String |
setRequest(java.lang.String oid,
java.lang.String value)
|
protected java.lang.String |
setRequestInt(java.lang.String oid,
long value)
|
java.lang.String |
toString()
Return a String representation of the Disman object. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected int pollInterval
protected int pollFactor
protected int pollTimeout
| Constructor Detail |
public Disman(java.lang.String host,
int port,
java.lang.String community)
throws java.net.SocketException,
java.net.UnknownHostException,
java.io.IOException,
NoDismanException,
SnmpException
host - the host running the Script MIB agentport - the port on the SNMP agent hostcommunity - the SNMP community string to be used
public Disman(java.lang.String host,
java.lang.String community)
throws java.net.SocketException,
java.net.UnknownHostException,
java.io.IOException,
NoDismanException,
SnmpException
host - the host running the Script MIB agentcommunity - the SNMP community string to be used
public Disman(java.lang.String host)
throws java.net.SocketException,
java.net.UnknownHostException,
java.io.IOException,
NoDismanException,
SnmpException
host - the host running the Script MIB agent
public Disman()
throws java.net.SocketException,
java.net.UnknownHostException,
java.io.IOException,
NoDismanException,
SnmpException
| Method Detail |
public void setPollInterval(int interval)
interval - the interval in secondspublic int getPollInterval()
public void setPollFactor(int factor)
factor - the interval factorpublic int getPollFactor()
public void setPollTimeout(int timeout)
limit - the maximum polling time in milli secondspublic int getPollTimeout()
public Language getLanguage(int[] oidarray)
throws SnmpException,
java.io.IOException
oidarray - array of OID sub-identifiers
public Language getLanguage(int index)
throws SnmpException,
java.io.IOException
index - index part of the Language table row
public Language getLanguage(java.lang.String pattern)
throws SnmpException,
java.io.IOException
pattern - the description substring pattern used for lookup
public java.util.Vector getLanguages()
throws SnmpException,
java.io.IOException
public Extension getExtension(int[] oidarray)
throws java.io.IOException,
SnmpException,
InconsistencyException
oidarray - array of OID sub-identifiers
public Extension getExtension(java.lang.String pattern)
throws java.io.IOException,
SnmpException,
InconsistencyException
pattern - the description substring pattern used for lookup
public java.util.Vector getExtensions()
throws java.io.IOException,
SnmpException,
InconsistencyException
public java.util.Vector getExtensions(Language language)
throws SnmpException,
java.io.IOException
the - Language object
public Script getScript(java.lang.String owner,
java.lang.String name)
throws SnmpException,
java.io.IOException
owner - the owner to look forname - the name of the script to look for
public java.util.Vector getScripts(java.lang.String owner)
throws SnmpException,
java.io.IOException
owner - the owner to look for
public java.util.Vector getScripts(Language language)
throws SnmpException,
java.io.IOException
language - the language to look for
public java.util.Vector getScripts()
throws SnmpException,
java.io.IOException
public Script installScript(java.lang.String owner,
java.lang.String name,
java.lang.String description,
Language language,
java.lang.String source)
throws EntryAlreadyExistsException,
ScriptEnableException,
TimeoutException,
SnmpException,
java.io.IOException,
IllegalNameException
owner - the ownername - the name of the scriptdescription - the description stringlanguage - the language this script is written insource - the source URL (might be an empty string)
public Launch getLaunch(java.lang.String owner,
java.lang.String name)
throws SnmpException,
java.io.IOException
owner - the owner to look forname - the name of the launch button to look for
public java.util.Vector getLaunches(java.lang.String owner)
throws SnmpException,
java.io.IOException
owner - the owner to look for
public java.util.Vector getLaunches(Script script)
throws SnmpException,
java.io.IOException
script - the Script object
public java.util.Vector getLaunches()
throws SnmpException,
java.io.IOException
public Launch installLaunch(java.lang.String owner,
java.lang.String name,
Script script)
throws EntryAlreadyExistsException,
SnmpException,
java.io.IOException,
IllegalNameException
owner - the ownername - the name of the scriptscript - the script to be started by this launch button
public Run getRun(java.lang.String owner,
java.lang.String name,
int index)
throws SnmpException,
java.io.IOException
owner - the owner to look forname - the name of the launch button to look forindex - the run index to look for
public java.util.Vector getRuns(java.lang.String owner)
throws SnmpException,
java.io.IOException
owner - the owner to look for
public java.util.Vector getRuns(Launch launch)
throws SnmpException,
java.io.IOException
launch - the launch button
public java.util.Vector getRuns()
throws SnmpException,
java.io.IOException
public java.lang.String call(java.lang.String owner,
java.lang.String pattern,
java.lang.String source,
java.lang.String argument)
throws EntryAlreadyExistsException,
ScriptEnableException,
TimeoutException,
SnmpException,
java.io.IOException,
IllegalNameException
owner - the owner to use for the script and launch buttonpattern - description substring pattern to look up the languagesource - URL to fetch the scriptargument - argument string to pass to the script
public java.lang.String call(java.lang.String owner,
Language language,
java.lang.String source,
java.lang.String argument)
throws EntryAlreadyExistsException,
ScriptEnableException,
TimeoutException,
SnmpException,
java.io.IOException,
IllegalNameException
owner - the owner to use for the script and launch buttonlanguage - the script's languagesource - URL to fetch the scriptargument - argument string to pass to the scriptpublic java.lang.String toString()
public int[] getLocalTime()
throws java.io.IOException,
SnmpException
public java.util.Date getTime()
throws java.io.IOException,
SnmpException
public Schedule getSchedule(java.lang.String owner,
java.lang.String name)
throws SnmpException,
java.io.IOException
owner - the owner to look forname - the name of the schedule to look for
public java.util.Vector getSchedules(java.lang.String owner)
throws SnmpException,
java.io.IOException
owner - the owner to look for
public java.util.Vector getSchedules()
throws SnmpException,
java.io.IOException
public Schedule installSchedule(java.lang.String owner,
java.lang.String name,
java.lang.String description,
java.lang.String spec,
java.lang.String oid,
int value,
int type)
throws EntryAlreadyExistsException,
ScheduleEnableException,
TimeoutException,
SnmpException,
java.io.IOException,
IllegalNameException,
ScheduleSpecParseException
owner - the ownername - the name of the scheduledescription - the description stringspec - the calendar/interval spec stringvariable - the OID string (dotted numerical)value - the value to be setprotected java.util.Date intArrayToDate(int[] dat)
protected java.lang.String[] getRequest(jmgmt.snmp.io.Varbind[] varbinds)
throws java.io.IOException,
SnmpException,
DismanReadException
protected java.lang.String setRequest(java.lang.String oid,
long value)
throws java.io.IOException,
SnmpException,
DismanWriteException
protected java.lang.String setRequestInt(java.lang.String oid,
long value)
throws java.io.IOException,
SnmpException,
DismanWriteException
protected java.lang.String setRequest(java.lang.String oid,
jmgmt.asn1.OID value)
throws java.io.IOException,
SnmpException,
DismanWriteException
protected java.lang.String setRequest(java.lang.String oid,
java.lang.String value)
throws java.io.IOException,
SnmpException,
DismanWriteException
protected java.lang.String setRequest(java.lang.String oid,
byte[] value)
throws java.io.IOException,
SnmpException,
DismanWriteException
protected java.lang.String setRequest(java.lang.String oid,
java.util.BitSet value)
throws java.io.IOException,
SnmpException,
DismanWriteException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||