| Constructor and Description |
|---|
WDTimerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close a watchdog (file).
|
void |
disable()
Disable watchdog with "Magic Close".
|
static WDTimer |
getInstance()
Singleton.
|
int |
getTimeOut()
Get timeout
|
void |
heartbeat()
Ping a watchdog.
|
void |
open()
Open Watchdog.
|
void |
open(String file)
Open custom Watchdog
|
void |
setTimeOut(int timeout)
Set new timeout
|
public static WDTimer getInstance()
public void open()
throws IOException
open in interface WDTimerIOExceptionpublic void open(String file) throws IOException
file - IOExceptionpublic void setTimeOut(int timeout)
throws IOException
setTimeOut in interface WDTimertimeout - IOExceptionpublic int getTimeOut()
throws IOException
getTimeOut in interface WDTimerIOExceptionpublic void heartbeat()
throws IOException
heartbeat in interface WDTimerIOExceptionpublic void disable()
throws IOException
disable in interface WDTimerIOExceptionpublic void close()
throws IOException
disable Raspberry reboot after
timeout expired.close in interface WDTimerIOExceptionCopyright © 2012–2015 Pi4J. All rights reserved.