|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--disman.Schedule
| Field Summary | |
static int |
ADMIN_STATUS_DISABLED
Valid admin state |
static int |
ADMIN_STATUS_ENABLED
Valid admin state |
static java.lang.String[] |
adminStatusStrings
Array of admin state strings. |
static int |
FAILURE_AUTHORIZATIONERROR
Valid failure |
static int |
FAILURE_BADVALUE
Valid failure |
static int |
FAILURE_COMMITFAILED
Valid failure |
static int |
FAILURE_GENERR
Valid failure |
static int |
FAILURE_INCONSISTENTNAME
Valid failure |
static int |
FAILURE_INCONSISTENTVALUE
Valid failure |
static int |
FAILURE_NOACCESS
Valid failure |
static int |
FAILURE_NOCREATION
Valid failure |
static int |
FAILURE_NOERROR
Valid failure |
static int |
FAILURE_NORESPONSE
Valid failure |
static int |
FAILURE_NOSUCHNAME
Valid failure |
static int |
FAILURE_NOTWRITABLE
Valid failure |
static int |
FAILURE_READONLY
Valid failure |
static int |
FAILURE_RESOURCEUNAVAILABLE
Valid failure |
static int |
FAILURE_TOOBIG
Valid failure |
static int |
FAILURE_UNDOFAILED
Valid failure |
static int |
FAILURE_WRONGENCODING
Valid failure |
static int |
FAILURE_WRONGLENGTH
Valid failure |
static int |
FAILURE_WRONGTYPE
Valid failure |
static int |
FAILURE_WRONGVALUE
Valid failure |
static java.lang.String[] |
failureStrings
Array of failure strings. |
static int |
OPER_STATUS_DISABLED
Valid operation state |
static int |
OPER_STATUS_ENABLED
Valid operation state |
static int |
OPER_STATUS_FINISHED
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. |
static int |
TYPE_CALENDAR
Valid type |
static int |
TYPE_ONESHOT
Valid type |
static int |
TYPE_PERIODIC
Valid type |
static java.lang.String[] |
typeStrings
Array of schedule type strings. |
| Constructor Summary | |
Schedule(Disman disman,
java.lang.String owner,
java.lang.String name)
Create a Schedule object for a given Disman object indexed by a given owner and name by retrieval from the agent. |
|
Schedule(Disman disman,
java.lang.String owner,
java.lang.String name,
java.lang.String description,
java.lang.String spec,
java.lang.String variable,
int value,
int type)
Create a Schedule object for a given Disman object indexed by a given owner and name by creating it at the agent. |
|
| Method Summary | |
void |
disable()
Disable the schedule. |
void |
enable()
Enable this schedule. |
int |
getAdminStatus()
Return an integer value representing the schedAdminStatus. |
java.lang.String |
getAdminStatusString()
Return a string representing the schedAdminStatus. |
java.lang.String |
getContextName()
Return the schedule context name (schedContextName). |
protected java.util.Date |
getDateFromDateAndTime(int[] dat)
Convert a DateAndTime int array into a Date object. |
java.lang.String |
getDescription()
Return the description string (schedDescr). |
int |
getFailures()
Return the number of failures (schedFailures). |
java.lang.String |
getInterval()
Return the interval of the (periodic) schedule (schedInterval). |
java.util.Date |
getLastFailed()
Return the time of the last failure as a Date object (schedLastFailed). |
int[] |
getLastFailedIntArray()
Return the time of the last failure as an array of integer values representing the MIB value's octets (schedLastFailed). |
int |
getLastFailure()
Return an integer value representing the schedLastFailure. |
java.lang.String |
getLastFailureString()
Return a String representing the schedLastFailure. |
java.lang.String |
getName()
Return the name of this Schedule (schedName). |
int |
getOperStatus()
Return an integer value representing the schedOperStatus. |
java.lang.String |
getOperStatusString()
Return a String representing the schedOperStatus. |
java.lang.String |
getOwner()
Return the owner of this Schedule (schedOwner). |
int |
getRowStatus()
Return an integer value representing the schedRowStatus. |
java.lang.String |
getRowStatusString()
Return a String representing the schedRowStatus. |
java.lang.String |
getSpec()
Return a string that represents all six attributes of a schedule (schedInterval and schedWeekDay - schedMinute). |
int |
getStorageType()
Return an integer value representing the schedStorageType. |
java.lang.String |
getStorageTypeString()
Return a String representing the schedStorageType. |
int |
getType()
Return an integer value representing the schedType. |
java.lang.String |
getTypeString()
Return a string representing the schedType. |
int |
getValue()
Return the integer value of the value object (schedValue). |
java.lang.String |
getVariable()
Return the object identifier of the variable object (schedVariable) as a dotted decimal string. |
boolean |
isEnabled()
Return true, if this schedule is enabled (schedOperStatus == enabled(1)). |
boolean |
isNonVolatile()
Return true, if this schedule is stored non-volatile at the agent. |
boolean |
isPermanent()
Return true, if this schedule is stored permanently at the agent. |
boolean |
isReadOnly()
Return true, if this schedule is stored read-only at the agent. |
boolean |
isVolatile()
Return true, if this schedule is stored volatile at the agent. |
void |
remove()
Remove this Schedule object. |
void |
setAdminStatus(int status)
Set the schedAdminStatus represented by an integer value. |
void |
setCalendar()
Make this schedule a calendar schedule (schedType == calendar(2)). |
void |
setContextName(java.lang.String context)
Set the schedule context name (schedContextName). |
void |
setDescription(java.lang.String description)
Set the description string (schedDescr). |
void |
setInterval(int interval)
Set the interval of the (periodic) schedule (schedInterval). |
void |
setNonVolatile()
Make this schedule stored non-volatile at the agent. |
void |
setOneshot()
Make this schedule a oneshot schedule (schedType == oneshot(3)). |
void |
setPeriodic()
Make this schedule a periodic schedule (schedType == periodic(1)). |
void |
setPermanent()
Make this schedule stored permanently at the agent. |
void |
setReadOnly()
Make this schedule stored read-only at the agent. |
void |
setRowStatus(int status)
Return an integer value representing the schedRowStatus. |
void |
setSpec(java.lang.String spec)
Set all six time specifying attributes of a schedule given by a human friendly string (schedInterval and schedWeekDay - schedMinute). |
void |
setStorageType(int storageType)
Set the schedStorageType represented by an integer value. |
void |
setType(int type)
Set the schedType represented by an integer value. |
void |
setValue(int value)
Set the integer value of the value object (schedValue). |
void |
setVariable(java.lang.String variable)
Set the object identifier of the variable object (schedVariable). |
void |
setVolatile()
Make this schedule stored volatile at the agent. |
java.lang.String |
toString()
Return a String representation of the Schedule. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int TYPE_PERIODIC
public static final int TYPE_CALENDAR
public static final int TYPE_ONESHOT
public static final java.lang.String[] typeStrings
public static final int ADMIN_STATUS_ENABLED
public static final int ADMIN_STATUS_DISABLED
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_FINISHED
public static final java.lang.String[] operStatusStrings
public static final int FAILURE_NORESPONSE
public static final int FAILURE_NOERROR
public static final int FAILURE_TOOBIG
public static final int FAILURE_NOSUCHNAME
public static final int FAILURE_BADVALUE
public static final int FAILURE_READONLY
public static final int FAILURE_GENERR
public static final int FAILURE_NOACCESS
public static final int FAILURE_WRONGTYPE
public static final int FAILURE_WRONGLENGTH
public static final int FAILURE_WRONGENCODING
public static final int FAILURE_WRONGVALUE
public static final int FAILURE_NOCREATION
public static final int FAILURE_INCONSISTENTVALUE
public static final int FAILURE_RESOURCEUNAVAILABLE
public static final int FAILURE_COMMITFAILED
public static final int FAILURE_UNDOFAILED
public static final int FAILURE_AUTHORIZATIONERROR
public static final int FAILURE_NOTWRITABLE
public static final int FAILURE_INCONSISTENTNAME
public static final java.lang.String[] failureStrings
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 Schedule(Disman disman,
java.lang.String owner,
java.lang.String name)
throws SnmpException,
java.io.IOException,
NoSuchRowException
disman - the Disman object associated with this scheduleowner - the schedule ownername - the schedule name
public Schedule(Disman disman,
java.lang.String owner,
java.lang.String name,
java.lang.String description,
java.lang.String spec,
java.lang.String variable,
int value,
int type)
throws SnmpException,
java.io.IOException,
IllegalNameException,
ScheduleSpecParseException
disman - the Disman object associated with this scheduleowner - the schedule ownername - the schedule namedescription - the schedule description stringspec - the calendar/interval spec stringvariable - the OID string (dotted numerical)value - the value to be settype - the schedule type| 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 schedule description string
public java.lang.String getInterval()
throws SnmpException,
java.io.IOException
public void setInterval(int interval)
throws SnmpException,
java.io.IOException
value - the interval
public java.lang.String getSpec()
throws SnmpException,
java.io.IOException
public void setSpec(java.lang.String spec)
throws SnmpException,
java.io.IOException,
ScheduleSpecParseException
spec - the calendar string
public java.lang.String getContextName()
throws SnmpException,
java.io.IOException
public void setContextName(java.lang.String context)
throws SnmpException,
java.io.IOException
context - the schedule context name
public java.lang.String getVariable()
throws SnmpException,
java.io.IOException
public void setVariable(java.lang.String variable)
throws SnmpException,
java.io.IOException
variable - the variable object OID value
public int getValue()
throws SnmpException,
java.io.IOException
public void setValue(int value)
throws SnmpException,
java.io.IOException
value - the value
public int getType()
throws SnmpException,
java.io.IOException
public java.lang.String getTypeString()
throws SnmpException,
java.io.IOException
public void setType(int type)
throws SnmpException,
java.io.IOException
type - the schedule's schedType value
public void setPeriodic()
throws SnmpException,
java.io.IOException
public void setCalendar()
throws SnmpException,
java.io.IOException
public void setOneshot()
throws SnmpException,
java.io.IOException
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 schedule's schedAdminStatus 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 ScheduleEnableException,
TimeoutException,
SnmpException,
java.io.IOException
public void disable()
throws TimeoutException,
SnmpException,
java.io.IOException
public int getFailures()
throws java.io.IOException,
SnmpException
public int getLastFailure()
throws SnmpException,
java.io.IOException
public java.lang.String getLastFailureString()
throws SnmpException,
java.io.IOException
public int[] getLastFailedIntArray()
throws java.io.IOException,
SnmpException
public java.util.Date getLastFailed()
throws java.io.IOException,
SnmpException
protected java.util.Date getDateFromDateAndTime(int[] dat)
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 schedule's schedStorageType 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 schedule's schedRowStatus valuepublic java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||