1 7 8 package com.sun.corba.se.impl.orbutil; 9 10 import com.sun.corba.se.impl.util.SUNVMCID ; 11 12 public class ORBConstants { 13 private ORBConstants() {} 14 15 public static final String STRINGIFY_PREFIX = "IOR:" ; 16 17 38 39 public static final int NEO_FIRST_SERVICE_CONTEXT = 0x4e454f00 ; 43 public static final int NUM_NEO_SERVICE_CONTEXTS = 15 ; 44 public static final int TAG_ORB_VERSION = NEO_FIRST_SERVICE_CONTEXT ; 45 46 public static final int SUN_TAGGED_COMPONENT_ID_BASE = 0x53554e00; 47 public static final int SUN_SERVICE_CONTEXT_ID_BASE = 0x53554e00; 48 49 53 public static final int TAG_CONTAINER_ID = 55 SUN_TAGGED_COMPONENT_ID_BASE + 0; 56 public static final int TAG_REQUEST_PARTITIONING_ID = 58 SUN_TAGGED_COMPONENT_ID_BASE + 1; 59 public static final int TAG_JAVA_SERIALIZATION_ID = 61 SUN_TAGGED_COMPONENT_ID_BASE + 2; 62 63 67 public static final int CONTAINER_ID_SERVICE_CONTEXT = 69 SUN_SERVICE_CONTEXT_ID_BASE + 0; 70 71 public static final int SERVANT_CACHING_POLICY = SUNVMCID.value + 0 ; 75 public static final int ZERO_PORT_POLICY = SUNVMCID.value + 1 ; 76 public static final int COPY_OBJECT_POLICY = SUNVMCID.value + 2 ; 77 public static final int REQUEST_PARTITIONING_POLICY = SUNVMCID.value + 3 ; 78 79 public static final int TOA_SCID = 2 ; 84 85 public static final int DEFAULT_SCID = TOA_SCID ; 86 87 public static final int FIRST_POA_SCID = 32; 88 public static final int MAX_POA_SCID = 63; 89 public static final int TRANSIENT_SCID = FIRST_POA_SCID ; 90 public static final int PERSISTENT_SCID = makePersistent( TRANSIENT_SCID ) ; 91 public static final int SC_TRANSIENT_SCID = FIRST_POA_SCID + 4 ; 92 public static final int SC_PERSISTENT_SCID = makePersistent( SC_TRANSIENT_SCID ) ; 93 public static final int IISC_TRANSIENT_SCID = FIRST_POA_SCID + 8 ; 94 public static final int IISC_PERSISTENT_SCID = makePersistent( IISC_TRANSIENT_SCID ) ; 95 public static final int MINSC_TRANSIENT_SCID = FIRST_POA_SCID + 12 ; 96 public static final int MINSC_PERSISTENT_SCID = makePersistent( MINSC_TRANSIENT_SCID ) ; 97 98 public static boolean isTransient( int scid ) 99 { 100 return (scid & 2) == 0 ; 101 } 102 103 public static int makePersistent( int scid ) 104 { 105 return scid | 2 ; 106 } 107 108 110 119 124 public static final String ORG_OMG_PREFIX = "org.omg." ; 125 public static final String ORG_OMG_CORBA_PREFIX = "org.omg.CORBA." ; 126 127 public static final String INITIAL_HOST_PROPERTY = 128 ORG_OMG_CORBA_PREFIX + "ORBInitialHost" ; 129 public static final String INITIAL_PORT_PROPERTY = 130 ORG_OMG_CORBA_PREFIX + "ORBInitialPort" ; 131 public static final String INITIAL_SERVICES_PROPERTY = 132 ORG_OMG_CORBA_PREFIX + "ORBInitialServices" ; 133 public static final String DEFAULT_INIT_REF_PROPERTY = 134 ORG_OMG_CORBA_PREFIX + "ORBDefaultInitRef" ; 135 public static final String ORB_INIT_REF_PROPERTY = 136 ORG_OMG_CORBA_PREFIX + "ORBInitRef" ; 137 138 public static final String SUN_PREFIX = "com.sun.CORBA." ; 140 141 public static final String ALLOW_LOCAL_OPTIMIZATION = SUN_PREFIX + "ORBAllowLocalOptimization" ; 143 public static final String SERVER_PORT_PROPERTY = SUN_PREFIX + "ORBServerPort" ; 144 public static final String SERVER_HOST_PROPERTY = SUN_PREFIX + "ORBServerHost" ; 145 public static final String ORB_ID_PROPERTY = ORG_OMG_CORBA_PREFIX + "ORBId" ; 146 public static final String OLD_ORB_ID_PROPERTY = SUN_PREFIX + "ORBid" ; 148 public static final String ORB_SERVER_ID_PROPERTY = ORG_OMG_CORBA_PREFIX + "ORBServerId" ; 149 public static final String DEBUG_PROPERTY = SUN_PREFIX + "ORBDebug" ; 150 public static final String USE_REP_ID = SUN_PREFIX + "ORBUseRepId"; 152 153 public static final String LISTEN_ON_ALL_INTERFACES = SUN_PREFIX + "INTERNAL USE ONLY: listen on all interfaces"; 157 158 public static final String GIOP_VERSION = SUN_PREFIX + "giop.ORBGIOPVersion" ; 160 public static final String GIOP_FRAGMENT_SIZE = SUN_PREFIX + "giop.ORBFragmentSize" ; 161 public static final String GIOP_BUFFER_SIZE = SUN_PREFIX + "giop.ORBBufferSize" ; 162 public static final String GIOP_11_BUFFMGR = SUN_PREFIX + "giop.ORBGIOP11BuffMgr"; 163 public static final String GIOP_12_BUFFMGR = SUN_PREFIX + "giop.ORBGIOP12BuffMgr"; 164 public static final String GIOP_TARGET_ADDRESSING = SUN_PREFIX + "giop.ORBTargetAddressing"; 165 public static final int GIOP_DEFAULT_FRAGMENT_SIZE = 1024; 166 public static final int GIOP_DEFAULT_BUFFER_SIZE = 1024; 167 public static final int DEFAULT_GIOP_11_BUFFMGR = 0; public static final int DEFAULT_GIOP_12_BUFFMGR = 2; public static final short ADDR_DISP_OBJKEY = 0; public static final short ADDR_DISP_PROFILE = 1; public static final short ADDR_DISP_IOR = 2; public static final short ADDR_DISP_HANDLE_ALL = 3; 174 public static final int GIOP_12_MSG_BODY_ALIGNMENT = 8; 178 179 public static final int GIOP_FRAGMENT_DIVISOR = 8; 182 public static final int GIOP_FRAGMENT_MINIMUM_SIZE = 32; 183 184 public static final String HIGH_WATER_MARK_PROPERTY = 186 SUN_PREFIX + "connection.ORBHighWaterMark" ; 187 public static final String LOW_WATER_MARK_PROPERTY = 188 SUN_PREFIX + "connection.ORBLowWaterMark" ; 189 public static final String NUMBER_TO_RECLAIM_PROPERTY = 190 SUN_PREFIX + "connection.ORBNumberToReclaim" ; 191 192 public static final String ACCEPTOR_CLASS_PREFIX_PROPERTY = 193 SUN_PREFIX + "transport.ORBAcceptor"; 194 195 public static final String CONTACT_INFO_LIST_FACTORY_CLASS_PROPERTY = 196 SUN_PREFIX + "transport.ORBContactInfoList"; 197 198 public static final String LEGACY_SOCKET_FACTORY_CLASS_PROPERTY = 200 SUN_PREFIX + "legacy.connection.ORBSocketFactoryClass" ; 201 202 203 public static final String SOCKET_FACTORY_CLASS_PROPERTY = 204 SUN_PREFIX + "transport.ORBSocketFactoryClass" ; 205 public static final String LISTEN_SOCKET_PROPERTY = 206 SUN_PREFIX + "transport.ORBListenSocket"; 207 public static final String IOR_TO_SOCKET_INFO_CLASS_PROPERTY = 208 SUN_PREFIX + "transport.ORBIORToSocketInfoClass"; 209 public static final String IIOP_PRIMARY_TO_CONTACT_INFO_CLASS_PROPERTY = 210 SUN_PREFIX + "transport.ORBIIOPPrimaryToContactInfoClass"; 211 212 public static final int REQUEST_PARTITIONING_MIN_THREAD_POOL_ID = 0; 214 public static final int REQUEST_PARTITIONING_MAX_THREAD_POOL_ID = 63; 215 216 public static final String TRANSPORT_TCP_READ_TIMEOUTS_PROPERTY = 220 SUN_PREFIX + "transport.ORBTCPReadTimeouts"; 221 222 public static final int TRANSPORT_TCP_INITIAL_TIME_TO_WAIT = 100; 225 226 public static final int TRANSPORT_TCP_MAX_TIME_TO_WAIT = 3000; 229 230 public static final int TRANSPORT_TCP_GIOP_HEADER_MAX_TIME_TO_WAIT = 300; 233 234 public static final int TRANSPORT_TCP_TIME_TO_WAIT_BACKOFF_FACTOR = 20; 237 238 public static final String USE_NIO_SELECT_TO_WAIT_PROPERTY = 239 SUN_PREFIX + "transport.ORBUseNIOSelectToWait"; 240 241 public static final String ACCEPTOR_SOCKET_TYPE_PROPERTY = 244 SUN_PREFIX + "transport.ORBAcceptorSocketType"; 245 246 public static final String ACCEPTOR_SOCKET_USE_WORKER_THREAD_FOR_EVENT_PROPERTY = 248 SUN_PREFIX + "transport.ORBAcceptorSocketUseWorkerThreadForEvent"; 249 250 public static final String CONNECTION_SOCKET_TYPE_PROPERTY = 252 SUN_PREFIX + "transport.ORBConnectionSocketType"; 253 254 public static final String CONNECTION_SOCKET_USE_WORKER_THREAD_FOR_EVENT_PROPERTY = 256 SUN_PREFIX + "transport.ORBConnectionSocketUseWorkerThreadForEvent"; 257 258 public static final String DISABLE_DIRECT_BYTE_BUFFER_USE_PROPERTY = 262 SUN_PREFIX + "transport.ORBDisableDirectByteBufferUse" ; 263 264 public static final String SOCKET = "Socket"; 265 public static final String SOCKETCHANNEL = "SocketChannel"; 266 267 public static final String PERSISTENT_SERVER_PORT_PROPERTY = SUN_PREFIX + "POA.ORBPersistentServerPort" ; 269 public static final String SERVER_ID_PROPERTY = SUN_PREFIX + "POA.ORBServerId" ; 270 public static final String BAD_SERVER_ID_HANDLER_CLASS_PROPERTY 271 = SUN_PREFIX + "POA.ORBBadServerIdHandlerClass" ; 272 public static final String ACTIVATED_PROPERTY = SUN_PREFIX + "POA.ORBActivated" ; 273 public static final String SERVER_NAME_PROPERTY = SUN_PREFIX + "POA.ORBServerName" ; 274 275 278 public static final String SERVER_DEF_VERIFY_PROPERTY = SUN_PREFIX + "activation.ORBServerVerify" ; 279 280 public static final String SUN_LC_PREFIX = "com.sun.corba." ; 282 283 public static final String SUN_LC_VERSION_PREFIX = "com.sun.corba.se."; 285 286 public static final String JTS_CLASS_PROPERTY = SUN_LC_VERSION_PREFIX + "CosTransactions.ORBJTSClass" ; 287 288 public static final String ENABLE_JAVA_SERIALIZATION_PROPERTY = 290 SUN_PREFIX + "encoding.ORBEnableJavaSerialization"; 291 292 294 public static final String PI_ORB_INITIALIZER_CLASS_PREFIX = 295 "org.omg.PortableInterceptor.ORBInitializerClass."; 296 297 public static final String USE_DYNAMIC_STUB_PROPERTY = SUN_PREFIX + "ORBUseDynamicStub" ; 298 299 public static final String DYNAMIC_STUB_FACTORY_FACTORY_CLASS = 300 SUN_PREFIX + "ORBDynamicStubFactoryFactoryClass" ; 301 302 304 public static final int DEFAULT_INITIAL_PORT = 900; 305 306 public static final String DEFAULT_INS_HOST = "localhost"; 307 308 public static final int DEFAULT_INS_PORT = 2089; 309 310 public static final int DEFAULT_INS_GIOP_MAJOR_VERSION = 1; 311 312 public static final int DEFAULT_INS_GIOP_MINOR_VERSION = 0; 315 316 317 319 public static final int MAJORNUMBER_SUPPORTED = 1; 321 public static final int MINORNUMBERMAX = 2; 322 323 public static final int TRANSIENT = 1; 326 public static final int PERSISTENT = 2; 327 328 330 332 public static final String DB_DIR_PROPERTY = SUN_PREFIX + "activation.DbDir" ; 333 public static final String DB_PROPERTY = SUN_PREFIX + "activation.db" ; 334 public static final String ORBD_PORT_PROPERTY = SUN_PREFIX + "activation.Port" ; 335 public static final String SERVER_POLLING_TIME = SUN_PREFIX + "activation.ServerPollingTime"; 336 public static final String SERVER_STARTUP_DELAY = SUN_PREFIX + "activation.ServerStartupDelay"; 337 338 public static final int DEFAULT_ACTIVATION_PORT = 1049 ; 339 340 public static final int RI_NAMESERVICE_PORT = 1050; 344 345 public static final int DEFAULT_SERVER_POLLING_TIME = 1000; 346 347 public static final int DEFAULT_SERVER_STARTUP_DELAY = 1000; 348 349 350 352 public static final String LOG_LEVEL_PROPERTY = SUN_PREFIX + "ORBLogLevel"; 353 354 public static final String LOG_RESOURCE_FILE = 355 "com.sun.corba.se.impl.logging.LogStrings"; 356 357 359 public static final String TRANSIENT_NAME_SERVICE_NAME = "TNameService" ; 360 public static final String PERSISTENT_NAME_SERVICE_NAME = "NameService" ; 361 362 public static final String NAME_SERVICE_SERVER_ID = "1000000" ; 365 366 public static final String ROOT_POA_NAME = "RootPOA" ; 367 public static final String POA_CURRENT_NAME = "POACurrent" ; 368 public static final String SERVER_ACTIVATOR_NAME = "ServerActivator" ; 369 public static final String SERVER_LOCATOR_NAME = "ServerLocator" ; 370 public static final String SERVER_REPOSITORY_NAME = "ServerRepository" ; 371 public static final String INITIAL_NAME_SERVICE_NAME= "InitialNameService" ; 372 public static final String TRANSACTION_CURRENT_NAME = "TransactionCurrent" ; 373 public static final String DYN_ANY_FACTORY_NAME = "DynAnyFactory" ; 374 375 public static final String PI_CURRENT_NAME = "PICurrent" ; 377 public static final String CODEC_FACTORY_NAME = "CodecFactory" ; 378 379 381 public static final String DEFAULT_DB_DIR = "orb.db" ; 382 public static final String DEFAULT_DB_NAME = "db" ; 383 public static final String INITIAL_ORB_DB = "initial.db" ; 384 public static final String SERVER_LOG_DIR = "logs" ; 385 public static final String ORBID_DIR_BASE = "orbids" ; 386 public static final String ORBID_DB_FILE_NAME = "orbids.db" ; 387 388 390 public static final int DEFAULT_INACTIVITY_TIMEOUT = 120000; 392 public static final String THREADPOOL_DEFAULT_NAME = "default-threadpool"; 394 public static final String WORKQUEUE_DEFAULT_NAME = "default-workqueue"; 396 397 public static final int LEGACY_SUN_NOT_SERIALIZABLE = SUNVMCID.value + 1 ; 402 403 405 public static final boolean DEFAULT_ALWAYS_SEND_CODESET_CTX = true; 410 public static final String ALWAYS_SEND_CODESET_CTX_PROPERTY 411 = SUN_PREFIX + "codeset.AlwaysSendCodeSetCtx"; 412 413 public static final boolean DEFAULT_USE_BYTE_ORDER_MARKERS = true; 416 public static final String USE_BOMS = SUN_PREFIX + "codeset.UseByteOrderMarkers"; 417 418 public static final boolean DEFAULT_USE_BYTE_ORDER_MARKERS_IN_ENCAPS = false; 420 public static final String USE_BOMS_IN_ENCAPS = SUN_PREFIX + "codeset.UseByteOrderMarkersInEncaps"; 421 422 public static final String CHAR_CODESETS = SUN_PREFIX + "codeset.charsets"; 448 public static final String WCHAR_CODESETS = SUN_PREFIX + "codeset.wcharsets"; 449 450 public static final byte STREAM_FORMAT_VERSION_1 = (byte)1; 452 public static final byte STREAM_FORMAT_VERSION_2 = (byte)2; 453 } 454 | Popular Tags |