|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.LightweightBarteringGrid
public abstract class LightweightBarteringGrid
The Lightweight Bartering Grid middleware allows Peers to gridify their computational and storage Resources, and barter them globally following various negotiation/accounting strategies.
Field Summary | |
---|---|
static java.lang.String |
VERSION
Lightweight Bartering Grid current version. |
Constructor Summary | |
---|---|
LightweightBarteringGrid()
|
Method Summary | |
---|---|
static java.lang.String[] |
getJarDependencies()
|
static VirtualizationLevel |
getMode()
Returns current operating mode. |
static Scenario |
getScenario()
Returns current Scenario (legal in SIM mode only). |
static long |
getTime()
Returns current time: SIM mode - in seconds since the beginning of the simulation LIVE mode - in seconds since the epoch |
static void |
handleGridException(GridException e)
|
static void |
setMode(VirtualizationLevel mode)
Sets current operating mode (callable only once). |
static void |
setSimulator(Simulator sim,
Scenario sc)
Sets current Simulator and Scenario (legal in SIM mode only). |
static long |
setTime(long time)
Sets current time to target time (legal in SIM mode only). |
static long |
shiftTime(long timeshift)
Shifts current time forward by target amount (legal in SIM mode only). |
static java.lang.String |
welcome()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
Constructor Detail |
---|
public LightweightBarteringGrid()
Method Detail |
---|
public static java.lang.String welcome()
public static void setMode(VirtualizationLevel mode) throws GridException
mode
- target operating mode
GridException
- if target mode is illegal,
or a mode has already been setpublic static VirtualizationLevel getMode()
public static void setSimulator(Simulator sim, Scenario sc) throws GridException
sim
- target Simulatorsc
- target Scenario
GridException
- if target Scenario is illegal,
or current mode is illegalpublic static Scenario getScenario() throws GridException
GridException
- if current mode is illegalpublic static long getTime() throws GridException
GridException
- if time status is corruptedpublic static long setTime(long time) throws GridException
time
- target time
GridException
- if target time is illegal,
current mode is illegal, or time status is corruptedpublic static long shiftTime(long timeshift) throws GridException
timeshift
- target time shift
GridException
- if target time shift is illegal,
current mode is illegal, or time status is corruptedpublic static void handleGridException(GridException e)
public static java.lang.String[] getJarDependencies()
|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.