Class GetSystemUpdateStateResponse.UpdateState
java.lang.Object
io.openems.edge.core.host.jsonrpc.GetSystemUpdateStateResponse.UpdateState
- Enclosing class:
- GetSystemUpdateStateResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds aException
to the log.void
Adds a line to the log.void
addLog
(String label, ExecuteSystemCommandResponse response) Adds aExecuteSystemCommandResponse
with a label to the log.boolean
void
reset()
Resets theGetSystemUpdateStateResponse.UpdateState
object.void
setDebugMode
(boolean debugMode) void
setPercentCompleted
(int percentCompleted) void
setRunning
(boolean isRunning) protected com.google.gson.JsonObject
-
Constructor Details
-
UpdateState
public UpdateState()
-
-
Method Details
-
setRunning
public void setRunning(boolean isRunning) -
isRunning
public boolean isRunning() -
setPercentCompleted
public void setPercentCompleted(int percentCompleted) -
setDebugMode
public void setDebugMode(boolean debugMode) -
addLog
Adds a line to the log.- Parameters:
line
- the line
-
addLog
Adds aException
to the log.- Parameters:
e
- theException
-
addLog
Adds aExecuteSystemCommandResponse
with a label to the log.- Parameters:
label
- the labelresponse
- theExecuteSystemCommandResponse
-
toJsonObject
protected com.google.gson.JsonObject toJsonObject() -
reset
public void reset()Resets theGetSystemUpdateStateResponse.UpdateState
object.
-