edu.cmu.emulator.sched
Class SchedServerImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.cmu.emulator.sched.SchedServerImpl
- All Implemented Interfaces:
- SchedServer, Serializable, Runnable, Remote
public class SchedServerImpl
- extends UnicastRemoteObject
- implements SchedServer, Runnable
- See Also:
- Serialized Form
tokenToUserMap
protected HashMap<String,String> tokenToUserMap
running
protected boolean running
runtime
protected Runtime runtime
dbHost
protected String dbHost
schedDBMonitor
protected SchedDBMonitor schedDBMonitor
userList
protected ArrayList<String> userList
lastUserListTime
protected long lastUserListTime
inStartup
protected boolean inStartup
sshWorker
protected SSHWorker sshWorker
lastActivity
protected long lastActivity
USER_LIST_INTERVAL
protected static final int USER_LIST_INTERVAL
- See Also:
- Constant Field Values
SCHED_CHECK_INTERVAL
protected static final int SCHED_CHECK_INTERVAL
- See Also:
- Constant Field Values
END_NOTIFICATION_THRESH_SECS
protected static final int END_NOTIFICATION_THRESH_SECS
- See Also:
- Constant Field Values
END_NOTIFICATION_INTERVAL_MILLIS
protected static final int END_NOTIFICATION_INTERVAL_MILLIS
- See Also:
- Constant Field Values
inactivityThresh
protected static final int inactivityThresh
- See Also:
- Constant Field Values
reservationClaimThresh
protected static final int reservationClaimThresh
- See Also:
- Constant Field Values
batchUsers
protected static final String[] batchUsers
systemUsers
protected static final String[] systemUsers
SchedServerImpl
public SchedServerImpl()
throws RemoteException
- Throws:
RemoteException
SchedServerImpl
public SchedServerImpl(String dbHost)
throws RemoteException
- Throws:
RemoteException
start
public void start()
throws Exception
- Throws:
Exception
init
protected void init()
throws Exception
- Throws:
Exception
findUserTokens
protected void findUserTokens()
throws Exception
- Throws:
Exception
secondsRemaining
public int secondsRemaining(String userToken)
- Specified by:
secondsRemaining
in interface SchedServer
run
public void run()
- Specified by:
run
in interface Runnable
notifyTimeRemaining
protected void notifyTimeRemaining(Reservation curRes)
notifyTimeRemaining
protected void notifyTimeRemaining(String userName,
long secondsRemaining)
sendUserMessage
protected void sendUserMessage(String userName,
String message)
checkForInactivity
protected void checkForInactivity(Reservation curRes)
getActive
protected boolean getActive(Reservation curRes)
isBatchUser
protected boolean isBatchUser(String userName)
startBatch
public void startBatch(Reservation batchRes)
stopBatch
public void stopBatch(Reservation batchRes)
startReservation
protected void startReservation(Reservation res)
stopReservation
protected void stopReservation(Reservation res)
startUser
protected void startUser(Reservation res)
stopUser
protected void stopUser(Reservation res)
stopUserOnHost
protected void stopUserOnHost(String userName,
int userID,
String host)
startUserOnHost
protected void startUserOnHost(String userName,
String host)
clean
public void clean(String host)
reboot
public void reboot(String host)
rExec
public void rExec(String host,
String rCmd)
main
public static void main(String[] args)
Copyright © 2013. All Rights Reserved.