7 #include <UserEvent.idl>   103         valueobject ServerPowerStateEvent extends 
idl.Event {
   113         valueobject ServerPowerControlInitiatedEvent extends 
event.UserEvent {
   122         valueobject ServerPowerControlCompletedEvent extends 
idl.Event {
   132         valueobject ServerReachabilityEvent extends 
idl.Event {
   141         valueobject ServerAddedEvent extends 
event.UserEvent {
   149         valueobject ServerSettingsChangedEvent extends 
event.UserEvent {
   158         valueobject ServerDeletedEvent extends 
event.UserEvent {
   170         constant 
int ERR_NO_SUCH_ID             = 1; 
   171         constant 
int ERR_INVALID_SETTINGS       = 2; 
   172         constant 
int ERR_DUPLICATE_HOSTNAME     = 3; 
   173         constant 
int ERR_MAX_SERVERS_REACHED    = 4; 
   209         int deleteServer(in 
int id);
   220         int getServer(out 
Server server, in 
int id);
   227         map<int, Server> listServers();
   241         int powerControl(in 
int id, in 
boolean on);
 int timeout
Seconds the power check takes before it ends / times out. 
Definition: ServerMonitor.idl:62
Server Monitor Interface. 
Definition: ServerMonitor.idl:13
Server power target is on. 
Definition: ServerMonitor.idl:30
No response from server. 
Definition: ServerMonitor.idl:21
boolean on
True if server shall be switched on, false otherwise. 
Definition: ServerMonitor.idl:116
int sshPort
SSH port of the server. 
Definition: ServerMonitor.idl:66
ServerReachability reachable
Reachability state. 
Definition: ServerMonitor.idl:91
ServerSettings newSettings
Settings after change. 
Definition: ServerMonitor.idl:152
ServerPowerState
Server Power Control State. 
Definition: ServerMonitor.idl:28
Switching the outlet or outlet group off failed. 
Definition: ServerMonitor.idl:41
ServerPowerControlResult
Server Power Control Result. 
Definition: ServerMonitor.idl:38
ServerStatus status
Server status. 
Definition: ServerMonitor.idl:167
ServerSettings settings
Server settings. 
Definition: ServerMonitor.idl:166
int resumeCount
Number of resumes before going back to WAITING state. 
Definition: ServerMonitor.idl:81
int responses
Number of responses received. 
Definition: ServerMonitor.idl:95
Object target
Target for power control, Outlet or OutletGroup. 
Definition: ServerMonitor.idl:59
Power state currently not known. 
Definition: ServerMonitor.idl:29
Error issuing the shutdown command to the server. 
Definition: ServerMonitor.idl:40
ServerSettings settings
Settings of the added server. 
Definition: ServerMonitor.idl:143
boolean enabled
Pinging enabled. 
Definition: ServerMonitor.idl:75
ServerPowerControlResult result
Result of the power control operation. 
Definition: ServerMonitor.idl:125
Server is up and running. 
Definition: ServerMonitor.idl:20
int requests
Number of requests sent. 
Definition: ServerMonitor.idl:94
ServerSettings oldSettings
Settings before change. 
Definition: ServerMonitor.idl:151
ServerReachability
Server Reachability State. 
Definition: ServerMonitor.idl:18
string host
Server hostname/IP address. 
Definition: ServerMonitor.idl:105
int activationCount
Minimum number of successful pings to enable feature. 
Definition: ServerMonitor.idl:78
boolean enabled
Power control for this server enabled. 
Definition: ServerMonitor.idl:58
Basic IDL definitions. 
Definition: Event.idl:10
int failures
Number of consecutive failed pings. 
Definition: ServerMonitor.idl:96
ServerReachability reachable
Current Reachability state. 
Definition: ServerMonitor.idl:135
ServerPowerCheckMethod powerCheck
Method to check server's power state. 
Definition: ServerMonitor.idl:60
ServerPowerSettings powerSettings
Settings for controlling the power state of the server. 
Definition: ServerMonitor.idl:82
Server Entry. 
Definition: ServerMonitor.idl:165
Server is assumed to be off after a time interval. 
Definition: ServerMonitor.idl:50
int pingInterval
Wait time after successful ping. 
Definition: ServerMonitor.idl:76
string username
Login used to issue shutdown command to the server. 
Definition: ServerMonitor.idl:64
ServerPowerState oldPowerState
Old power state. 
Definition: ServerMonitor.idl:106
string host
Server hostname/IP address. 
Definition: ServerMonitor.idl:74
Server Reachability Status. 
Definition: ServerMonitor.idl:88
ServerPowerControlResult lastPowerControlResult
Last result of a power control operation. 
Definition: ServerMonitor.idl:90
int failureCount
Number of unsuccessful pings to consider server down. 
Definition: ServerMonitor.idl:79
int resumeDelay
Wait time before resuming pinging. 
Definition: ServerMonitor.idl:80
Settings for controlling and checking power state of the server. 
Definition: ServerMonitor.idl:57
string shutdownCmd
Shutdown command to send to the server. 
Definition: ServerMonitor.idl:63
ServerPowerCheckMethod
Methods of checking power state. 
Definition: ServerMonitor.idl:49
time lastRequest
Timestamp of last request sent. 
Definition: ServerMonitor.idl:92
string password
Password for the login, write-only, not set if empty. 
Definition: ServerMonitor.idl:65
Switching the outlet or outlet group on failed. 
Definition: ServerMonitor.idl:42
ServerPowerState newPowerState
New power state. 
Definition: ServerMonitor.idl:107
Server power target is off. 
Definition: ServerMonitor.idl:31
Waiting for reliable connection. 
Definition: ServerMonitor.idl:19
int retryInterval
Wait time after unsuccessful ping. 
Definition: ServerMonitor.idl:77
time lastResponse
Timestamp of last response received. 
Definition: ServerMonitor.idl:93
double powerThreshold
Active power below this threshold means server is off (in Watt) 
Definition: ServerMonitor.idl:61
No error, operation may still be in progress. 
Definition: ServerMonitor.idl:39
ServerPowerState powerState
Power control state. 
Definition: ServerMonitor.idl:89
Server Reachability Settings. 
Definition: ServerMonitor.idl:73
int resumes
Number of resumes. 
Definition: ServerMonitor.idl:97
Server Monitor. 
Definition: ServerMonitor.idl:10