public class ServerRunner
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<Slot> |
bookings |
static CourseList |
cl |
static TimeTable |
tt |
static UserList |
ul |
| Constructor and Description |
|---|
ServerRunner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearOldRequests()
This method will remove all the requests that are more than 5 days old.
|
private static void |
initialise()
Load up the temporary parameters in ram for faster serving to clients.
|
static void |
main(java.lang.String[] args) |
static void |
saveToDisk()
Saves the state to disk.
|
public static volatile TimeTable tt
public static volatile CourseList cl
public static volatile UserList ul
public static volatile java.util.List<Slot> bookings
private static void initialise()
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundException - When Files are corrupted and cannot be readjava.io.IOException - Should be taken care of manually in case this ever occurspublic static void saveToDisk()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException - The required database files were not found.java.io.IOException - Unknown hazards. Needs manual Attention.public static void clearOldRequests()
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException