edu.washington.cs.pl_if.plc
Class PLCentralCache

java.lang.Object
  extended by edu.washington.cs.pl_if.plc.PLCentralCache
All Implemented Interfaces:
Runnable

public class PLCentralCache
extends Object
implements Runnable


Field Summary
static double MAX_PLC_CACHE_AGE
           
 
Constructor Summary
PLCentralCache(Credentials cred)
           
 
Method Summary
 int addHostsToSlice(PlanetLabHost[] hosts)
           
 void debugGetMethodHelp(String method)
           
 void debugListMethods()
           
 PlanetLabHost[] getAllHosts()
           
 PlanetLabHost getHost(int plcHostId)
           
 PlanetLabHost[] getHostsNotInSlice(PlanetLabHost[] hosts)
           
 ConcurrentHashMap<PlanetLabHost,PlanetLabSite> getHostToSiteMapping()
           
 double getProgress()
           
 PlanetLabSite getSite(int siteId)
           
 ConcurrentHashMap<PlanetLabSite,Vector<PlanetLabHost>> getSiteToHostMapping()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_PLC_CACHE_AGE

public static final double MAX_PLC_CACHE_AGE
See Also:
Constant Field Values
Constructor Detail

PLCentralCache

public PLCentralCache(Credentials cred)
Method Detail

addHostsToSlice

public int addHostsToSlice(PlanetLabHost[] hosts)

debugGetMethodHelp

public void debugGetMethodHelp(String method)

debugListMethods

public void debugListMethods()

getAllHosts

public PlanetLabHost[] getAllHosts()

getHostsNotInSlice

public PlanetLabHost[] getHostsNotInSlice(PlanetLabHost[] hosts)

getHostToSiteMapping

public ConcurrentHashMap<PlanetLabHost,PlanetLabSite> getHostToSiteMapping()

getProgress

public double getProgress()

getSite

public PlanetLabSite getSite(int siteId)

getHost

public PlanetLabHost getHost(int plcHostId)

getSiteToHostMapping

public ConcurrentHashMap<PlanetLabSite,Vector<PlanetLabHost>> getSiteToHostMapping()

run

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