|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.environment.Environment
Used to provide properties, timesource, loggers etc to the FreePastry apps and components. XXX: Plan is to place the environment inside a PastryNode.
| Field Summary | |
static java.lang.String[] |
defaultParamFileArray
DESCRIBE THE FIELD |
LogManager |
logging
DESCRIBE THE FIELD |
Parameters |
params
DESCRIBE THE FIELD |
RandomSource |
randomSource
DESCRIBE THE FIELD |
SelectorManager |
selectorManager
DESCRIBE THE FIELD |
TimeSource |
time
DESCRIBE THE FIELD |
| Constructor Summary | |
Environment()
Convienience for defaults. |
|
Environment(SelectorManager sm,
RandomSource rs,
TimeSource time,
LogManager lm,
Parameters params)
Constructor. |
|
Environment(java.lang.String paramFileName)
Constructor for Environment. |
|
Environment(java.lang.String[] orderedDefaultFiles,
java.lang.String paramFileName)
Convienience for defaults. |
|
| Method Summary | |
protected void |
chooseDefaults()
Can be easily overridden by a subclass. |
LogManager |
getLogManager()
Gets the LogManager attribute of the Environment object |
Parameters |
getParameters()
Gets the Parameters attribute of the Environment object |
RandomSource |
getRandomSource()
Gets the RandomSource attribute of the Environment object |
SelectorManager |
getSelectorManager()
Gets the SelectorManager attribute of the Environment object |
TimeSource |
getTimeSource()
Gets the TimeSource attribute of the Environment object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public SelectorManager selectorManager
public RandomSource randomSource
public TimeSource time
public LogManager logging
public Parameters params
public static final java.lang.String[] defaultParamFileArray
| Constructor Detail |
public Environment(SelectorManager sm,
RandomSource rs,
TimeSource time,
LogManager lm,
Parameters params)
sm - the SelectorManager. Default: rice.selector.SelectorManagerrs - the RandomSource. Default:
rice.environment.random.simple.SimpleRandomSourcetime - the TimeSource. Default:
rice.environment.time.simple.SimpleTimeSourcelm - the LogManager. Default: rice.environment.logging.simple.SimpleLogManagerparams - DESCRIBE THE PARAMETER
public Environment(java.lang.String[] orderedDefaultFiles,
java.lang.String paramFileName)
throws java.io.IOException
paramFileName - the file where parameters are savedorderedDefaultFiles - DESCRIBE THE PARAMETER
java.io.IOException - DESCRIBE THE EXCEPTION
java.io.IOException
public Environment(java.lang.String paramFileName)
throws java.io.IOException
paramFileName - DESCRIBE THE PARAMETER
java.io.IOException - DESCRIBE THE EXCEPTION
public Environment()
throws java.io.IOException
java.io.IOException - DESCRIBE THE EXCEPTION| Method Detail |
public SelectorManager getSelectorManager()
public RandomSource getRandomSource()
public TimeSource getTimeSource()
public LogManager getLogManager()
public Parameters getParameters()
protected void chooseDefaults()
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||