public class SGARestDaemon extends AbstractDaemon
logger, pluginProperties| Constructor and Description |
|---|
SGARestDaemon(String name,
Map<String,String> actions) |
| Modifier and Type | Method and Description |
|---|---|
void |
control(sgaidl.SGAControlAction sca) |
SGARestCommand |
createCommand(String commandId,
Map<String,String> actions) |
sgaidl.SGACommand |
executeCommand(String commandString,
String commandId,
sgaidl.Pair[] extraParams) |
int |
getHeartbeatInterval() |
sgaidl.SGAPath |
getPath(String path) |
SGARestCommand |
removeCommand(String commandId) |
void |
setHeartbeatInterval(int seconds) |
getPaths, ping, setDefaultConfigKeys, setDefaultInfoKeys, setProperties, start, stoppublic void setHeartbeatInterval(int seconds)
public int getHeartbeatInterval()
public sgaidl.SGAPath getPath(String path) throws sgaidl.InvalidPathException, sgaidl.PathNotFoundException
getPath in interface sgaidl.SGADaemonOperationsgetPath in class AbstractDaemonsgaidl.InvalidPathExceptionsgaidl.PathNotFoundExceptionpublic SGARestCommand createCommand(String commandId, Map<String,String> actions)
public sgaidl.SGACommand executeCommand(String commandString, String commandId, sgaidl.Pair[] extraParams) throws sgaidl.SystemException, sgaidl.MissingParameterException
executeCommand in interface sgaidl.SGADaemonOperationsexecuteCommand in class AbstractDaemonsgaidl.SystemExceptionsgaidl.MissingParameterExceptionpublic SGARestCommand removeCommand(String commandId)
public void control(sgaidl.SGAControlAction sca)
control in interface sgaidl.SGADaemonOperationscontrol in class AbstractDaemonCopyright © 2017. All rights reserved.