public class Monitor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVE |
static java.lang.String |
INACTIVE |
Constructor and Description |
---|
Monitor(int seconds,
java.lang.String comm,
java.lang.String ok,
java.lang.String fail,
java.net.URL url,
java.lang.String startTime,
java.lang.String stopTime)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
addMonitorListener(MonitorListener listener) |
void |
allOff()
switch off all lamps
|
void |
allOn()
switch on all lamps
|
java.lang.String |
getRunStatus() |
boolean |
isBuildOk()
Returns whether the current state of the build is ok.
|
static void |
main(java.lang.String[] args)
Run startMonitor from the command line
|
void |
removeMonitorListener(MonitorListener listener) |
void |
startMonitor()
Start the monitoring for the URL and the ok and feil devices
|
void |
stopMonitor()
Stop the monitoring for the URL and the ok and feil devices
|
public static final java.lang.String INACTIVE
public static final java.lang.String ACTIVE
public Monitor(int seconds, java.lang.String comm, java.lang.String ok, java.lang.String fail, java.net.URL url, java.lang.String startTime, java.lang.String stopTime)
seconds
- between checkscomm
- port to useok
- addressfail
- addressurl
- to startMonitorpublic static void main(java.lang.String[] args)
args
- public void addMonitorListener(MonitorListener listener)
public void removeMonitorListener(MonitorListener listener)
public void allOff()
public void allOn()
public void startMonitor()
public void stopMonitor()
public boolean isBuildOk()
public java.lang.String getRunStatus()
JCSC is released under the terms of the GNU General Public License