Operation States (OpStates)
All objects in Ockle’s Network Tree Data Structure keep Operation States of their objects they represent. By tracking the states its easy to find out what component is faulty in the server network.
Server/Outlet/control OpStates
-
class common.common.OpState[source]
Operation state enum, that all other operation states enums extend
-
common.OpState = <class common.common.OpState at 0x3655738>
-
OFF = 'OFF'
Outlet/Control/server are off
-
OK = 'OK'
Outlet/Control/server are on and running
-
SwitchingOff = 'Switching off'
Outlet/Control/server is switching off
-
SwitcingOn = 'Switching on'
Outlet/Control/server is switching on
-
failedToStart = 'Failed to start'
Outlet/Control/server failed to start
-
failedToStop = 'Failed to stop'
Outlet/Control/server failed to stop
-
forcedOff = 'Forced off'
Outlet/Control/server if forced off
-
forcedOn = 'Forced on'
Outlet/Control/server if forced on
-
permanentlyFailedToStart = 'Permanently failed to start'
Outlet/Control/server has permanently failed to start
-
permanentlyFailedToStop = 'Permanently failed to Stop'
Outlet/Control/server has permanently failed to stop
Test OpStates
-
class testers.TemplateTester.TesterOpState[source]
-
TemplateTester.TesterOpState = <class testers.TemplateTester.TesterOpState at 0x38a5b48>
-
FAILED = 'FAILED'
Test has failed
-
SUCCEEDED = 'SUCCEEDED'
Test has succeeded