public class Sprinkler extends Service
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
cfgDir, dnaPool, MESSAGE_RECORDING_FORMAT_BINARY, MESSAGE_RECORDING_FORMAT_XML
Constructor and Description |
---|
Sprinkler(java.lang.String n) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
void |
connect(java.lang.String port) |
java.util.ArrayList<Cron.Task> |
getCronTasks() |
java.util.ArrayList<java.lang.String> |
getHistory() |
static ServiceType |
getMetaData()
This static method returns all the details of the class without it having
to be constructed.
|
static void |
main(java.lang.String[] args) |
void |
on(int pin,
int minutes) |
void |
onTimeToWater() |
void |
startService() |
void |
stop() |
void |
stopService()
Stops the service.
|
void |
waterBack() |
void |
waterFront() |
void |
waterGarden() |
addListener, addListener, addTask, addTask, addTask, addTaskOneShot, allowDisplay, allowDisplay, attach, attach, broadcastState, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, detach, echoHeartbeat, error, error, error, getAttached, getCfgDir, getComm, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDna, getDnaString, getHostName, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLastError, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeerKey, getPeerName, getServiceResourceFile, getSimpleName, getTasks, getThisThread, getType, hasError, hasPeers, help, help, in, info, info, invoke, invoke, invoke, invokeOn, isAttached, isAttached, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preProcessHook, preRoutingHook, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeers, releaseService, removeAllListeners, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, save, send, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, setInstanceId, setName, setPeer, setSecurityProvider, setState, setThisThread, setVirtual, sleep, stackToString, startHeartbeat, startPeer, startPeer, startRecording, stopHeartbeat, stopMsgRecording, subscribe, subscribe, subscribe, toString, unsubscribe, unsubscribe, unsubscribe, updateStats, warn, warn
public static void main(java.lang.String[] args) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
java.io.IOException
public void connect() throws java.io.IOException
java.io.IOException
public void connect(java.lang.String port) throws java.io.IOException
java.io.IOException
public java.util.ArrayList<java.lang.String> getHistory()
public java.util.ArrayList<Cron.Task> getCronTasks()
public void onTimeToWater()
public void waterFront()
public void waterBack()
public void waterGarden()
public void startService()
startService
in interface ServiceInterface
startService
in class Service
public void stop()
public void stopService()
Service
stopService
in interface ServiceInterface
stopService
in class Service
public void on(int pin, int minutes)
public static ServiceType getMetaData()