|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--disman.Script
| Field Summary | |
static int |
ADMIN_STATUS_DISABLED
Valid admin state |
static int |
ADMIN_STATUS_EDITING
Valid admin state |
static int |
ADMIN_STATUS_ENABLED
Valid admin state |
static java.lang.String[] |
adminStatusStrings
Array of admin state strings. |
static int |
OPER_STATUS_ACCESS_DENIED
Valid operation state |
static int |
OPER_STATUS_COMPILATION_FAILED
Valid operation state |
static int |
OPER_STATUS_COMPILING
Valid operation state |
static int |
OPER_STATUS_DISABLED
Valid operation state |
static int |
OPER_STATUS_EDITING
Valid operation state |
static int |
OPER_STATUS_ENABLED
Valid operation state |
static int |
OPER_STATUS_GENERIC_ERROR
Valid operation state |
static int |
OPER_STATUS_NO_RESOURCES_LEFT
Valid operation state |
static int |
OPER_STATUS_NO_SUCH_SCRIPT
Valid operation state |
static int |
OPER_STATUS_PROTOCOL_FAILURE
Valid operation state |
static int |
OPER_STATUS_RETRIEVING
Valid operation state |
static int |
OPER_STATUS_UNKNOWN_PROTOCOL
Valid operation state |
static int |
OPER_STATUS_WRONG_LANGUAGE
Valid operation state |
static int |
OPER_STATUS_WRONG_VERSION
Valid operation state |
static java.lang.String[] |
operStatusStrings
Array of operation state strings. |
static int |
ROW_STATUS_ACTIVE
Valid row status |
static int |
ROW_STATUS_CREATE_AND_GO
Valid row status |
static int |
ROW_STATUS_CREATE_AND_WAIT
Valid row status |
static int |
ROW_STATUS_DESTROY
Valid row status |
static int |
ROW_STATUS_NOT_IN_SERVICE
Valid row status |
static int |
ROW_STATUS_NOT_READY
Valid row status |
static java.lang.String[] |
rowStatusStrings
Array of row status strings. |
static int |
STORAGE_TYPE_NON_VOLATILE
Valid storage type |
static int |
STORAGE_TYPE_OTHER
Valid storage type |
static int |
STORAGE_TYPE_PERMANENT
Valid storage type |
static int |
STORAGE_TYPE_READ_ONLY
Valid storage type |
static int |
STORAGE_TYPE_VOLATILE
Valid storage type |
static java.lang.String[] |
storageTypeStrings
Array of storage type strings. |
| Constructor Summary | |
Script(Disman disman,
java.lang.String owner,
java.lang.String name)
Create a Script object for a given Disman object indexed by a given owner and name by retrieval from the agent. |
|
Script(Disman disman,
java.lang.String owner,
java.lang.String name,
java.lang.String description,
Language language,
java.lang.String source)
Create a Script object for a given Disman object indexed by a given owner and name by creating it at the agent. |
|
| Method Summary | |
java.lang.String |
call()
Start this script without arguments, block until it has been terminated and return the result string. |
java.lang.String |
call(java.lang.String argument)
Start this script with a given argument, block until it has been terminated and return the result string. |
void |
disable()
Disable the script. |
void |
enable()
Enable this script. |
int |
getAdminStatus()
Return an integer value representing the smScriptAdminStatus. |
java.lang.String |
getAdminStatusString()
Return a string representing the smScriptAdminStatus. |
java.lang.String |
getDescription()
Return the description string (smScriptDescr). |
java.lang.String |
getError()
Return the error string (smScriptError). |
Language |
getLanguage()
Return the Language object that represents the language this script is written in (smScriptLanguage). |
java.util.Date |
getLastChange()
Return the last change time as a Date object (smScriptLastChange). |
int[] |
getLastChangeTime()
Return the last change time as an array of integer values representing the MIB value's octets (smScriptLastChange). |
java.lang.String |
getName()
Return the name of this Script (smScriptName). |
int |
getOperStatus()
Return an integer value representing the smScriptOperStatus. |
java.lang.String |
getOperStatusString()
Return a String representing the smScriptOperStatus. |
java.lang.String |
getOwner()
Return the owner of this Script (smScriptOwner). |
int |
getRowStatus()
Return an integer value representing the smScriptRowStatus. |
java.lang.String |
getRowStatusString()
Return a String representing the smScriptRowStatus. |
java.lang.String |
getSource()
Return the script source string (smScriptSource). |
int |
getStorageType()
Return an integer value representing the smScriptStorageType. |
java.lang.String |
getStorageTypeString()
Return a String representing the smScriptStorageType. |
boolean |
isEnabled()
Return true, if this script is enabled (smScriptOperStatus == enabled(1)). |
boolean |
isNonVolatile()
Return true, if this script is stored non-volatile at the agent. |
boolean |
isPermanent()
Return true, if this script is stored permanently at the agent. |
boolean |
isReadOnly()
Return true, if this script is stored read-only at the agent. |
boolean |
isVolatile()
Return true, if this script is stored volatile at the agent. |
void |
remove()
Remove this Script object. |
void |
setAdminStatus(int status)
Set the smScriptAdminStatus represented by an integer value. |
void |
setDescription(java.lang.String description)
Set the description string (smScriptDescr). |
void |
setLanguage(Language language)
Set the Language object that represents the language this script is written in (smScriptLanguage). |
void |
setNonVolatile()
Make this script stored non-volatile at the agent. |
void |
setPermanent()
Make this script stored permanently at the agent. |
void |
setReadOnly()
Make this script stored read-only at the agent. |
void |
setRowStatus(int status)
Return an integer value representing the smScriptRowStatus. |
void |
setSource(java.lang.String source)
Set the script source string (smScriptSource). |
void |
setStorageType(int storageType)
Set the smScriptStorageType represented by an integer value. |
void |
setVolatile()
Make this script stored volatile at the agent. |
java.lang.String |
toString()
Return a String representation of the Script. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int ADMIN_STATUS_ENABLED
public static final int ADMIN_STATUS_DISABLED
public static final int ADMIN_STATUS_EDITING
public static final java.lang.String[] adminStatusStrings
public static final int OPER_STATUS_ENABLED
public static final int OPER_STATUS_DISABLED
public static final int OPER_STATUS_EDITING
public static final int OPER_STATUS_RETRIEVING
public static final int OPER_STATUS_COMPILING
public static final int OPER_STATUS_NO_SUCH_SCRIPT
public static final int OPER_STATUS_ACCESS_DENIED
public static final int OPER_STATUS_WRONG_LANGUAGE
public static final int OPER_STATUS_WRONG_VERSION
public static final int OPER_STATUS_COMPILATION_FAILED
public static final int OPER_STATUS_NO_RESOURCES_LEFT
public static final int OPER_STATUS_UNKNOWN_PROTOCOL
public static final int OPER_STATUS_PROTOCOL_FAILURE
public static final int OPER_STATUS_GENERIC_ERROR
public static final java.lang.String[] operStatusStrings
public static final int STORAGE_TYPE_OTHER
public static final int STORAGE_TYPE_VOLATILE
public static final int STORAGE_TYPE_NON_VOLATILE
public static final int STORAGE_TYPE_PERMANENT
public static final int STORAGE_TYPE_READ_ONLY
public static final java.lang.String[] storageTypeStrings
public static final int ROW_STATUS_ACTIVE
public static final int ROW_STATUS_NOT_IN_SERVICE
public static final int ROW_STATUS_NOT_READY
public static final int ROW_STATUS_CREATE_AND_GO
public static final int ROW_STATUS_CREATE_AND_WAIT
public static final int ROW_STATUS_DESTROY
public static final java.lang.String[] rowStatusStrings
| Constructor Detail |
public Script(Disman disman,
java.lang.String owner,
java.lang.String name)
throws SnmpException,
java.io.IOException,
NoSuchRowException
disman - the Disman object associated with this scriptowner - the script ownername - the script name
public Script(Disman disman,
java.lang.String owner,
java.lang.String name,
java.lang.String description,
Language language,
java.lang.String source)
throws SnmpException,
java.io.IOException,
IllegalNameException
disman - the Disman object associated with this scriptowner - the script ownername - the script namedescription - the script description stringlanguage - the script languagesource - the URL to fetch the script code| Method Detail |
public void remove()
throws SnmpException,
java.io.IOException,
TimeoutException
public java.lang.String getOwner()
public java.lang.String getName()
public java.lang.String getDescription()
throws SnmpException,
java.io.IOException
public void setDescription(java.lang.String description)
throws SnmpException,
java.io.IOException
description - the script description string
public Language getLanguage()
throws SnmpException,
java.io.IOException,
InconsistencyException
public void setLanguage(Language language)
throws SnmpException,
java.io.IOException
language - the Language object representing the script's language
public java.lang.String getSource()
throws SnmpException,
java.io.IOException
public void setSource(java.lang.String source)
throws SnmpException,
java.io.IOException
source - the script source string
public int getAdminStatus()
throws SnmpException,
java.io.IOException
public java.lang.String getAdminStatusString()
throws SnmpException,
java.io.IOException
public void setAdminStatus(int status)
throws SnmpException,
java.io.IOException
status - the script's smScriptAdminStatus value
public int getOperStatus()
throws SnmpException,
java.io.IOException
public java.lang.String getOperStatusString()
throws SnmpException,
java.io.IOException
public boolean isEnabled()
throws SnmpException,
java.io.IOException
public void enable()
throws ScriptEnableException,
TimeoutException,
SnmpException,
java.io.IOException
public void disable()
throws TimeoutException,
SnmpException,
java.io.IOException
public int getStorageType()
throws SnmpException,
java.io.IOException
public java.lang.String getStorageTypeString()
throws SnmpException,
java.io.IOException
public boolean isVolatile()
throws SnmpException,
java.io.IOException
public boolean isNonVolatile()
throws SnmpException,
java.io.IOException
public boolean isPermanent()
throws SnmpException,
java.io.IOException
public boolean isReadOnly()
throws SnmpException,
java.io.IOException
public void setStorageType(int storageType)
throws SnmpException,
java.io.IOException
storageType - the script's smScriptStorageType value
public void setVolatile()
throws SnmpException,
java.io.IOException
public void setNonVolatile()
throws SnmpException,
java.io.IOException
public void setPermanent()
throws SnmpException,
java.io.IOException
public void setReadOnly()
throws SnmpException,
java.io.IOException
public int getRowStatus()
throws SnmpException,
java.io.IOException
public java.lang.String getRowStatusString()
throws SnmpException,
java.io.IOException
public void setRowStatus(int status)
throws SnmpException,
java.io.IOException
status - the script's smScriptRowStatus value
public java.lang.String getError()
throws java.io.IOException,
SnmpException,
DismanReadException
public int[] getLastChangeTime()
throws java.io.IOException,
SnmpException
public java.util.Date getLastChange()
throws java.io.IOException,
SnmpException
public java.lang.String call()
throws TimeoutException,
SnmpException,
java.io.IOException
public java.lang.String call(java.lang.String argument)
throws TimeoutException,
SnmpException,
java.io.IOException
agument - the argument string to be passed to the scriptpublic java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||