|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
Locator | The Locator class derives the location of GigaSpaces Technologies system directories and provides various utilities for finding files and directories |
SystemBoot | Provides bootstrapping support for the GigaSpaces Service Grid. |
SystemConfig | Provides system configuration support. |
SystemConfig.JMXServiceDescriptor | Initialize RMI Registry and JMX Platform MBeanServer |
Provides bootstrapping support for the GigaSpaces Service Grid. The
GigaSpaces Service Grid uses the JiniTM Technology
Configuration
approach augmented by using XML-based Configuration declarations as
configuration overrides. This means that the default configuration
attributes are loaded unless specific configuration file is
provided, or specific XML-based configuration overrides are used. The
GigaSpaces Service Grid startup loads all configuration entries with
the component name of
com.gigaspaces.start
Directory Structure Derivation
As previously explained, the Service Grid derives the runtime product
directory structure at system initialization time. This approach is
based on simple well-known and expected patterns. The intent is to
remove additional configuration burdens made visible by environment
setup constructs, and provide a simplified and effective product
experience.
The Locator
class will derive the location of the following values and return a Properties
object to
the calling class containing the following name/value pairs:
Key |
Description |
com.gs.home | Root directory of the EE, the canonical path of the parent directory of the sub-directory where JSpaces.jar is located |
com.gigaspaces.lib | Directory where JSpaces.jar is located |
com.gigaspaces.grid.home | Root directory of the Service Grid, the canonical path of the parent directory of the sub-directory where gs-service.jar is located |
com.gigaspaces.grid.lib | The directory where gs-service.jar is located in the product distribution |
com.gigaspaces.grid.boot.lib | The directory where gs-boot.jar is located in the product distribution |
com.gigaspaces.jini.lib |
The directory where jsk-platform.jar is located in the product distribution |
SystemBoot
class, as determined by
invoking the
SystemConfig.getSystemProperties()
method:Name |
Value |
Description |
java.protocol.handler.pkgs | net.jini.url |
Provides support for HTTPMD based URLs |
com.gs.home | Derived from the Locator class |
|
com.gs.localhost.name | InetAddress.getHostAddress() |
|
com.gs.container.name | InetAddress.getHostName() |
|
com.gs.jini_lus.groups | “gigaspaces-“+ PlatformVersion.V_NUM | The group name is the
concatenation of the text “gigaspaces-“ with the version number of the
current release. Note: this property will only be populated if the com.j_spaces.kernel.PlatformVersion can be loaded |
com.gigaspaces.grid.groups | gs-grid | Can be overridden by setting the com.gigaspaces.grid.groups property |
com.gigaspaces.grid.home | Derived from the Locator
class |
|
com.gigaspaces.lib | Derived from the Locator
class |
|
com.gigaspaces.grid.lib | Derived from the Locator
class |
Name |
Description |
com.gigaspaces.system.codeserver | Indicates the address and port of the Webster instance created by this utility, in the form of : http://address:port |
com.gigaspaces.system.registryPort |
System property set when this
utility starts an RMI Registry. Refer to the registryPort
and registryRetries properties for
additional infomration on configuring RMI Registry |
com.gigaspaces.system.jmxServiceURL |
System property set when this
utility binds the JMX PlatformMBeanServer to the RMI Registry |
JARs |
Location
Loaded From |
Description |
JSpaces.jar |
${com.gigaspaces.lib} |
GigaSpaces Technology
platform |
gs-space-framework.jar | ${com.gigaspaces.grid.lib} | Service Grid platform support
for GigaSpaces framework |
gsc-capabilities.jar |
${com.gigaspaces.grid.lib} |
Service Grid platform policies |
gs-lib.jar | ${com.gigaspaces.grid.boot.lib} | Service Grid boot core |
backport-util-concurrent.jar |
${com.gigaspaces.lib}/common |
This package is the backport of java.util.concurrent
API, introduced in Java
5.0, to Java 1.4. |
xalan.jar xerxesImpl.jar xml-apis.jar |
${com.gigaspaces.lib}/xml |
XML parsing and API support. All
jars that are in this directory are loaded |
jsk-lib.jar |
${com.gigaspaces.jini.lib} |
The Jini 2.1 technology required
platform classes. More information on Jini technology can be found here |
ant.jar ant-launcher.jar ant-commons-net.jar commons-net-1.4.0.jar jakarta-oro-2.0.8.jar |
${com.gigaspaces.lib}/ant |
Ant support. All jars that are in this directory are loaded. For more information on Ant go here. |
AppCL | CommonCL (http:// URLs of common JARs) + | +-------+-------+----...---+ | | | Service-1CL Service-2CL Service-nCL |
SystemConfig
to use 9010 as the port number to start the Webster instancecom.gigaspaces.start
and com.gigaspaces.gridcom.gigaspaces.start
com.gigaspaces.grid
Configuration entries specific to com.gigaspaces.start
The Service Grid com.gigaspaces.start
package supports the following configuration
entries;
where
each configuration entry name is associated with the component name com.gigaspaces.start. The
following configuration entries provide the opportunity to
declaratively
modify the operational behavior of the Service GridType: |
String |
Default: |
null |
Description: |
This
entry will be read at initialization and provides the ability to add
HTTP roots to the HTTP server that is started by the SystemConfig utility |
Type: |
URL [] |
Default: |
null |
Description: |
This
entry will be read at initialization and provides the ability to add
jars to load into the platform. This allows administrators the
flexibility to use the default platform jars
and just add to it, instead of redefining the entire stack SystemConfig utility |
Type: |
String |
Default: |
${com.gigaspaces.grid.home}${/}config${/}services${/}services.config |
Description: |
This entry will be read at initialization and provides support to declare a GigaSpaces service configuration file to be used to run the GigaSpace |
Type: |
String |
Default: |
${com.gigaspaces.grid.home}${/}config${/}services${/}services.config |
Description: |
This entry will be read at initialization and provides support to declare a Grid Service Container (GSC) service configuration file to be used to run the GSC |
Type: |
String |
Default: |
${com.gigaspaces.grid.home}${/}config${/}services${/}services.config |
Description: |
This entry will be read at initialization and provides support to declare a Grid Service Monitor (GSM) service configuration file to be used to run the GSM |
Type: |
String |
Default: |
${com.gigaspaces.grid.lib}${/}gs-service.jar |
Description: |
This entry will be read at initialization and provides support to declare a space delimited String of jars that will compose the Grid Service Container's (GSC's) classpath |
Type: |
String |
Default: |
${com.gigaspaces.grid.lib}${/}gs-service.jar |
Description: |
This entry will be read at initialization and provides support to declare a space delimited String of jars that will compose the Grid Service Monitor's (GSM's) classpath |
Type: |
String |
Default: |
If the java.rmi.server.hostname
property
is set, use this as the
default, otherwise use the value returned by InetAddress.getLocalHost() |
Description: |
This
entry will be read at initialization and sets the host address to use
for the HTTP server instance as well as the host address to use
when constructing the platform MBeanServer |
Type: |
int |
Default: |
0 |
Description: |
This
entry will be read at initialization and provides the ability to
configure the port the
HTTP server uses to accept inbound requests. The default port of 0
results in an anonymous port being used. |
Type: |
String |
Default: |
${com.gigaspaces.lib};${com.gigaspaces.grid.lib}; ${com.gigaspaces.jini.lib};${com.gigaspaces.lib}/common;${com.gigaspaces.grid.home}/deploy |
Description: |
This
entry will be read at initialization and provides the ability to set
HTTP roots to the HTTP server that is started by the SystemConfig utility |
Type: |
int |
Default: |
10 |
Description: |
This entry will be read at initialization and provides the ability to recover from HTTP server creation failure by incrementing the port the HTTP server instance will accept requests on. The port provided by the httpPort property is used as a basis to increment from. If retries are needed, the httpPort is incremented by one each time until either the HTTP server is created without exceptions, or the http server retries have been exhausted |
Type: |
URL [] |
Default: |
BootUtil.toURLs(java.lang.String[]) ("${com.gigaspaces.lib}/JSpaces.jar", "${com.gigaspaces.grid.lib}/gsc-capabilities.jar", "${com.gigaspaces.grid.boot.lib}/gs-lib.jar", "${com.gigaspaces.lib}/common/backport-util-concurrent.jar", "${com.gigaspaces.lib}/xml", "${com.gigaspaces.jini.lib}/jsk-lib.jar", "${com.gigaspaces.lib}/ant"}; |
Description: |
This entry will be read at initialization and dynamically adds jars to the CommonClassLoader (refer to the discussion on classloading for details) |
Type: |
String |
Default: |
${com.gigaspaces.grid.home}${/}config${/}services${/}services.config |
Description: |
This entry will be read at
initialization and provides support to declare a Jini technology
configuration file to be used to run the Jini technology Lookup service
(reggie) |
Type: |
int |
Default: |
10098 |
Description: |
The port to use when
creating the RMI Registry. This
entry will be read at initialization, and based on the value provided
by the registryRetries property, will be incremented |
Type: |
int |
Default: |
10 |
Description: |
This
entry will be read at initialization and provides the ability to
recover from RMI Registry creation failure by incrementing the port the
RMI Registry instance will accept requests on. The port provided by the
registryPort property is used as a basis to increment from. If retries
are needed, the registryPort is incremented by one each time until
either the RMI Registry is created without exceptions, or the registry
retries have been exhausted |
Type: |
String |
||||||||||||
Default: |
"GSC" |
||||||||||||
Description: |
A comma delimited string of
identifiers which provide context as to which services are to be
started by the Service Grid. This
entry will be read at initialization. The possible options here are as
follows :
Note: An autonomous lookup service and a HTTP server are by default started by the Service Grid |
Type: |
String[] |
Default: |
new String[] { "java.protocol.handler.pkgs", "net.jini.url", "com.gs.home", Locator.GS_HOME ,"com.gs.localhost.name", BootUtil.getHostAddress() ,"com.gs.container.name", BootUtil.getHostName() ,"com.gs.jini_lus.groups", "gigaspaces-"+PlatformVersion.V_NUM, "com.gigaspaces.grid.groups", groups, "com.gigaspaces.grid.home", com.gigaspaces.start.Locator#GS_GRID_HOME }; |
Description: |
This
entry will be read at initialization and provides the ability to add
system properties to the runtime. The following example override
approach shows how the the com.gs.jini_lus.groups can be overriden and
a new propety added: <overrides> <component Name="com.gigaspaces.start"> <parameter Name="systemProperties"> <![CDATA[ new String[] { "com.gs.jini_lus.groups", "custom", "new.property", "some.value"} ]]> </parameter> </component> </overrides> |
com.gigaspaces.grid
The Service Grid com.gigaspaces.grid
package supports the following configuration
entries;
where
each configuration entry name is associated with the component name com.gigaspaces.grid. The
following configuration entries provide the opportunity to
declaratively
modify the operational behavior of the Service GridType: |
String[] |
Default: |
new String[] {"gs-grid"} |
Description: |
This
entry will be read at initialization and configures the discovery
groups the Service Grid will use to federate itself. This group should
not be confused with application focused groups, and is used for GSCs
to discover GSMs. This property is also read by the LookupHandler utility |
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |