|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.kernel.Kernel
class Kernel
This is the core class for the server. It is the first class that is created, and represents the kernel of the runtime. It is responsible for creating and initializing all components of the system and the applications configured to run in this system.
The kernel must be configured with certain
required properties and supports other public
properties. It can also be configured with any of the properties
specified in the StandardProperties class, and supports
the following additional configuration properties:
"com.sun.sgs.impl.kernel.profile.level"
MIN
ProfileCollector.setDefaultProfileLevel(ProfileLevel).
"com.sun.sgs.impl.kernel.profile.listeners"
ProfileListener. A number
of listeners are provided with the system in the
com.sun.sgs.impl.profile.listener package.
"com.sun.sgs.impl.kernel.access.coordinator"
TrackingAccessCoordinator
AccessCoordinatorHandle interface, and that provides a public
constructor with the three parameters Properties,
TransactionProxy, and ProfileCollectorHandle.
| Nested Class Summary | |
|---|---|
class |
Kernel.KernelManager
Basic implementation of the kernel management interface. |
| Field Summary | |
|---|---|
static String |
ACCESS_COORDINATOR_PROPERTY
|
static String |
PROFILE_LEVEL_PROPERTY
|
static String |
PROFILE_LISTENERS
|
| Constructor Summary | |
|---|---|
protected |
Kernel(Properties appProperties)
Creates an instance of Kernel. |
| Method Summary | |
|---|---|
static void |
main(String[] args)
Main-line method that starts the Kernel. |
(package private) void |
shutdown()
Shut down all services (in reverse order) and the schedulers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROFILE_LEVEL_PROPERTY
public static final String PROFILE_LISTENERS
public static final String ACCESS_COORDINATOR_PROPERTY
| Constructor Detail |
|---|
protected Kernel(Properties appProperties)
throws Exception
Kernel. Once this is created
the code components of the system are running and ready. Creating
a Kernel will also result in initializing and starting
the application and its associated services.
appProperties - application properties
Exception - if for any reason the kernel cannot be started| Method Detail |
|---|
void shutdown()
public static void main(String[] args)
throws Exception
Kernel. Each kernel
instance runs a single application.
If a single argument is given, the value of the argument is assumed to be a filename. This file is used in combination with additional configuration settings to determine an application's configuration properties.
The order of precedence for properties is as follows (from highest to lowest):
BootProperties.DEFAULT_HOME_CONFIG_FILE.BootProperties.DEFAULT_APP_PROPERTIES
This file is typically included as part of the application jar file.BootProperties.EXTENSION_FILE_PROPERTY system property.Exception is thrown
(depending on whether a default value is available). Certain
properties are required to be specified somewhere in the application's
configuration.
See StandardProperties for the required and optional properties.
args - optional filename for Properties file
associated with the application to run
Exception - if there is any problem starting the system
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||