Package domain
Class MonitorRepository
- java.lang.Object
-
- domain.MonitorRepository
-
public class MonitorRepository extends java.lang.Object- Author:
- Vincent Lammens (vincent@vincentlammens.be)
-
-
Constructor Summary
Constructors Constructor Description MonitorRepository()Constructs a MonitorRepository
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetMonitorStatus(java.lang.String name)returns the status of a monitorjava.util.List<java.lang.String>listMonitorNames()Returns a list of the names of the monitorsvoidupdateMonitorStatusInDatabase(java.lang.String name, boolean status)Update the status of a monitor in the database
-
-
-
Method Detail
-
listMonitorNames
public java.util.List<java.lang.String> listMonitorNames()
Returns a list of the names of the monitors- Returns:
- List with the names of the monitors
-
getMonitorStatus
public boolean getMonitorStatus(java.lang.String name) throws java.io.IOExceptionreturns the status of a monitor- Parameters:
name- Name of the monitor- Returns:
- boolean of the status
- Throws:
java.io.IOException
-
updateMonitorStatusInDatabase
public void updateMonitorStatusInDatabase(java.lang.String name, boolean status)Update the status of a monitor in the database- Parameters:
name- name of the monitor to update the status ofstatus- new status of the monitor
-
-