com.nokia.m2m.imp.watchdog
Class WatchdogTimer
java.lang.Object
|
+--com.nokia.m2m.imp.watchdog.WatchdogTimer
- public class WatchdogTimer
- extends Object
WatchdogTimer is used for controlling the IMlet lifecycle.
If the timer has been set on, the IMlet has to reset the timer during the
specified time slot. If the IMlet fails to reset the timer in time,
Nokia 12 GSM module will be reset.
WatchdogTimer is supported by the the Nokia 12 GSM module, but not by the
Nokia 12 IMP 1.0 Concept Simulator.
Method Summary |
void |
resetTimer()
Allows the IMlet to reset the timer. |
void |
setTimeout(int seconds)
Sets the timer on. |
WatchdogTimer
public WatchdogTimer()
setTimeout
public void setTimeout(int seconds)
throws IllegalArgumentException
- Sets the timer on. IMlet will have specific amount of time to reset the
timer or the Nokia 12 GSM module will be reset. The timer can be disabled
by setting value to 0. Other valid values are between 60 to
86400. 60 defines that the timer must be reset at least once a minute
and 86400 defines that the timer must be reset at least once in 24 hours.
This method is supported by the Nokia 12 GSM module but not by the
Nokia 12 IMP 1.0 Concept Simulator.
- Parameters:
seconds
- Defines the timeout value in seconds. The value 0 will disable the timer.
Other supported parameter values are between 60 and 86400.
- Throws:
IllegalArgumentException
resetTimer
public void resetTimer()
- Allows the IMlet to reset the timer. The IMlet must call this method in order to
to reset the timer and prevent the Nokia 12 GSM module from being reset.
This method is supported by the Nokia 12 GSM module but not by the
Nokia 12 IMP 1.0 Concept Simulator.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Portions of this document are under the following copyright:
Copyright © 2003 Nokia. All rights reserved.