|
JAFS API v2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openafs.jafs.Server.ExecutableTime
Field Summary | |
static short |
EVERYDAY
|
(package private) static DecimalFormat |
formatter
|
static short |
FRIDAY
|
static short |
MONDAY
|
static short |
NEVER
|
static short |
NOW
|
static short |
SATURDAY
|
static short |
SUNDAY
|
static short |
THURSDAY
|
static short |
TUESDAY
|
static short |
WEDNESDAY
|
Constructor Summary | |
(package private) |
Server.ExecutableTime()
Internal constructor used to construct an empty object that will be passed to JNI for member synchronization of the BOS Server executable time this object represents. |
|
Server.ExecutableTime(short type)
Constructs an ExecutableTime object that represents either
a "now " or "never " BOS Executable
Restart Time.
|
|
Server.ExecutableTime(short second,
short minute,
short hour)
Constructs an ExecutableTime object that may be used to
represent a daily BOS Executable Restart Time of a process. |
|
Server.ExecutableTime(short second,
short minute,
short hour,
short day)
Constructs an ExecutableTime object that may be used to
represent the BOS Executable Restart Time of a process. |
Method Summary | |
boolean |
equals(Server.ExecutableTime time)
Tests whether two ExecutableTime objects are equal,
based on a
comparison of each of their respective properties. |
short |
getDay()
Returns a numeric representation of the day of this ExecutableTime object. |
String |
getDayString()
Returns a String representation, name for the day of the week or "Everyday", of this object's day property. |
short |
getHour()
Returns the hour of this ExecutableTime object, in 24 hour time. |
short |
getMinute()
Returns the minute of this ExecutableTime object. |
short |
getSecond()
Returns the second of this ExecutableTime object. |
boolean |
isNever()
Returns whether or not the BOS restart time, represented by this ExecutableTime object, is set to " never " or not.
|
boolean |
isNow()
Returns whether or not the BOS restart time, represented by this ExecutableTime object, is set to " now " or not.
|
String |
toString()
Returns the String representation of time value of this ExecutableTime object.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short NEVER
public static final short NOW
public static final short EVERYDAY
public static final short SUNDAY
public static final short MONDAY
public static final short TUESDAY
public static final short WEDNESDAY
public static final short THURSDAY
public static final short FRIDAY
public static final short SATURDAY
static final DecimalFormat formatter
Constructor Detail |
Server.ExecutableTime()
public Server.ExecutableTime(short type) throws IllegalArgumentException
ExecutableTime
object that represents either
a "now
" or "never
" BOS Executable
Restart Time.
Valid values for the type
parameter are ExecutableTime.NOW
or ExecutableTime.NEVER. If a value other than these two is used an
IllegalArgumentException will be thrown.
type
- either ExecutableTime.NOW or ExecutableTime.NEVER
IllegalArgumentException
- If a value other than ExecutableTime.NOW or
ExecutableTime.NEVER is used for the type
parameter.isNow()
,
isNever()
,
Server.ExecutableTime(short, short, short)
public Server.ExecutableTime(short second, short minute, short hour) throws IllegalArgumentException
ExecutableTime
object that may be used to
represent a daily BOS Executable Restart Time of a process.
second
- the second field for this representation of a
BOS Server restart time value (range: 0-59)minute
- the minute field for this representation of a
BOS Server restart time value (range: 0-59)hour
- the hour field for this representation of a BOS
Server restart time value (range: 0-23)
IllegalArgumentException
- If any of the parameters values are out of range
of their respective fields.Server.ExecutableTime(short, short, short, short)
,
getSecond()
,
getMinute()
,
getHour()
public Server.ExecutableTime(short second, short minute, short hour, short day)
ExecutableTime
object that may be used to
represent the BOS Executable Restart Time of a process.
second
- the second field for this representation of a
BOS Server restart time value (range: 0-59)minute
- the minute field for this representation of a
BOS Server restart time value (range: 0-59)hour
- the hour field for this representation of a BOS
Server restart time value (range: 0-23)day
- the day field for this representation of a BOS
Server restart time value.ExecutableTime.EVERYDAY
(see also Server.ExecutableTime(short, short, short)
)
ExecutableTime.SUNDAY
ExecutableTime.MONDAY
ExecutableTime.TUESDAY
ExecutableTime.WEDNESDAY
ExecutableTime.THURSDAY
ExecutableTime.FRIDAY
ExecutableTime.SATURDAY
IllegalArgumentException
- If any of the parameters values are out of range
of their respective fields.Server.ExecutableTime(short, short, short)
,
getSecond()
,
getMinute()
,
getHour()
,
getDay()
Method Detail |
public short getSecond() throws IllegalStateException
IllegalStateException
- If the executable time this object represents has a value of
"now
" or "never
".public short getMinute() throws IllegalStateException
IllegalStateException
- If the executable time this object represents has a value of
"now
" or "never
".public short getHour() throws IllegalStateException
IllegalStateException
- If the executable time this object represents has a value of
"now
" or "never
".public short getDay() throws IllegalStateException
Possible return values are:
ExecutableTime.EVERYDAY
ExecutableTime.SUNDAY
ExecutableTime.MONDAY
ExecutableTime.TUESDAY
ExecutableTime.WEDNESDAY
ExecutableTime.THURSDAY
ExecutableTime.FRIDAY
ExecutableTime.SATURDAY
IllegalStateException
- If the executable time this object represents has a value of
"now
" or "never
".public String getDayString() throws IllegalStateException
Possible return values are:
Sunday Monday Tuesday Wednesday Thursday Friday Saturday Everyday
IllegalStateException
- If the executable time this object represents has a value of
"now
" or "never
".getDay()
public boolean isNow()
now
" or not.
This means that at some point in the past, when someone set it to
"now
", the bosserver restarted all its processes,
and never again.
now
"public boolean isNever()
never
" or not.
This means that the bosserver will never restart its processes.
never
"public boolean equals(Server.ExecutableTime time)
ExecutableTime
objects are equal,
based on a
comparison of each of their respective properties. If
"now
" or "never
" is set in either object,
only those properties are analyzed.
time
- the ExecutableTime to test against
public String toString()
ExecutableTime
object.
Possible return values:
<day> at <hh>:<MM>[:<ss>]
Sunday at 04:00 Sunday at 05:10:30 Everyday at 20:00
ExecutableTime
object
|
JAFS API v2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |