|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.ackd.readers.ReaderSchedule
public class ReaderSchedule
ReaderSchedule class.
| Method Summary | |
|---|---|
static ReaderSchedule |
createSchedule()
createSchedule |
static ReaderSchedule |
createSchedule(long initDelay,
long interval,
int attempts,
TimeUnit unit)
createSchedule |
static ReaderSchedule |
createSchedule(long interval,
String unit)
Creates a proper ReaderSchedule based by computing a new interval based on the
string representation of units from the ackd-configuration:
hours(h), days(d), minutes(m), seconds(s), milliseconds(ms)
note: if the specification in the configuration is seconds (s) or milliseconds (ms), then no computation is made
to adjust the interval. |
long |
getAttemptsRemaining()
getAttemptsRemaining |
long |
getInitialDelay()
getInitialDelay |
long |
getInterval()
getInterval |
TimeUnit |
getUnit()
getUnit |
void |
setAttemptsRemaining(long attemptsRemaining)
setAttemptsRemaining |
void |
setInitialDelay(long initialDelay)
setInitialDelay |
void |
setInterval(long interval)
setInterval |
void |
setUnit(TimeUnit unit)
setUnit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ReaderSchedule createSchedule()
createSchedule
ReaderSchedule object.
public static ReaderSchedule createSchedule(long initDelay,
long interval,
int attempts,
TimeUnit unit)
createSchedule
initDelay - a long.interval - a long.attempts - a int.unit - a TimeUnit object.
ReaderSchedule object.public long getInitialDelay()
getInitialDelay
public void setInitialDelay(long initialDelay)
setInitialDelay
initialDelay - a long.public long getInterval()
getInterval
public void setInterval(long interval)
setInterval
interval - a long.public long getAttemptsRemaining()
getAttemptsRemaining
public void setAttemptsRemaining(long attemptsRemaining)
setAttemptsRemaining
attemptsRemaining - a long.public TimeUnit getUnit()
getUnit
TimeUnit object.public void setUnit(TimeUnit unit)
setUnit
unit - a TimeUnit object.
public static ReaderSchedule createSchedule(long interval,
String unit)
ReaderSchedule based by computing a new interval based on the
string representation of units from the ackd-configuration:
hours(h), days(d), minutes(m), seconds(s), milliseconds(ms)
note: if the specification in the configuration is seconds (s) or milliseconds (ms), then no computation is made
to adjust the interval.
interval - a long.unit - a String object.
ReaderSchedule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||