ostore.util
Class Types
java.lang.Object
|
+--ostore.util.Types
- public class Types
- extends Object
A class to store the compile-time constants for the types of each
subtype of QuickSerializable in the system, and the mapping between
these two.
The use of this class by programmers other than the author should be
only to add new type constants, and to add elements to the types
array. For instance, let's say you've added a new class,
ostore.foo.Bar
to the system. First, you would add a type
code for that class to this one, adding a member like this:
static public final int FOO_BAR = 0xdeadbeef;
Next, you would make sure that the member function
type_code
of ostore.foo.Bar
was written like
this:
public int type_code () { return ostore.util.Types.FOO_BAR; }
Finally, you would add a new element to the types
array
containing the mapping from your new Type to the type code, like this:
new Type ("ostore.foo.Bar", FOO_BAR),
And then you would be done. There is no need to call TypeTable.register_type(java.lang.String, int)
yourself, it will be done by registerAllTypes()
(which these days is called by the classifier), using
the information you provided in the types
array.
- Version:
- "$Id: Types.java,v 1.150 2002/04/06 18:30:36 hweather Exp $"
- Author:
- Sean C. Rhea
- See Also:
TypeTable
,
QuickSerializable
,
QSException
Constructor Summary |
Types()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST_GENERATE_FRAGS_BLK
public static final int TEST_GENERATE_FRAGS_BLK
GENERATE_LOG_STAGE
public static final int GENERATE_LOG_STAGE
RECONSTRUCT_OBJ_STAGE
public static final int RECONSTRUCT_OBJ_STAGE
QSINT
public static final int QSINT
QSLONG
public static final int QSLONG
QSSTRING
public static final int QSSTRING
QSVECTOR
public static final int QSVECTOR
QSDATE
public static final int QSDATE
QSBYTEARRAY
public static final int QSBYTEARRAY
QSARRAY
public static final int QSARRAY
QSBOOL
public static final int QSBOOL
QSWINDOW
public static final int QSWINDOW
SHA1_HASH
public static final int SHA1_HASH
SHA1_VERIFY
public static final int SHA1_VERIFY
TIMESTAMP
public static final int TIMESTAMP
NODEID
public static final int NODEID
VERIFIABLE_BLOCK_TAG
public static final int VERIFIABLE_BLOCK_TAG
VID
public static final int VID
NETWORK_IDENTITY_MESSAGE
public static final int NETWORK_IDENTITY_MESSAGE
DUMP_STATS_MSG
public static final int DUMP_STATS_MSG
RESET_STATS_MSG
public static final int RESET_STATS_MSG
STARTREK_ROUTE_MESSAGE
public static final int STARTREK_ROUTE_MESSAGE
STARTREK_PUBLISH_MESSAGE
public static final int STARTREK_PUBLISH_MESSAGE
STARTREK_UNPUBLISH_MESSAGE
public static final int STARTREK_UNPUBLISH_MESSAGE
STARTREK_TEST_TAPESTRY_MESSAGE
public static final int STARTREK_TEST_TAPESTRY_MESSAGE
STARTREK_GENERICTAPESTRYROUTEMESSAGE
public static final int STARTREK_GENERICTAPESTRYROUTEMESSAGE
STARTREK_GENERICTAPESTRYROUTEOBJMESSAGE
public static final int STARTREK_GENERICTAPESTRYROUTEOBJMESSAGE
TAPESTRY_DISINTEGRATETMESSAGE
public static final int TAPESTRY_DISINTEGRATETMESSAGE
TAPESTRY_INTEGRATETMESSAGE
public static final int TAPESTRY_INTEGRATETMESSAGE
TAPESTRY_MOVEOBJTMESSAGE
public static final int TAPESTRY_MOVEOBJTMESSAGE
TAPESTRY_PUBLISHTMESSAGE
public static final int TAPESTRY_PUBLISHTMESSAGE
TAPESTRY_ROUTEOBJTMESSAGE
public static final int TAPESTRY_ROUTEOBJTMESSAGE
TAPESTRY_ROUTEPARENTTMESSAGE
public static final int TAPESTRY_ROUTEPARENTTMESSAGE
TAPESTRY_ROUTETMESSAGE
public static final int TAPESTRY_ROUTETMESSAGE
TAPESTRY_PING_MSG
public static final int TAPESTRY_PING_MSG
TAPESTRY_PONG_MSG
public static final int TAPESTRY_PONG_MSG
TAPESTRY_LOCATE_FAILURE
public static final int TAPESTRY_LOCATE_FAILURE
TAPESTRY_STATIC_ALIVE_MSG
public static final int TAPESTRY_STATIC_ALIVE_MSG
TAPESTRY_STATIC_ALL_NODES_MSG
public static final int TAPESTRY_STATIC_ALL_NODES_MSG
TAPESTRY_STATIC_READY_MSG
public static final int TAPESTRY_STATIC_READY_MSG
TAPESTRY_STATIC_BEGIN_MSG
public static final int TAPESTRY_STATIC_BEGIN_MSG
TAPESTRY_STATIC_PING_MSG
public static final int TAPESTRY_STATIC_PING_MSG
TAPESTRY_STATIC_PONG_MSG
public static final int TAPESTRY_STATIC_PONG_MSG
TAPESTRY_ROUTE_OBJ_ROOT_MSG
public static final int TAPESTRY_ROUTE_OBJ_ROOT_MSG
TAPESTRY_ROUTE_OBJ_DEST_MSG
public static final int TAPESTRY_ROUTE_OBJ_DEST_MSG
TAPESTRY_PUBLISH_MSG
public static final int TAPESTRY_PUBLISH_MSG
TAPESTRY_BLOOM_WRAPPER
public static final int TAPESTRY_BLOOM_WRAPPER
TAPESTRY_DYNAMIC_REQ_MSG
public static final int TAPESTRY_DYNAMIC_REQ_MSG
TAPESTRY_DYNAMIC_MAP_MSG
public static final int TAPESTRY_DYNAMIC_MAP_MSG
TAPESTRY_DYNAMIC_NOT_MSG
public static final int TAPESTRY_DYNAMIC_NOT_MSG
TAPESTRY_DYNAMIC_MCAST_MSG
public static final int TAPESTRY_DYNAMIC_MCAST_MSG
TAPESTRY_DYNAMIC_OBJMAP_MSG
public static final int TAPESTRY_DYNAMIC_OBJMAP_MSG
TAPESTRY_DYNAMIC_OBJREQ_MSG
public static final int TAPESTRY_DYNAMIC_OBJREQ_MSG
TAPESTRY_DYNAMIC_SURRREQ_MSG
public static final int TAPESTRY_DYNAMIC_SURRREQ_MSG
TAPESTRY_DYNAMIC_SURR_MSG
public static final int TAPESTRY_DYNAMIC_SURR_MSG
TAPESTRY_DYNAMIC_PING_MSG
public static final int TAPESTRY_DYNAMIC_PING_MSG
TAPESTRY_DYNAMIC_PONG_MSG
public static final int TAPESTRY_DYNAMIC_PONG_MSG
TAPESTRY_DYNAMIC_GATEWAY_MSG
public static final int TAPESTRY_DYNAMIC_GATEWAY_MSG
TAPESTRY_PUBLISH_INFO
public static final int TAPESTRY_PUBLISH_INFO
TAPESTRY_TEST_READY_MSG
public static final int TAPESTRY_TEST_READY_MSG
TAPESTRY_TEST_FOUND_MSG
public static final int TAPESTRY_TEST_FOUND_MSG
TAPESTRY_TEST_LOCATE_MSG
public static final int TAPESTRY_TEST_LOCATE_MSG
DATAOBJECT
public static final int DATAOBJECT
METADATA
public static final int METADATA
VERSION_INFO
public static final int VERSION_INFO
DATAOBJECT_DATABLOCK
public static final int DATAOBJECT_DATABLOCK
BTREE
public static final int BTREE
BTREE_INTERIOR_NODE
public static final int BTREE_INTERIOR_NODE
LONG_KEY
public static final int LONG_KEY
SHA1HASH_KEY
public static final int SHA1HASH_KEY
SELECTION_ALL
public static final int SELECTION_ALL
SELECTION_RANGE
public static final int SELECTION_RANGE
SELECTION_KEYED
public static final int SELECTION_KEYED
SELECTION_COMPOSITE
public static final int SELECTION_COMPOSITE
SELECTION_NULL
public static final int SELECTION_NULL
RPCERT
public static final int RPCERT
PRCERT
public static final int PRCERT
ACL
public static final int ACL
UPDATE
public static final int UPDATE
UPDATE_TUPLE
public static final int UPDATE_TUPLE
READ_REQUEST
public static final int READ_REQUEST
READ_RESULT
public static final int READ_RESULT
BYTES_READ_REQ
public static final int BYTES_READ_REQ
BYTES_READ_RESP
public static final int BYTES_READ_RESP
SLICE_READ_REQ
public static final int SLICE_READ_REQ
SLICE_READ_RESP
public static final int SLICE_READ_RESP
REPLICA_BYTES_READ_REQ
public static final int REPLICA_BYTES_READ_REQ
REPLICA_BYTES_READ_RESP
public static final int REPLICA_BYTES_READ_RESP
REPLICA_SLICE_READ_REQ
public static final int REPLICA_SLICE_READ_REQ
REPLICA_SLICE_READ_RESP
public static final int REPLICA_SLICE_READ_RESP
REMOTE_CACHE_REQUEST_MESSAGE
public static final int REMOTE_CACHE_REQUEST_MESSAGE
REMOTE_CACHE_REPLY_MESSAGE
public static final int REMOTE_CACHE_REPLY_MESSAGE
DATE_PRED
public static final int DATE_PRED
FRESH_PRED
public static final int FRESH_PRED
HEAD_PRED
public static final int HEAD_PRED
NUMBER_PRED
public static final int NUMBER_PRED
VID_PRED
public static final int VID_PRED
ACTION
public static final int ACTION
ACTION_NULL
public static final int ACTION_NULL
ACTION_REPLACE_BLOCKS
public static final int ACTION_REPLACE_BLOCKS
ACTION_APPEND_BLOCKS
public static final int ACTION_APPEND_BLOCKS
ACTION_SET_METADATA
public static final int ACTION_SET_METADATA
ACTION_TRUNCATE
public static final int ACTION_TRUNCATE
ACTION_EXPAND
public static final int ACTION_EXPAND
PREDICATE
public static final int PREDICATE
PREDICATE_TRUE
public static final int PREDICATE_TRUE
UPDATE_INTERRUPTED_EXCEPTION
public static final int UPDATE_INTERRUPTED_EXCEPTION
READ_INTERRUPTED_EXCEPTION
public static final int READ_INTERRUPTED_EXCEPTION
ARRAY
public static final int ARRAY
MATRIX
public static final int MATRIX
SEGMENT_REQUEST
public static final int SEGMENT_REQUEST
SEGMENT_REV_REQUEST
public static final int SEGMENT_REV_REQUEST
HMM
public static final int HMM
HMM_DELTA
public static final int HMM_DELTA
HMM_PREDICTION
public static final int HMM_PREDICTION
HMM_SEGMENT
public static final int HMM_SEGMENT
SCREEN
public static final int SCREEN
OIL_PATCHWORK_MODEL
public static final int OIL_PATCHWORK_MODEL
OIL_PATCHWORK_DELTA
public static final int OIL_PATCHWORK_DELTA
OIL_PATCHWORK_OBSERVATION
public static final int OIL_PATCHWORK_OBSERVATION
OIL_PATCHWORK_PROBE_MSG
public static final int OIL_PATCHWORK_PROBE_MSG
TESTBLOCK
public static final int TESTBLOCK
SECURITY_RSA_PUBLIC_KEY
public static final int SECURITY_RSA_PUBLIC_KEY
SECURITY_RSA_PRIVATE_KEY
public static final int SECURITY_RSA_PRIVATE_KEY
SECURITY_SHA1_RSA_SIGNED_QS
public static final int SECURITY_SHA1_RSA_SIGNED_QS
SECURITY_QS_SHA1_RSA_SIGNATURE
public static final int SECURITY_QS_SHA1_RSA_SIGNATURE
SECURITY_QS_RSA_PUBLIC_KEY
public static final int SECURITY_QS_RSA_PUBLIC_KEY
SECURITY_QS_RSA_PRIVATE_KEY
public static final int SECURITY_QS_RSA_PRIVATE_KEY
SECURITY_SIGNED_QS
public static final int SECURITY_SIGNED_QS
SECURITY_QS_DH_PUBLIC_KEY
public static final int SECURITY_QS_DH_PUBLIC_KEY
SECURITY_THRESH_PUBLIC_KEY
public static final int SECURITY_THRESH_PUBLIC_KEY
SECURITY_THRESH_SIGNATURE
public static final int SECURITY_THRESH_SIGNATURE
SECURITY_THRESH_KEY_SHARE
public static final int SECURITY_THRESH_KEY_SHARE
SECURITY_SIGNED_QS_ARRAY_IND
public static final int SECURITY_SIGNED_QS_ARRAY_IND
SECURITY_ENCRYPTED_QS
public static final int SECURITY_ENCRYPTED_QS
SECURITY_QS_RSA_CIPHER
public static final int SECURITY_QS_RSA_CIPHER
RP_CREATE_OBJECT_REQ
public static final int RP_CREATE_OBJECT_REQ
RP_CREATE_OBJECT_REQ_MSG
public static final int RP_CREATE_OBJECT_REQ_MSG
RP_INNER_RING_CREATE_REQ_MSG
public static final int RP_INNER_RING_CREATE_REQ_MSG
INNER_CREATE_OBJECT_RESP
public static final int INNER_CREATE_OBJECT_RESP
INNER_HEARTBEAT
public static final int INNER_HEARTBEAT
INNER_UPDATE_REQ_MSG
public static final int INNER_UPDATE_REQ_MSG
INNER_UPDATE_RESP
public static final int INNER_UPDATE_RESP
INNER_UPDATE_RESP_MSG
public static final int INNER_UPDATE_RESP_MSG
INNER_LATEST_HEARTBEAT_REQ
public static final int INNER_LATEST_HEARTBEAT_REQ
INNER_LATEST_HEARTBEAT_REQ_MSG
public static final int INNER_LATEST_HEARTBEAT_REQ_MSG
INNER_LATEST_HEARTBEAT_RESP
public static final int INNER_LATEST_HEARTBEAT_RESP
INNER_LATEST_HEARTBEAT_RESP_MSG
public static final int INNER_LATEST_HEARTBEAT_RESP_MSG
INNER_TIMED_HEARTBEAT_RESP_MSG
public static final int INNER_TIMED_HEARTBEAT_RESP_MSG
INNER_BLOCK_READ_REQ_MSG
public static final int INNER_BLOCK_READ_REQ_MSG
INNER_BLOCK_READ_RESP_MSG
public static final int INNER_BLOCK_READ_RESP_MSG
INNER_CREATE_OBJECT_REJECT
public static final int INNER_CREATE_OBJECT_REJECT
INNER_UPDATE_REJECT
public static final int INNER_UPDATE_REJECT
INNER_LATEST_HEARTBEAT_REJECT
public static final int INNER_LATEST_HEARTBEAT_REJECT
INNER_INNER_RING_QUERY
public static final int INNER_INNER_RING_QUERY
INNER_INNER_RING_TAG
public static final int INNER_INNER_RING_TAG
INNER_VGUID_GENERATION_REQ
public static final int INNER_VGUID_GENERATION_REQ
INNER_VGUID_GENERATION_REJECT
public static final int INNER_VGUID_GENERATION_REJECT
AGREE_FAKE_BYZ_PREPARE_MSG
public static final int AGREE_FAKE_BYZ_PREPARE_MSG
AGREE_FAKE_BYZ_RESULT_MSG
public static final int AGREE_FAKE_BYZ_RESULT_MSG
AGREE_FAKE_BYZ_COMMIT_MSG
public static final int AGREE_FAKE_BYZ_COMMIT_MSG
AGREE_FAKE_BYZ_FORWARD_MSG
public static final int AGREE_FAKE_BYZ_FORWARD_MSG
BLOOM_UPDATE_ID
public static final int BLOOM_UPDATE_ID
BLOOM_UPDATE_MESSAGE
public static final int BLOOM_UPDATE_MESSAGE
BLOOM_TOPOLOGY_DISCOVER_QUERY
public static final int BLOOM_TOPOLOGY_DISCOVER_QUERY
BLOOM_TOPOLOGY_DISCOVER_RESPONSE
public static final int BLOOM_TOPOLOGY_DISCOVER_RESPONSE
BLOOM_SIMULATED_READ
public static final int BLOOM_SIMULATED_READ
BLOOM_SIMULATED_READ_RESP
public static final int BLOOM_SIMULATED_READ_RESP
MAC_DHMESSAGE
public static final int MAC_DHMESSAGE
MAC_STSVERIFY
public static final int MAC_STSVERIFY
MAC_MACEDQS
public static final int MAC_MACEDQS
MAC_MACMESSAGE
public static final int MAC_MACMESSAGE
MACTYPE_HMACMD5
public static final int MACTYPE_HMACMD5
CACHEABLE_IDENTITY
public static final int CACHEABLE_IDENTITY
GENERATE_FRAGS_BLK_REQ_CONTINUATION
public static final int GENERATE_FRAGS_BLK_REQ_CONTINUATION
GENERATE_FRAGS_BLK_REQ
public static final int GENERATE_FRAGS_BLK_REQ
GENERATE_FRAGS_BLK_RESP
public static final int GENERATE_FRAGS_BLK_RESP
GENERATE_FRAGS_CHKPT_REQ
public static final int GENERATE_FRAGS_CHKPT_REQ
GENERATE_FRAGS_CHKPT_RESP
public static final int GENERATE_FRAGS_CHKPT_RESP
GENERATE_FRAGS_LOG_REQ
public static final int GENERATE_FRAGS_LOG_REQ
GENERATE_FRAGS_LOG_RESP
public static final int GENERATE_FRAGS_LOG_RESP
DISSEMINATE_FRAGS_REQ
public static final int DISSEMINATE_FRAGS_REQ
DISSEMINATE_FRAGS_RESP
public static final int DISSEMINATE_FRAGS_RESP
DISSEMINATE_TOMBSTONE_REQ
public static final int DISSEMINATE_TOMBSTONE_REQ
DISSEMINATE_TOMBSTONE_RESP
public static final int DISSEMINATE_TOMBSTONE_RESP
RECONSTRUCT_BLK_REQ
public static final int RECONSTRUCT_BLK_REQ
RECONSTRUCT_BLK_RESP
public static final int RECONSTRUCT_BLK_RESP
RECOALESCE_BLK_REQ
public static final int RECOALESCE_BLK_REQ
RESURRECT_TOMB_REQ
public static final int RESURRECT_TOMB_REQ
RESURRECT_TOMB_RESP
public static final int RESURRECT_TOMB_RESP
QUERY_REQ
public static final int QUERY_REQ
QUERY_RESP
public static final int QUERY_RESP
FRAGMENT
public static final int FRAGMENT
FRAGMENT_BUCKET
public static final int FRAGMENT_BUCKET
FRAGMENT_TAG
public static final int FRAGMENT_TAG
REQUEST_FRAG_MSG
public static final int REQUEST_FRAG_MSG
REQUEST_FRAG_QUERY
public static final int REQUEST_FRAG_QUERY
REQUEST_FRAG_QUERY_STATE
public static final int REQUEST_FRAG_QUERY_STATE
REQUEST_FRAG_RESPONSE_MSG
public static final int REQUEST_FRAG_RESPONSE_MSG
DISSEMINATE_FRAG_MSG
public static final int DISSEMINATE_FRAG_MSG
DISSEMINATE_FRAG_ACK_MSG
public static final int DISSEMINATE_FRAG_ACK_MSG
TYPE_REQUEST_MSG
public static final int TYPE_REQUEST_MSG
TYPE_RESPONSE_MSG
public static final int TYPE_RESPONSE_MSG
DISSEMINATION_SET_CREATOR_TAG
public static final int DISSEMINATION_SET_CREATOR_TAG
REQUEST_DISSEMINATION_SET_MSG
public static final int REQUEST_DISSEMINATION_SET_MSG
REQUEST_DISSEMINATION_SET_QUERY
public static final int REQUEST_DISSEMINATION_SET_QUERY
REQUEST_DISSEMINATION_SET_RESPONSE_MSG
public static final int REQUEST_DISSEMINATION_SET_RESPONSE_MSG
BUCKETS_TO_DISSEMINATE_EVENT
public static final int BUCKETS_TO_DISSEMINATE_EVENT
GUID_RESULT
public static final int GUID_RESULT
DTREE_MSG
public static final int DTREE_MSG
DTREE_LOCATE_MSG
public static final int DTREE_LOCATE_MSG
DTREE_CREATE_REQ
public static final int DTREE_CREATE_REQ
DTREE_CREATE_RESP
public static final int DTREE_CREATE_RESP
DTREE_JOIN_REQ
public static final int DTREE_JOIN_REQ
DTREE_JOIN_RESP
public static final int DTREE_JOIN_RESP
DTREE_LEAVE_REQ
public static final int DTREE_LEAVE_REQ
DTREE_LEAVE_RESP
public static final int DTREE_LEAVE_RESP
DTREE_DISCONNECT_REQ
public static final int DTREE_DISCONNECT_REQ
DTREE_DISCONNECT_RESP
public static final int DTREE_DISCONNECT_RESP
REPLICA_TAG
public static final int REPLICA_TAG
REPLICA_QUERY
public static final int REPLICA_QUERY
REPLICA_OPEN_REQ
public static final int REPLICA_OPEN_REQ
REPLICA_OPEN_RESP
public static final int REPLICA_OPEN_RESP
REPLICA_CLOSE_REQ
public static final int REPLICA_CLOSE_REQ
REPLICA_CLOSE_RESP
public static final int REPLICA_CLOSE_RESP
types
public static final ostore.util.Types.Type[] types
Types
public Types()
registerAllTypes
public static void registerAllTypes()