edu.cmu.emulator.sched
Class SchedClient

java.lang.Object
  extended by edu.cmu.emulator.sched.SchedClient
All Implemented Interfaces:
Runnable

public class SchedClient
extends Object
implements Runnable


Field Summary
static boolean bypassToken
           
private static boolean debug
           
private static int REFRESH_INTERVAL
           
private  boolean running
           
private  SchedServer schedServer
           
private  String schedServerHost
           
private static long SLOT_WARN_DELTA
           
private  long slotEndMillis
           
private  String userToken
           
 
Constructor Summary
SchedClient(String userToken, String schedServerHost)
           
SchedClient(String userToken, String schedServerHost, boolean refresh)
           
 
Method Summary
private  long getMillisRemaining()
           
 boolean isScheduled()
           
 long millisRemaining()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userToken

private String userToken

schedServerHost

private String schedServerHost

schedServer

private SchedServer schedServer

slotEndMillis

private long slotEndMillis

running

private boolean running

bypassToken

public static final boolean bypassToken

debug

private static final boolean debug
See Also:
Constant Field Values

REFRESH_INTERVAL

private static final int REFRESH_INTERVAL
See Also:
Constant Field Values

SLOT_WARN_DELTA

private static final long SLOT_WARN_DELTA
See Also:
Constant Field Values
Constructor Detail

SchedClient

public SchedClient(String userToken,
                   String schedServerHost)

SchedClient

public SchedClient(String userToken,
                   String schedServerHost,
                   boolean refresh)
Method Detail

getMillisRemaining

private long getMillisRemaining()

isScheduled

public boolean isScheduled()

millisRemaining

public long millisRemaining()

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2013. All Rights Reserved.