1 /* 2 * Copyright (c) 2002, 2004, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.corba.se.spi.orb ; 27 28 import java.lang.reflect.Field ; 29 30 import java.util.Map ; 31 import java.util.Set ; 32 import java.util.Iterator ; 33 import java.util.Properties ; 34 35 import org.omg.PortableInterceptor.ORBInitializer ; 36 37 import com.sun.corba.se.pept.transport.Acceptor; 38 39 import com.sun.corba.se.spi.ior.iiop.GIOPVersion ; 40 import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory; 41 import com.sun.corba.se.spi.transport.IORToSocketInfo; 42 import com.sun.corba.se.spi.transport.IIOPPrimaryToContactInfo; 43 import com.sun.corba.se.spi.transport.ReadTimeouts; 44 45 import com.sun.corba.se.impl.legacy.connection.USLPort; 46 import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ; 47 48 public interface ORBData { getORBInitialHost()49 public String getORBInitialHost() ; 50 getORBInitialPort()51 public int getORBInitialPort() ; 52 getORBServerHost()53 public String getORBServerHost() ; 54 getORBServerPort()55 public int getORBServerPort() ; 56 getListenOnAllInterfaces()57 public String getListenOnAllInterfaces(); 58 getLegacySocketFactory()59 public com.sun.corba.se.spi.legacy.connection.ORBSocketFactory getLegacySocketFactory () ; 60 getSocketFactory()61 public com.sun.corba.se.spi.transport.ORBSocketFactory getSocketFactory(); 62 getUserSpecifiedListenPorts()63 public USLPort[] getUserSpecifiedListenPorts () ; 64 getIORToSocketInfo()65 public IORToSocketInfo getIORToSocketInfo(); 66 getIIOPPrimaryToContactInfo()67 public IIOPPrimaryToContactInfo getIIOPPrimaryToContactInfo(); 68 getORBId()69 public String getORBId() ; 70 getORBServerIdPropertySpecified()71 public boolean getORBServerIdPropertySpecified() ; 72 isLocalOptimizationAllowed()73 public boolean isLocalOptimizationAllowed() ; 74 getGIOPVersion()75 public GIOPVersion getGIOPVersion() ; 76 getHighWaterMark()77 public int getHighWaterMark() ; 78 getLowWaterMark()79 public int getLowWaterMark() ; 80 getNumberToReclaim()81 public int getNumberToReclaim() ; 82 getGIOPFragmentSize()83 public int getGIOPFragmentSize() ; 84 getGIOPBufferSize()85 public int getGIOPBufferSize() ; 86 getGIOPBuffMgrStrategy(GIOPVersion gv)87 public int getGIOPBuffMgrStrategy(GIOPVersion gv) ; 88 89 /** 90 * @return the GIOP Target Addressing preference of the ORB. 91 * This ORB by default supports all addressing dispositions unless specified 92 * otherwise via a java system property ORBConstants.GIOP_TARGET_ADDRESSING 93 */ getGIOPTargetAddressPreference()94 public short getGIOPTargetAddressPreference() ; 95 getGIOPAddressDisposition()96 public short getGIOPAddressDisposition() ; 97 useByteOrderMarkers()98 public boolean useByteOrderMarkers() ; 99 useByteOrderMarkersInEncapsulations()100 public boolean useByteOrderMarkersInEncapsulations() ; 101 alwaysSendCodeSetServiceContext()102 public boolean alwaysSendCodeSetServiceContext() ; 103 getPersistentPortInitialized()104 public boolean getPersistentPortInitialized() ; 105 getPersistentServerPort()106 public int getPersistentServerPort(); 107 getPersistentServerIdInitialized()108 public boolean getPersistentServerIdInitialized() ; 109 110 /** Return the persistent-server-id of this server. This id is the same 111 * across multiple activations of this server. This is in contrast to 112 * com.sun.corba.se.impl.iiop.ORB.getTransientServerId() which 113 * returns a transient id that is guaranteed to be different 114 * across multiple activations of 115 * this server. The user/environment is required to supply the 116 * persistent-server-id every time this server is started, in 117 * the ORBServerId parameter, System properties, or other means. 118 * The user is also required to ensure that no two persistent servers 119 * on the same host have the same server-id. 120 */ getPersistentServerId()121 public int getPersistentServerId(); 122 getServerIsORBActivated()123 public boolean getServerIsORBActivated() ; 124 getBadServerIdHandler()125 public Class getBadServerIdHandler(); 126 127 /** 128 * Get the prefered code sets for connections. Should the client send the 129 * code set service context on every request? 130 */ getCodeSetComponentInfo()131 public CodeSetComponentInfo getCodeSetComponentInfo() ; 132 getORBInitializers()133 public ORBInitializer[] getORBInitializers(); 134 getORBInitialReferences()135 public StringPair[] getORBInitialReferences(); 136 getORBDefaultInitialReference()137 public String getORBDefaultInitialReference() ; 138 getORBDebugFlags()139 public String[] getORBDebugFlags(); 140 getAcceptors()141 public Acceptor[] getAcceptors(); 142 getCorbaContactInfoListFactory()143 public CorbaContactInfoListFactory getCorbaContactInfoListFactory(); 144 acceptorSocketType()145 public String acceptorSocketType(); acceptorSocketUseSelectThreadToWait()146 public boolean acceptorSocketUseSelectThreadToWait(); acceptorSocketUseWorkerThreadForEvent()147 public boolean acceptorSocketUseWorkerThreadForEvent(); connectionSocketType()148 public String connectionSocketType(); connectionSocketUseSelectThreadToWait()149 public boolean connectionSocketUseSelectThreadToWait(); connectionSocketUseWorkerThreadForEvent()150 public boolean connectionSocketUseWorkerThreadForEvent(); 151 getTransportTCPReadTimeouts()152 public ReadTimeouts getTransportTCPReadTimeouts(); disableDirectByteBufferUse()153 public boolean disableDirectByteBufferUse() ; isJavaSerializationEnabled()154 public boolean isJavaSerializationEnabled(); useRepId()155 public boolean useRepId(); 156 } 157 158 // End of file. 159