disman
Class Schedule

java.lang.Object
  |
  +--disman.Schedule

public class Schedule
extends java.lang.Object


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

TYPE_PERIODIC

public static final int TYPE_PERIODIC
Valid type

TYPE_CALENDAR

public static final int TYPE_CALENDAR
Valid type

TYPE_ONESHOT

public static final int TYPE_ONESHOT
Valid type

typeStrings

public static final java.lang.String[] typeStrings
Array of schedule type strings.

ADMIN_STATUS_ENABLED

public static final int ADMIN_STATUS_ENABLED
Valid admin state

ADMIN_STATUS_DISABLED

public static final int ADMIN_STATUS_DISABLED
Valid admin state

adminStatusStrings

public static final java.lang.String[] adminStatusStrings
Array of admin state strings.

OPER_STATUS_ENABLED

public static final int OPER_STATUS_ENABLED
Valid operation state

OPER_STATUS_DISABLED

public static final int OPER_STATUS_DISABLED
Valid operation state

OPER_STATUS_FINISHED

public static final int OPER_STATUS_FINISHED
Valid operation state

operStatusStrings

public static final java.lang.String[] operStatusStrings
Array of operation state strings.

FAILURE_NORESPONSE

public static final int FAILURE_NORESPONSE
Valid failure

FAILURE_NOERROR

public static final int FAILURE_NOERROR
Valid failure

FAILURE_TOOBIG

public static final int FAILURE_TOOBIG
Valid failure

FAILURE_NOSUCHNAME

public static final int FAILURE_NOSUCHNAME
Valid failure

FAILURE_BADVALUE

public static final int FAILURE_BADVALUE
Valid failure

FAILURE_READONLY

public static final int FAILURE_READONLY
Valid failure

FAILURE_GENERR

public static final int FAILURE_GENERR
Valid failure

FAILURE_NOACCESS

public static final int FAILURE_NOACCESS
Valid failure

FAILURE_WRONGTYPE

public static final int FAILURE_WRONGTYPE
Valid failure

FAILURE_WRONGLENGTH

public static final int FAILURE_WRONGLENGTH
Valid failure

FAILURE_WRONGENCODING

public static final int FAILURE_WRONGENCODING
Valid failure

FAILURE_WRONGVALUE

public static final int FAILURE_WRONGVALUE
Valid failure

FAILURE_NOCREATION

public static final int FAILURE_NOCREATION
Valid failure

FAILURE_INCONSISTENTVALUE

public static final int FAILURE_INCONSISTENTVALUE
Valid failure

FAILURE_RESOURCEUNAVAILABLE

public static final int FAILURE_RESOURCEUNAVAILABLE
Valid failure

FAILURE_COMMITFAILED

public static final int FAILURE_COMMITFAILED
Valid failure

FAILURE_UNDOFAILED

public static final int FAILURE_UNDOFAILED
Valid failure

FAILURE_AUTHORIZATIONERROR

public static final int FAILURE_AUTHORIZATIONERROR
Valid failure

FAILURE_NOTWRITABLE

public static final int FAILURE_NOTWRITABLE
Valid failure

FAILURE_INCONSISTENTNAME

public static final int FAILURE_INCONSISTENTNAME
Valid failure

failureStrings

public static final java.lang.String[] failureStrings
Array of failure strings.

STORAGE_TYPE_OTHER

public static final int STORAGE_TYPE_OTHER
Valid storage type

STORAGE_TYPE_VOLATILE

public static final int STORAGE_TYPE_VOLATILE
Valid storage type

STORAGE_TYPE_NON_VOLATILE

public static final int STORAGE_TYPE_NON_VOLATILE
Valid storage type

STORAGE_TYPE_PERMANENT

public static final int STORAGE_TYPE_PERMANENT
Valid storage type

STORAGE_TYPE_READ_ONLY

public static final int STORAGE_TYPE_READ_ONLY
Valid storage type

storageTypeStrings

public static final java.lang.String[] storageTypeStrings
Array of storage type strings.

ROW_STATUS_ACTIVE

public static final int ROW_STATUS_ACTIVE
Valid row status

ROW_STATUS_NOT_IN_SERVICE

public static final int ROW_STATUS_NOT_IN_SERVICE
Valid row status

ROW_STATUS_NOT_READY

public static final int ROW_STATUS_NOT_READY
Valid row status

ROW_STATUS_CREATE_AND_GO

public static final int ROW_STATUS_CREATE_AND_GO
Valid row status

ROW_STATUS_CREATE_AND_WAIT

public static final int ROW_STATUS_CREATE_AND_WAIT
Valid row status

ROW_STATUS_DESTROY

public static final int ROW_STATUS_DESTROY
Valid row status

rowStatusStrings

public static final java.lang.String[] rowStatusStrings
Array of row status strings.
Constructor Detail

Schedule

public Schedule(Disman disman,
                java.lang.String owner,
                java.lang.String name)
         throws SnmpException,
                java.io.IOException,
                NoSuchRowException
Create a Schedule object for a given Disman object indexed by a given owner and name by retrieval from the agent. Owner strings or schedule names longer than 32 characters are cut to this length.
Parameters:
disman - the Disman object associated with this schedule
owner - the schedule owner
name - the schedule name
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs,
NoSuchRowException - if the indexed row of the schedule table cannot be accessed

Schedule

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
Create a Schedule object for a given Disman object indexed by a given owner and name by creating it at the agent. Description, spec, variable, value, and type get also set, but the schedule does not get enabled.
Parameters:
disman - the Disman object associated with this schedule
owner - the schedule owner
name - the schedule name
description - the schedule description string
spec - the calendar/interval spec string
variable - the OID string (dotted numerical)
value - the value to be set
type - the schedule type
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs
IllegalNameException -  
Method Detail

remove

public void remove()
            throws SnmpException,
                   java.io.IOException,
                   TimeoutException
Remove this Schedule object.
Throws:
TimeoutException - if any of the subsequent actions cannot be finished in time
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getOwner

public java.lang.String getOwner()
Return the owner of this Schedule (schedOwner).
Returns:
the schedule owner

getName

public java.lang.String getName()
Return the name of this Schedule (schedName).
Returns:
the schedule name

getDescription

public java.lang.String getDescription()
                                throws SnmpException,
                                       java.io.IOException
Return the description string (schedDescr).
Returns:
the schedule description string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setDescription

public void setDescription(java.lang.String description)
                    throws SnmpException,
                           java.io.IOException
Set the description string (schedDescr).
Parameters:
description - the schedule description string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getInterval

public java.lang.String getInterval()
                             throws SnmpException,
                                    java.io.IOException
Return the interval of the (periodic) schedule (schedInterval).
Returns:
the value of the schedInterval object
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setInterval

public void setInterval(int interval)
                 throws SnmpException,
                        java.io.IOException
Set the interval of the (periodic) schedule (schedInterval).
Parameters:
value - the interval
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getSpec

public java.lang.String getSpec()
                         throws SnmpException,
                                java.io.IOException
Return a string that represents all six attributes of a schedule (schedInterval and schedWeekDay - schedMinute).
Returns:
the calendar string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setSpec

public void setSpec(java.lang.String spec)
             throws SnmpException,
                    java.io.IOException,
                    ScheduleSpecParseException
Set all six time specifying attributes of a schedule given by a human friendly string (schedInterval and schedWeekDay - schedMinute).
Parameters:
spec - the calendar string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getContextName

public java.lang.String getContextName()
                                throws SnmpException,
                                       java.io.IOException
Return the schedule context name (schedContextName).
Returns:
the schedule context name
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setContextName

public void setContextName(java.lang.String context)
                    throws SnmpException,
                           java.io.IOException
Set the schedule context name (schedContextName).
Parameters:
context - the schedule context name
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getVariable

public java.lang.String getVariable()
                             throws SnmpException,
                                    java.io.IOException
Return the object identifier of the variable object (schedVariable) as a dotted decimal string.
Returns:
the object identifier of the variable
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setVariable

public void setVariable(java.lang.String variable)
                 throws SnmpException,
                        java.io.IOException
Set the object identifier of the variable object (schedVariable). It has to be given as a dotted decimal string.
Parameters:
variable - the variable object OID value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getValue

public int getValue()
             throws SnmpException,
                    java.io.IOException
Return the integer value of the value object (schedValue).
Returns:
the value of the schedValue object
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setValue

public void setValue(int value)
              throws SnmpException,
                     java.io.IOException
Set the integer value of the value object (schedValue).
Parameters:
value - the value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getType

public int getType()
            throws SnmpException,
                   java.io.IOException
Return an integer value representing the schedType. This method should not be used by high level Schedule MIB applications.
Returns:
the schedule's schedType value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getTypeString

public java.lang.String getTypeString()
                               throws SnmpException,
                                      java.io.IOException
Return a string representing the schedType.
Returns:
the schedule's schedType string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setType

public void setType(int type)
             throws SnmpException,
                    java.io.IOException
Set the schedType represented by an integer value. This method should not be used by high level Schedule MIB applications.
Parameters:
type - the schedule's schedType value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setPeriodic

public void setPeriodic()
                 throws SnmpException,
                        java.io.IOException
Make this schedule a periodic schedule (schedType == periodic(1)).
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setCalendar

public void setCalendar()
                 throws SnmpException,
                        java.io.IOException
Make this schedule a calendar schedule (schedType == calendar(2)).
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setOneshot

public void setOneshot()
                throws SnmpException,
                       java.io.IOException
Make this schedule a oneshot schedule (schedType == oneshot(3)).
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getAdminStatus

public int getAdminStatus()
                   throws SnmpException,
                          java.io.IOException
Return an integer value representing the schedAdminStatus. This method should not be used by high level Schedule MIB applications.
Returns:
the schedule's schedAdminStatus value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getAdminStatusString

public java.lang.String getAdminStatusString()
                                      throws SnmpException,
                                             java.io.IOException
Return a string representing the schedAdminStatus.
Returns:
the schedule's schedAdminStatus string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setAdminStatus

public void setAdminStatus(int status)
                    throws SnmpException,
                           java.io.IOException
Set the schedAdminStatus represented by an integer value. This method should not be used by high level Schedule MIB applications.
Parameters:
status - the schedule's schedAdminStatus value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getOperStatus

public int getOperStatus()
                  throws SnmpException,
                         java.io.IOException
Return an integer value representing the schedOperStatus. This method should not be used by high level Schedule MIB applications.
Returns:
the schedule's schedOperStatus value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getOperStatusString

public java.lang.String getOperStatusString()
                                     throws SnmpException,
                                            java.io.IOException
Return a String representing the schedOperStatus.
Returns:
the schedule's schedOperStatus string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

isEnabled

public boolean isEnabled()
                  throws SnmpException,
                         java.io.IOException
Return true, if this schedule is enabled (schedOperStatus == enabled(1)).
Returns:
true, if schedule is enabled
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

enable

public void enable()
            throws ScheduleEnableException,
                   TimeoutException,
                   SnmpException,
                   java.io.IOException
Enable this schedule. Wait synchronously until the agent confirmed that the schedule is enabled. Otherwise, a ScheduleEnableException or a TimeoutException will be thrown.
Throws:
ScheduleEnableException - if the schedule cannot be enabled for a certain reason
TimeoutException - if the schedule cannot be enabled in time
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

disable

public void disable()
             throws TimeoutException,
                    SnmpException,
                    java.io.IOException
Disable the schedule. Wait synchronously until the agent confirmed that the schedule is disabled.
Throws:
TimeoutException - if the schedule cannot be disabled in time
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getFailures

public int getFailures()
                throws java.io.IOException,
                       SnmpException
Return the number of failures (schedFailures).
Returns:
the number of failures
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getLastFailure

public int getLastFailure()
                   throws SnmpException,
                          java.io.IOException
Return an integer value representing the schedLastFailure. This method should not be used by high level Schedule MIB applications.
Returns:
the schedule's schedLastFailure value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getLastFailureString

public java.lang.String getLastFailureString()
                                      throws SnmpException,
                                             java.io.IOException
Return a String representing the schedLastFailure.
Returns:
the schedule's schedLastFailure string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getLastFailedIntArray

public int[] getLastFailedIntArray()
                            throws java.io.IOException,
                                   SnmpException
Return the time of the last failure as an array of integer values representing the MIB value's octets (schedLastFailed). This method should not be used by high level Schedule MIB applications.
Returns:
the array of octets of the schedLastFailed
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getLastFailed

public java.util.Date getLastFailed()
                             throws java.io.IOException,
                                    SnmpException
Return the time of the last failure as a Date object (schedLastFailed).
Returns:
Date object representing the schedule's time of its last failure, or null if the schedule never failed so far
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getDateFromDateAndTime

protected java.util.Date getDateFromDateAndTime(int[] dat)
Convert a DateAndTime int array into a Date object.
Returns:
Date object representing the passed DateAndTime int array, or null if the DateAndTime int array is not valid.

getStorageType

public int getStorageType()
                   throws SnmpException,
                          java.io.IOException
Return an integer value representing the schedStorageType. This method should not be used by high level Schedule MIB applications.
Returns:
the schedule's schedStorageType value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getStorageTypeString

public java.lang.String getStorageTypeString()
                                      throws SnmpException,
                                             java.io.IOException
Return a String representing the schedStorageType.
Returns:
the schedule's schedStorageType string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

isVolatile

public boolean isVolatile()
                   throws SnmpException,
                          java.io.IOException
Return true, if this schedule is stored volatile at the agent. (schedStorageType == volatile(2)).
Returns:
true, if schedule is volatile
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

isNonVolatile

public boolean isNonVolatile()
                      throws SnmpException,
                             java.io.IOException
Return true, if this schedule is stored non-volatile at the agent. (schedStorageType == nonVolatile(3)).
Returns:
true, if schedule is non-volatile
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

isPermanent

public boolean isPermanent()
                    throws SnmpException,
                           java.io.IOException
Return true, if this schedule is stored permanently at the agent. (schedStorageType == permanent(4)).
Returns:
true, if schedule is permanent
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

isReadOnly

public boolean isReadOnly()
                   throws SnmpException,
                          java.io.IOException
Return true, if this schedule is stored read-only at the agent. (schedStorageType == readOnly(5)).
Returns:
true, if schedule is read-only
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setStorageType

public void setStorageType(int storageType)
                    throws SnmpException,
                           java.io.IOException
Set the schedStorageType represented by an integer value. This method should not be used by high level Schedule MIB applications.
Parameters:
storageType - the schedule's schedStorageType value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setVolatile

public void setVolatile()
                 throws SnmpException,
                        java.io.IOException
Make this schedule stored volatile at the agent. (schedStorageType == volatile(2)).
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setNonVolatile

public void setNonVolatile()
                    throws SnmpException,
                           java.io.IOException
Make this schedule stored non-volatile at the agent. (schedStorageType == nonVolatile(3)).
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setPermanent

public void setPermanent()
                  throws SnmpException,
                         java.io.IOException
Make this schedule stored permanently at the agent. (schedStorageType == permanent(4)).
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setReadOnly

public void setReadOnly()
                 throws SnmpException,
                        java.io.IOException
Make this schedule stored read-only at the agent. (schedStorageType == readOnly(5)).
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getRowStatus

public int getRowStatus()
                 throws SnmpException,
                        java.io.IOException
Return an integer value representing the schedRowStatus. This method should not be used by high level Schedule MIB applications.
Returns:
the schedule's schedRowStatus value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

getRowStatusString

public java.lang.String getRowStatusString()
                                    throws SnmpException,
                                           java.io.IOException
Return a String representing the schedRowStatus.
Returns:
the schedule's schedRowStatus string
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

setRowStatus

public void setRowStatus(int status)
                  throws SnmpException,
                         java.io.IOException
Return an integer value representing the schedRowStatus. This method should not be used by high level Schedule MIB applications.
Parameters:
status - the schedule's schedRowStatus value
Throws:
SnmpException - if an Snmp request fails
java.io.IOException - if a local I/O problem occurs

toString

public java.lang.String toString()
Return a String representation of the Schedule. Overrides java.lang.Object.
Overrides:
toString in class java.lang.Object