|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.ls.lars.server.Lars
main class of the "living agents runtime system II"
Introduction to LARS Platform Runlevels:
createInstance()
method without any
unforeseen exceptions/errors.
lars security manager
for the JVM has been set without any
unforeseen exceptions/errors.
lars security manager
for the JVM has been set without any
unforeseen exceptions/errors.
agent manager
has been created and started without any
unforeseen exceptions/errors.
agent manager
has received a valid request to shutdown the lars platform.
System.exit(int)
is executed.
Field Summary | |
protected static String |
revisionInformation
revision information string, managed by our version control system |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
static Lars |
createInstance()
Creates a new Lars object and returns it, if no Lars is yet running in this JVM. |
static void |
executeShutdownHook()
logs the current stack trace and all system information |
String |
getClassName()
returns the name of the class |
static String |
getEncoding()
returns the name of the character encoding, that is currently in use (e.g. |
static String |
getHomePlatform()
returns the name of the local platform |
static String |
getLocalIpAddress()
returns the IP address of the local platform |
static long |
getStartTime()
returns the start time of lars (in milliseconds since 01-jan-1970) |
String |
getSystemInformation()
collects all available system information (running threads, memory, inbox size of all agents, etc.) |
static void |
logSystemInformation()
logs all system information found by getSystemInformation() |
static void |
main(String[] args)
main method |
void |
run()
Reads and interprets tha platform's config file, installs the security manager and creates and starts AgentManager. |
void |
start()
Checks the the lars platform's current run level and starts the lars platform, if the run level is "LARS_INSTANCE_CREATED". |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static String revisionInformation
Method Detail |
public static Lars createInstance() throws IllegalThreadStateException
IllegalThreadStateException
- if a Lars instance already existspublic void start()
start
in class Thread
public void run()
Note:
The Jave Virtual Machine is terminated with exit code -1, if a security manager is already set.
The Jave Virtual Machine is terminated with exit code -2, if no local IP address is configured and
the local IP address cannot be determined.
The Jave Virtual Machine is terminated with exit code -3, if any unforeseen RuntimeException is caught.
The Jave Virtual Machine is terminated with exit code -4, if any unforeseen Error is caught.
run
in class Thread
public static String getHomePlatform()
public static String getLocalIpAddress()
public static String getEncoding()
public static long getStartTime()
public String getClassName()
getClassName
in interface ISystemErrorLog
"Lars"
public static void logSystemInformation()
getSystemInformation()
public String getSystemInformation()
getSystemInformation
in interface ISystemErrorLog
public static void executeShutdownHook()
public static void main(String[] args)
args
- String array containing command line parameters
-config(e.g. "lars.cfg") -loglevel (one of the SystemLogger loglevels, e.g. "TRACE5") -revision prints out the revision information and exits
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |