⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orbconstants.java

📁 java1.6众多例子参考
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * @(#)ORBConstants.java	1.63 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.impl.orbutil;import com.sun.corba.se.impl.util.SUNVMCID ;public class ORBConstants {    private ORBConstants() {}    public static final String STRINGIFY_PREFIX = "IOR:" ;    /* TAGS       tag-request@omg.org       FAQ on tags and tag allocation: http://doc.omg.org/ptc/99-02-01.       http://doc.omg.org/standard-tags       http://doc.omg.org/vendor-tags       Last update:  19th August 2003 (ptc/03-08-14)       // Legacy       1 profile tag      0x4f4e4300              ("ONC\x00")       1 profile tag      0x4e454f00              ("NEO\x00")       1 profile tag      0x434f4f4c              ("COOL")       16 service tags    0x4e454f00 - 0x4e454f0f ("NEO\x00" - "NEO\x0f")       // Current       16 VMCID           0x5355xxxx              ("SU\x00\x00" - "SU\xff\xff")       16 profile tags    0x53554e00 - 0x53554e0f ("SUN\x00" - "SUN\x0f")       16 ORB Type IDs    0x53554e00 - 0x53554e0f ("SUN\x00" - "SUN\x0f")       64 service tags    0x53554e00 - 0x53554e3f ("SUN\x00" - "SUN\x3f")       64 component tags  0x53554e00 - 0x53554e3f ("SUN\x00" - "SUN\x3f")    */    // All NEO service contexts must be in the range     // NEO_FIRST_SERVICE_CONTEXT to    // NEO_FIRST_SERVICE_CONTEXT + NUM_NEO_SERVICE_CONTEXTS - 1    public static final int NEO_FIRST_SERVICE_CONTEXT = 0x4e454f00 ;    public static final int NUM_NEO_SERVICE_CONTEXTS = 15 ;    public static final int TAG_ORB_VERSION = NEO_FIRST_SERVICE_CONTEXT ;    public static final int SUN_TAGGED_COMPONENT_ID_BASE = 0x53554e00;    public static final int SUN_SERVICE_CONTEXT_ID_BASE  = 0x53554e00;    //    // Tagged Components Ids    //    // Used by AS 7 for IIOP failover.    public static final int TAG_CONTAINER_ID =	SUN_TAGGED_COMPONENT_ID_BASE + 0;    // Used by AS 8.1 for Request Partioning    public static final int TAG_REQUEST_PARTITIONING_ID = 	SUN_TAGGED_COMPONENT_ID_BASE + 1;    // TaggedComponentId for Java serialization tagged component.    public static final int TAG_JAVA_SERIALIZATION_ID = 	SUN_TAGGED_COMPONENT_ID_BASE + 2;    //    // Service Context Ids    //    // Used by AS 7 for IIOP failover.    public static final int CONTAINER_ID_SERVICE_CONTEXT =	SUN_SERVICE_CONTEXT_ID_BASE + 0;	    // All Sun policies are allocated using the SUNVMCID, which is also    // used for minor codes.  This allows 12 bits of offset, so    // the largest legal Sun policy is SUNVMCID.value + 4095.    public static final int SERVANT_CACHING_POLICY      = SUNVMCID.value + 0 ;    public static final int ZERO_PORT_POLICY	        = SUNVMCID.value + 1 ;    public static final int COPY_OBJECT_POLICY	        = SUNVMCID.value + 2 ;    public static final int REQUEST_PARTITIONING_POLICY = SUNVMCID.value + 3 ;    // These are the subcontract IDs for various qualities of    // service/implementation.    // Persistent SCIDs have the second bit as 1.    // SCIDs less than FIRST_POA_SCID are JavaIDL SCIDs.    public static final int TOA_SCID = 2 ;    public static final int DEFAULT_SCID = TOA_SCID ;    public static final int FIRST_POA_SCID = 32;    public static final int MAX_POA_SCID = 63;    public static final int TRANSIENT_SCID	    = FIRST_POA_SCID ;    public static final int PERSISTENT_SCID	    = makePersistent( TRANSIENT_SCID ) ;    public static final int SC_TRANSIENT_SCID	    = FIRST_POA_SCID + 4 ;    public static final int SC_PERSISTENT_SCID	    = makePersistent( SC_TRANSIENT_SCID ) ;    public static final int IISC_TRANSIENT_SCID	    = FIRST_POA_SCID + 8 ;    public static final int IISC_PERSISTENT_SCID    = makePersistent( IISC_TRANSIENT_SCID ) ;    public static final int MINSC_TRANSIENT_SCID    = FIRST_POA_SCID + 12 ;    public static final int MINSC_PERSISTENT_SCID   = makePersistent( MINSC_TRANSIENT_SCID ) ;    public static boolean isTransient( int scid )    {	return (scid & 2) == 0 ;    }    public static int makePersistent( int scid )     {	return scid | 2 ;    }    // Constants for ORB properties **************************************************************    // All ORB properties must follow the following rules:    // 1. Property names must start with either    //    ORG_OMG_CORBA_PREFIX or SUN_PREFIX.    // 2. Property names must have unique suffixes after the last ".".    // 3. Property names must have "ORB" as the first 3 letters     //    in their suffix.    // 4. proprietary property names should have a subsystem    //    where appropriate after the prefix.    // org.omg.CORBA properties must be defined by OMG standards    // The well known org.omg.CORBA.ORBClass and    // org.omg.CORBA.ORBSingletonClass are not included here    // since they occur in org.omg.CORBA.ORB.    public static final String ORG_OMG_PREFIX       = "org.omg." ;    public static final String ORG_OMG_CORBA_PREFIX = "org.omg.CORBA." ;    public static final String INITIAL_HOST_PROPERTY =	ORG_OMG_CORBA_PREFIX + "ORBInitialHost" ;    public static final String INITIAL_PORT_PROPERTY =	ORG_OMG_CORBA_PREFIX + "ORBInitialPort" ;    public static final String INITIAL_SERVICES_PROPERTY =	ORG_OMG_CORBA_PREFIX + "ORBInitialServices" ;    public static final String DEFAULT_INIT_REF_PROPERTY =	ORG_OMG_CORBA_PREFIX + "ORBDefaultInitRef" ;    public static final String ORB_INIT_REF_PROPERTY =	ORG_OMG_CORBA_PREFIX + "ORBInitRef" ;    // All of our proprietary properties must start with com.sun.CORBA    public static final String SUN_PREFIX = "com.sun.CORBA." ;    // general properties    public static final String ALLOW_LOCAL_OPTIMIZATION		= SUN_PREFIX + "ORBAllowLocalOptimization" ;    public static final String SERVER_PORT_PROPERTY		= SUN_PREFIX + "ORBServerPort" ;    public static final String SERVER_HOST_PROPERTY		= SUN_PREFIX + "ORBServerHost" ;    public static final String ORB_ID_PROPERTY			= ORG_OMG_CORBA_PREFIX + "ORBId" ;    // This property is provided for backward compatibility reasons    public static final String OLD_ORB_ID_PROPERTY		= SUN_PREFIX + "ORBid" ;    public static final String ORB_SERVER_ID_PROPERTY	        = ORG_OMG_CORBA_PREFIX + "ORBServerId" ;    public static final String DEBUG_PROPERTY			= SUN_PREFIX + "ORBDebug" ;    // Property for setting use of repository Ids during serialization.    public static final String USE_REP_ID = SUN_PREFIX + "ORBUseRepId";    // NOTE: This is an internal property.  It should never be set by    // a user.  That is the reason it has spaces in its name - to make it    // harder to use.    public static final String LISTEN_ON_ALL_INTERFACES         = SUN_PREFIX + "INTERNAL USE ONLY: listen on all interfaces";    // giop related properties - default settings in decimal form    public static final String GIOP_VERSION                     = SUN_PREFIX + "giop.ORBGIOPVersion" ;    public static final String GIOP_FRAGMENT_SIZE               = SUN_PREFIX + "giop.ORBFragmentSize" ;    public static final String GIOP_BUFFER_SIZE                 = SUN_PREFIX + "giop.ORBBufferSize" ;    public static final String GIOP_11_BUFFMGR                  = SUN_PREFIX + "giop.ORBGIOP11BuffMgr";    public static final String GIOP_12_BUFFMGR                  = SUN_PREFIX + "giop.ORBGIOP12BuffMgr";    public static final String GIOP_TARGET_ADDRESSING           = SUN_PREFIX + "giop.ORBTargetAddressing";        public static final int GIOP_DEFAULT_FRAGMENT_SIZE = 1024;    public static final int GIOP_DEFAULT_BUFFER_SIZE = 1024;    public static final int DEFAULT_GIOP_11_BUFFMGR = 0; //Growing    public static final int DEFAULT_GIOP_12_BUFFMGR = 2; //Streaming    public static final short ADDR_DISP_OBJKEY = 0; // object key used for target addressing    public static final short ADDR_DISP_PROFILE = 1; // iop profile used for target addressing    public static final short ADDR_DISP_IOR = 2; // ior used for target addressing    public static final short ADDR_DISP_HANDLE_ALL = 3; // accept all target addressing dispositions (default)    // CORBA formal 00-11-03 sections 15.4.2.2, 15.4.3.2, 15.4.6.2    // state that the GIOP 1.2 RequestMessage, ReplyMessage, and    // LocateReply message bodies must begin on 8 byte boundaries.    public static final int GIOP_12_MSG_BODY_ALIGNMENT = 8;    // The GIOP 1.2 fragments must be divisible by 8.  We generalize this    // to GIOP 1.1 fragments, as well.    public static final int GIOP_FRAGMENT_DIVISOR = 8;    public static final int GIOP_FRAGMENT_MINIMUM_SIZE = 32;    // connection management properties    public static final String HIGH_WATER_MARK_PROPERTY	=	SUN_PREFIX + "connection.ORBHighWaterMark" ;    public static final String LOW_WATER_MARK_PROPERTY =	SUN_PREFIX + "connection.ORBLowWaterMark" ;    public static final String NUMBER_TO_RECLAIM_PROPERTY =	SUN_PREFIX + "connection.ORBNumberToReclaim" ;    public static final String ACCEPTOR_CLASS_PREFIX_PROPERTY =	SUN_PREFIX + "transport.ORBAcceptor";    public static final String CONTACT_INFO_LIST_FACTORY_CLASS_PROPERTY =	SUN_PREFIX + "transport.ORBContactInfoList";    // Legacy:    public static final String LEGACY_SOCKET_FACTORY_CLASS_PROPERTY =	SUN_PREFIX + "legacy.connection.ORBSocketFactoryClass" ;    public static final String SOCKET_FACTORY_CLASS_PROPERTY =	SUN_PREFIX + "transport.ORBSocketFactoryClass" ;    public static final String LISTEN_SOCKET_PROPERTY =	SUN_PREFIX + "transport.ORBListenSocket";    public static final String IOR_TO_SOCKET_INFO_CLASS_PROPERTY =	SUN_PREFIX + "transport.ORBIORToSocketInfoClass";    public static final String IIOP_PRIMARY_TO_CONTACT_INFO_CLASS_PROPERTY =	SUN_PREFIX + "transport.ORBIIOPPrimaryToContactInfoClass";    // Request partitioning maximum and minimum thread pool id constants.    public static final int REQUEST_PARTITIONING_MIN_THREAD_POOL_ID =  0;    public static final int REQUEST_PARTITIONING_MAX_THREAD_POOL_ID = 63;    // transport read tcp timeout property, colon separated property     // with syntax <initial time to wait:max read giop header time to    // wait: max read message time to wait:backoff factor>    public static final String TRANSPORT_TCP_READ_TIMEOUTS_PROPERTY =	SUN_PREFIX + "transport.ORBTCPReadTimeouts";    // initial time to wait in milliseconds if a transport    // tcp read returns 0 bytes    public static final int TRANSPORT_TCP_INITIAL_TIME_TO_WAIT = 100;    // max time to spend in cumulative waits in milliseconds    // if a transport tcp read returns 0 bytes

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -