|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--aleph.Aleph
Provides basic utility methods.
Aleph defines the following system properties:
aleph.*
properties may be defined by various packages
Any system property beginning with aleph
is propagated to all
PEs when they are started up.
Constructor Summary | |
Aleph()
|
Method Summary | |
static void |
assert(boolean assertion,
java.lang.String label)
Test an assertion, panic on failure. This is your brain on bugs. |
static void |
debug(java.lang.String msg)
Send a line of output to debugging display. |
static void |
debug(java.lang.String msg,
boolean trace)
Send a line of output to debugging stream. |
static void |
error(java.lang.String message)
display error message |
static void |
error(java.lang.Throwable throwable)
display error message |
static void |
exit()
Shut down the computation gracefully. |
static void |
exit(int code)
Shut down the computation gracefully. |
static void |
exit(java.lang.String why)
Shut down the computation gracefully. |
static boolean |
getConfirm()
|
static int |
getIntProperty(java.lang.String key,
int value)
Return integer value of Aleph property. |
static java.lang.String |
getLongBanner()
Print out long banner listing managers, etc. |
static boolean |
getPopup()
Should warning and error messages be displayed in popup windows? |
static int |
getPort()
Get the port number used to find servers. |
static java.util.Properties |
getProperties()
Returns subset of system properties that match aleph.* |
static java.lang.String |
getProperty(java.lang.String key)
Look up an Aleph property. |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String value)
Look up an Aleph property. |
static int |
getVerbosity()
Read loquacity level. |
static void |
inform(java.lang.String message)
display informative message |
static void |
inform(java.lang.Throwable throwable)
display informative message |
static boolean |
isBatch()
|
static void |
main(java.lang.String[] args)
Main startup for Aleph. |
static void |
panic(java.lang.String message)
Panic shutdown. |
static void |
panic(java.lang.Throwable e)
Panic shutdown. Print exception's detail message, stack trace, and dump interesting objects. |
static void |
register(java.lang.String label,
java.lang.Object object)
Register interesting object to be part of panic-induced dump. |
static void |
setDebugFile(java.lang.String title)
reset name of debug file |
static void |
setPopup(boolean value)
Should warning and error messages be displayed in popup windows? |
static void |
setPort(int v)
Set the port number used to find servers. |
static void |
setProperty(java.lang.String key,
java.lang.String value)
Define an Aleph property. |
static void |
setVerbosity(int level)
Adjust loquacity level. |
static boolean |
verbosity(int level)
Test loquacity level. |
static void |
warning(java.lang.String message)
display warning message |
static void |
warning(java.lang.Throwable throwable)
display warning message |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Aleph()
Method Detail |
public static int getPort()
public static void setPort(int v)
v
- Value to assign to port.public static boolean verbosity(int level)
level
- candidate verbosity levelpublic static void setVerbosity(int level)
aleph.Config.verbosity
.
Overridden by run-time flag -Daleph.verbosity=
public static int getVerbosity()
verbosity()
instead.public static boolean isBatch()
public static boolean getConfirm()
public static void warning(java.lang.String message)
message
- what to displaypublic static void warning(java.lang.Throwable throwable)
e
- what to displaypublic static void error(java.lang.String message)
message
- what to displaypublic static void inform(java.lang.Throwable throwable)
message
- what to displaypublic static void inform(java.lang.String message)
message
- what to displaypublic static void error(java.lang.Throwable throwable)
e
- what to displaypublic static void setProperty(java.lang.String key, java.lang.String value)
key
- bind to this keybind
- this valuepublic static java.lang.String getProperty(java.lang.String key)
key
- return value bound to this key, or null
public static java.lang.String getProperty(java.lang.String key, java.lang.String value)
key
- return value bound to this keyvalue
- return this value if key is unboundpublic static int getIntProperty(java.lang.String key, int value)
key
- property namevalue
- default if property not found or not integerpublic static java.util.Properties getProperties()
aleph.*.
- Returns:
- aleph-related properties
public static void exit(java.lang.String why)
why
- the reason whypublic static void exit()
public static void exit(int code)
code
- status codepublic static void panic(java.lang.Throwable e)
e
- Exception that caused the problem.public static void panic(java.lang.String message)
message
- Famous last words.public static void setPopup(boolean value)
public static boolean getPopup()
public static void assert(boolean assertion, java.lang.String label)
public static void debug(java.lang.String msg)
public static void debug(java.lang.String msg, boolean trace)
Config
public static void main(java.lang.String[] args)
public static java.lang.String getLongBanner()
public static void setDebugFile(java.lang.String title)
title
- debug file is public static void register(java.lang.String label, java.lang.Object object)
label
- suggestive tagobject
- dump me!
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |