|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--one.world.Constants
Definition of global constants for one.world. Note that most constants defined by this class can be customized through system properties.
| Field Summary | |
static int |
ANIMATOR_ADD_THREADS
The number of threads to add to a concurrent animator if its queue is over the busy threshold. |
static int |
ANIMATOR_CAPACITY
The default capacity for event queues used by animators. |
static long |
ANIMATOR_IDLE_TIME
The idle time for concurrent animators. |
static int |
ANIMATOR_MAX_THREADS
The maximum number of threads used by concurrent animators. |
static int |
ANIMATOR_MIN_THREADS
The minimum number of threads used by concurrent animators. |
static int |
ANIMATOR_ROOT_ADD_THREADS
The number of threads to add to the root environment's animator if its queue is over the busy threshold. |
static int |
ANIMATOR_ROOT_MAX_THREADS
The maximum number of threads used by the root environment. |
static int |
ANIMATOR_ROOT_MIN_THREADS
The minimum number of threads used by the root environment. |
static int |
ANIMATOR_ROOT_THRESHOLD
The busy threshold for adding new threads to the root environment's animator. |
static long |
ANIMATOR_SCAN_TIME
The time between scans for the animator controller. |
static int |
ANIMATOR_THRESHOLD
The busy threshold for adding new threads to a concurrent animator. |
static String |
BUILD_TIME
The GMT build time for this release of one.world, represented as a human readable string. |
static long |
CAFFEINE_MARK_RATING
The embedded CaffeineMark 3.0 performance rating for the Java virtual machine running one.world. |
static int |
CHUNKING_THRESHOLD
The threshold for representing arbitrary byte arrays as a list of chunks instead of a single binary data tuple. |
static boolean |
DEBUG_DISCOVERY
The flag for whether discovery should print debug messages. |
static boolean |
DEBUG_ENVIRONMENT
The flag for whether environment operations should print debug messages. |
static boolean |
DEBUG_EVENTS
The flag for whether event processing in the core system should be use extra validation and print debug messages. |
static boolean |
DEBUG_NETWORK
The flag for whether structured I/O networking should print debug messages. |
static boolean |
DEBUG_REP
The flag for whether basic REP should print debug messages. |
static boolean |
DEBUG_THREAD_CONTROL
The flag for whether animator controllers should print debug messages. |
static boolean |
DEBUG_TIMER
The flag for whether timers should
print debug messages. |
static boolean |
DEBUG_TUPLE_STORE
The flag for whether the tuple
store should print debug messages. |
static String |
DISCOVERY_ANNOUNCE_ADDR
The IP multicast address for server announcements from a discovery server. |
static long |
DISCOVERY_ANNOUNCE_PERIOD
The period between advertisments from a discovery server in milliseconds. |
static int |
DISCOVERY_ANNOUNCE_PORT
The port number for periodic advertisements from a discovery server. |
static long |
DISCOVERY_ANNOUNCE_VALUE
The value sent by this discovery server for elections. |
static String |
DISCOVERY_BINDING
The name of the meta-data field specifying which binding was the source of this forwarded event. |
static String |
DISCOVERY_ELECTION_ADDR
The IP multicast address for calling and performing elections. |
static long |
DISCOVERY_ELECTION_CALL_TIME
The length of time to wait before calling a discovery server election (in milliseconds). |
static long |
DISCOVERY_ELECTION_DURATION
The length of time to wait for the election to complete (in milliseconds). |
static int |
DISCOVERY_ELECTION_PORT
The port number for election. |
static String |
DISCOVERY_SOURCE_SERVER
The name of the meta-data field specifying which discovery server forwarded this event. |
static long |
LEASE_DEFAULT_DURATION
The default duration for leases. |
static long |
LEASE_MAX_DURATION
The maximum duration for leases. |
static long |
LEASE_MIN_DURATION
The minimum duration for leases. |
static int |
MAJOR_VERSION
The major version of this release of one.world. |
static int |
MICRO_VERSION
The micro version of this release of one.world. |
static int |
MINOR_VERSION
The minor version of this release of one.world. |
static long |
NETWORK_TIMEOUT
The default timeout for receiving responses from remote events sent over the network. |
static int |
OPERATION_RETRIES
The default number of retries when performing an operation. |
static long |
OPERATION_TIMEOUT
The default timeout when performing an operation. |
static int |
PORT
The default port for structured I/O communication channels. |
static long |
REP_CACHE_TIMEOUT
The frequency, in milliseconds, with which cached REP connections will be checked to see if they are still active. |
static boolean |
REP_FORCE_NETWORK
Indicates whether local events must be delivered via the network stack rather than directly. |
static int |
REP_MAX_RETRIES
The maximum number of retries for sending a remote event or a resolution request. |
static int |
REP_PORT
The port on which to receive remote events. |
static int |
REP_QUEUE_CAPACITY
The number of remote events to queue while waiting to establish a connection to a remote endpoint. |
static String |
REP_RETRIES
The name of the meta-data field specifying the number of retries when sending a remote event or a resolution request. |
static String |
REQUESTOR_ADDRESS
The name of the meta-data field specifying the requesting environment's IP address. |
static String |
REQUESTOR_ID
The name of the meta-data field specifying the requesting environment's ID. |
static String |
REQUESTOR_PORT
The name of the meta-data field specifying the requesting environment's port number. |
static int |
SHELL_PORT
The port on which the root shell accepts telnet connections. |
static long |
SYNCHRONOUS_TIMEOUT
The default timeout for synchronous invocations in milliseconds. |
static long |
TIMER_PERIOD
The period for repeated timer notifications. |
| Method Summary | |
static boolean |
getBoolean(String name)
Get the boolean value from the specified system property. |
static int |
getInt(String name,
int value)
Get the integer value from the specified system property. |
static long |
getLong(String name,
long value)
Get the long value from the specified system property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean DEBUG_EVENTS
one.world.debug.events"
system property. If this system property is not defined or not
"true" (case insensitive), the default is
false. Note that this flag can also be set by
specifying the "one.world.debug" system property as
"true".public static final boolean DEBUG_ENVIRONMENT
environment operations should print debug messages. This
constant can be specified using the
"one.world.debug.environment" system property. If
this system property is not defined or not "true"
(case insensitive), the default is false. Note that
this flag can also be set by specifying the
"one.world.debug" system property as
"true".public static final boolean DEBUG_TUPLE_STORE
tuple
store should print debug messages. This constant can be
specified using the "one.world.debug.tuple.store"
system property. If this system property is not defined or not
"true" (case insensitive), the default is
false. Note that this flag can also be set by
specifying the "one.world.debug" system property as
"true".public static final boolean DEBUG_THREAD_CONTROL
animator controllers should print debug messages. This constant
can be specified using the
"one.world.debug.thread.control" system property. If
this system property is not defined or not "true"
(case insensitive), the default is false. Note that
this flag can also be set by specifying the
"one.world.debug" system property as
"true".public static final boolean DEBUG_TIMER
timers should
print debug messages. This constant can be specified using the
"one.world.debug.timer" system property. If this
system property is not defined or not "true" (case
insensitive), the default is false. Note that this
flag can also be set by specifying the
"one.world.debug" system property as
"true".public static final boolean DEBUG_NETWORK
one.world.debug.network" system property. If this
system property is not defined or not "true" (case
insensitive), the default is false. Note that this
flag can also be set by specifying the
"one.world.debug" system property as
"true".public static final boolean DEBUG_REP
one.world.debug.rep" system property. If this
system property is not defined or not "true" (case
insensitive), the default is false. Note that this
flag can also be set by specifying the
"one.world.debug" system property as
"true".public static final boolean DEBUG_DISCOVERY
one.world.debug.discovery" system property. If this
system property is not defined or not "true" (case
insensitive), the default is false. Note that this
flag can also be set by specifying the
"one.world.debug" system property as
"true".public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static final int MICRO_VERSION
public static final String BUILD_TIME
public static final long CAFFEINE_MARK_RATING
caffeine.mark.rating" system
property. If this system property is not defined, the default is
-1 (which is not a legal CaffeineMark rating).
A re-packaged version of the benchmark is available here. Simply download the file and execute
java -jar bench.jarin the same directory, which will run the benchmark and print the overall performance rating.
public static final long SYNCHRONOUS_TIMEOUT
one.world.synchronous.timeout" system property. If
this system property is not defined, the default is 1 minute.public static final long NETWORK_TIMEOUT
one.world.network.timeout" system property. If
this system property is not defined, the default is 1 minute.public static final int ANIMATOR_CAPACITY
one.world.animator.capacity" system property. If
this system property is not defined, the default is 100.Animatorpublic static final int ANIMATOR_MIN_THREADS
one.world.animator.min.threads" system property. If
this system property is not defined, the default is 1.Animatorpublic static final int ANIMATOR_MAX_THREADS
one.world.animator.max.threads" system property. If
this system property is not defined, the default is 20.Animatorpublic static final long ANIMATOR_IDLE_TIME
one.world.animator.idle.time" system property. If
this system property is not defined, the default is 5 seconds.Animatorpublic static final long ANIMATOR_SCAN_TIME
one.world.animator.scan.time" system property. If
this system property is not defined, the default is 2 seconds.Animator.Controllerpublic static final int ANIMATOR_THRESHOLD
one.world.animator.threshold" system property. If
this system property is not defined, the default is half of the
animator capacity.ANIMATOR_CAPACITY,
Animator.Controllerpublic static final int ANIMATOR_ADD_THREADS
one.world.animator.add.threads" system
property. If this system property is not defined, the default is
1.ANIMATOR_THRESHOLD,
Animator.Controllerpublic static final int ANIMATOR_ROOT_MIN_THREADS
one.world.animator.root.min.threads" system
property. If this system property is not defined, the default is
5.Animatorpublic static final int ANIMATOR_ROOT_MAX_THREADS
one.world.animator.root.max.threads" system
property. If this system property is not defined, the default is
50.Animatorpublic static final int ANIMATOR_ROOT_THRESHOLD
one.world.animator.root.threshold" system
property. If this system property is not defined, the default is
a third of the animator capacity.ANIMATOR_CAPACITY,
Animator.Controllerpublic static final int ANIMATOR_ROOT_ADD_THREADS
one.world.animator.root.add.threads" system
property. If this system property is not defined, the default is
2.ANIMATOR_ROOT_THRESHOLD,
Animator.Controllerpublic static final long TIMER_PERIOD
one.world.timer.period" system property. If this
system propery is not defined, the default is 1 second.Timerpublic static final long LEASE_MIN_DURATION
one.world.lease.min.duration" system
property. If this system property is not defined, the default
is 1 second.LeaseManagerpublic static final long LEASE_DEFAULT_DURATION
one.world.lease.duration" system
property. If this system property is not defined, the default
is 1 minute.LeaseManagerpublic static final long LEASE_MAX_DURATION
one.world.lease.max.duration" system
property. If this system property is not defined, the default is
10 minutes.LeaseManagerpublic static final int OPERATION_RETRIES
one.world.operation.retries" system property. The
default is 3.Operationpublic static final long OPERATION_TIMEOUT
one.world.operation.timeout" system property. The
default is the synchronous timeout.SYNCHRONOUS_TIMEOUT,
Operationpublic static final String REQUESTOR_ID
one.world.requestor.id".public static final String REQUESTOR_ADDRESS
one.world.requestor.address".REQUESTOR_ID,
REQUESTOR_PORTpublic static final String REQUESTOR_PORT
one.world.requestor.port".REQUESTOR_ID,
REQUESTOR_ADDRESSpublic static final int PORT
one.world.port"
system property. If this system property is not defined, the
default port is 5101.SioResourcepublic static final int SHELL_PORT
one.world.shell.port" system property. If this
system property is not defined, the default port is the default
telnet port (23). Note that the root shell only accepts telnet
connections if the "one.world.shell.pwd" system
property is defined.Shellpublic static final int REP_PORT
one.world.rep.port" system
property. If this system property is not defined, the default
port is 5102.public static final boolean REP_FORCE_NETWORK
one.world.rep.force.network" system
property. If this system property is not defined, the default
port is false.public static final long REP_CACHE_TIMEOUT
one.world.rep.cache.timeout" system property. If
this system property is not defined, the default cache timeout is
one minute.public static final int REP_MAX_RETRIES
one.world.rep.max.retries" system property. If
this system property is not defined, the default maximum number
of retries is 1.public static final int REP_QUEUE_CAPACITY
NoBufferSpaceException. This constant can
be specified using the
"one.world.rep.queue.capacity" system property. If
this system property is not defined, the default queue size is
ANIMATOR_CAPACITY.public static final String REP_RETRIES
one.world.rep.retries".public static final String DISCOVERY_ANNOUNCE_ADDR
DISCOVERY_ANNOUNCE_PORT. This constant can be specified using
the "one.world.discovery.announce.addr" system
property. The default is 230.0.0.1.public static final int DISCOVERY_ANNOUNCE_PORT
DISCOVERY_ANNOUNCE_ADDR. This constant can be specified using
the "one.world.discovery.announce.port system
property. The default is 5104.
This must not conflict with any other port number. Changing
the discovery server announcement port without changing the
election port could result in
strange behavior such as the elected server not being visible to
the other discovery clients on the network.
public static final String DISCOVERY_ELECTION_ADDR
DISCOVERY_ELECTION_PORT. This constant can be specified using
the "one.world.discovery.election.addr" system
property. The default is 230.0.0.1.public static final int DISCOVERY_ELECTION_PORT
DISCOVERY_ELECTION_ADDR. This constant can be
specified using the
"one.world.discovery.election.port" system
property. The default is 5105.public static final long DISCOVERY_ANNOUNCE_PERIOD
DISCOVERY_ANNOUNCE_ADDR, DISCOVERY_ANNOUNCE_PORT> pair. This constant can be specified
using the "one.world.discovery.announce.period"
system property. The default is two seconds.public static final long DISCOVERY_ANNOUNCE_VALUE
one.world.discovery.announce.value"
system property. The default is -1.public static final long DISCOVERY_ELECTION_DURATION
one.world.discovery.election.duration" system
property. The default is one second.public static final long DISCOVERY_ELECTION_CALL_TIME
one.world.discovery.election.calltime" system
property. The default is twice the period of an announcemnt.DISCOVERY_ANNOUNCE_PERIODpublic static final String DISCOVERY_SOURCE_SERVER
public static final String DISCOVERY_BINDING
public static final int CHUNKING_THRESHOLD
chunks instead of a single binary data tuple. This constant can
be specified using the
"one.world.chunking.threshold" system property.| Method Detail |
public static boolean getBoolean(String name)
true"
(case insensitive), then this method returns true.
Otherwise it returns false.name - The name of the system property.true if the system property is
defined and is "true" (case
insensitive.
public static int getInt(String name,
int value)
The specified default must be a positive integer.
name - The name of the system property.value - The default value.
public static long getLong(String name,
long value)
The specified default must be a positive long.
name - The name of the system property.value - The default value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||