edu.cmu.emulator.sched
Class SchedDBMonitor
java.lang.Object
edu.cmu.emulator.sched.SchedDBMonitor
- All Implemented Interfaces:
- Runnable
public class SchedDBMonitor
- extends Object
- implements Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbHost
private String dbHost
dbConnection
private Connection dbConnection
dbURL
private String dbURL
activeRes
private ArrayList<Reservation> activeRes
displayRes
private boolean displayRes
running
private boolean running
dbUserName
private static final String dbUserName
- See Also:
- Constant Field Values
dbPassword
private static final String dbPassword
- See Also:
- Constant Field Values
monitorIntervalMillis
private static final int monitorIntervalMillis
- See Also:
- Constant Field Values
hackNodes
private static final String[] hackNodes
SchedDBMonitor
public SchedDBMonitor(String dbHost)
init
protected void init()
throws Exception
- Throws:
Exception
start
public void start()
throws Exception
- Throws:
Exception
run
public void run()
- Specified by:
run
in interface Runnable
displayActiveRes
public void displayActiveRes()
getUserList
public ArrayList<String> getUserList()
throws SQLException
- Throws:
SQLException
deleteReservation
public void deleteReservation(Reservation res)
getActiveReservations
public ArrayList<Reservation> getActiveReservations()
throws SQLException
- Throws:
SQLException
getActiveReservations
protected ArrayList<Reservation> getActiveReservations(ResultSet rs)
throws SQLException
- Throws:
SQLException
getActiveReservation
public Reservation getActiveReservation(String token)
main
public static void main(String[] args)
Copyright © 2013. All Rights Reserved.