public final class WDTimerImpl extends Object implements WDTimer
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 WDTimerImpl()
public static WDTimer getInstance()
public void open() throws IOException
open
in interface WDTimer
IOException
public void open(String file) throws IOException
file
- IOException
public void setTimeOut(int timeout) throws IOException
setTimeOut
in interface WDTimer
timeout
- IOException
public int getTimeOut() throws IOException
getTimeOut
in interface WDTimer
IOException
public void heartbeat() throws IOException
heartbeat
in interface WDTimer
IOException
public void disable() throws IOException
disable
in interface WDTimer
IOException
public void close() throws IOException
disable
Raspberry reboot after
timeout expired.close
in interface WDTimer
IOException
Copyright © 2012–2019 Pi4J. All rights reserved.