ORBData.java revision 608:7e06bf1dcb09
155682Smarkm/*
2233294Sstas * Copyright (c) 2002, 2004, Oracle and/or its affiliates. All rights reserved.
355682Smarkm * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
455682Smarkm *
5233294Sstas * This code is free software; you can redistribute it and/or modify it
655682Smarkm * under the terms of the GNU General Public License version 2 only, as
755682Smarkm * published by the Free Software Foundation.  Oracle designates this
855682Smarkm * particular file as subject to the "Classpath" exception as provided
9233294Sstas * by Oracle in the LICENSE file that accompanied this code.
1055682Smarkm *
1155682Smarkm * This code is distributed in the hope that it will be useful, but WITHOUT
12233294Sstas * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1355682Smarkm * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1455682Smarkm * version 2 for more details (a copy is included in the LICENSE file that
1555682Smarkm * accompanied this code).
16233294Sstas *
1755682Smarkm * You should have received a copy of the GNU General Public License version
1855682Smarkm * 2 along with this work; if not, write to the Free Software Foundation,
1955682Smarkm * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20233294Sstas *
2155682Smarkm * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2255682Smarkm * or visit www.oracle.com if you need additional information or have any
2355682Smarkm * questions.
2455682Smarkm */
2555682Smarkm
2655682Smarkmpackage com.sun.corba.se.spi.orb ;
2755682Smarkm
2855682Smarkmimport java.lang.reflect.Field ;
2955682Smarkm
3055682Smarkmimport java.util.Map ;
3155682Smarkmimport java.util.Set ;
3255682Smarkmimport java.util.Iterator ;
3355682Smarkmimport java.util.Properties ;
3455682Smarkm
3555682Smarkmimport org.omg.PortableInterceptor.ORBInitializer ;
3655682Smarkm
3755682Smarkmimport com.sun.corba.se.pept.transport.Acceptor;
3855682Smarkm
3955682Smarkmimport com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
4055682Smarkmimport com.sun.corba.se.spi.transport.CorbaContactInfoListFactory;
4155682Smarkmimport com.sun.corba.se.spi.transport.IORToSocketInfo;
42233294Sstasimport com.sun.corba.se.spi.transport.IIOPPrimaryToContactInfo;
4355682Smarkmimport com.sun.corba.se.spi.transport.ReadTimeouts;
4455682Smarkm
4555682Smarkmimport com.sun.corba.se.impl.legacy.connection.USLPort;
4655682Smarkmimport com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
4755682Smarkm
4855682Smarkmpublic interface ORBData {
4955682Smarkm    public String getORBInitialHost() ;
5055682Smarkm
5155682Smarkm    public int getORBInitialPort() ;
5255682Smarkm
5355682Smarkm    public String getORBServerHost() ;
5455682Smarkm
55    public int getORBServerPort() ;
56
57    public String getListenOnAllInterfaces();
58
59    public com.sun.corba.se.spi.legacy.connection.ORBSocketFactory getLegacySocketFactory () ;
60
61    public com.sun.corba.se.spi.transport.ORBSocketFactory getSocketFactory();
62
63    public USLPort[] getUserSpecifiedListenPorts () ;
64
65    public IORToSocketInfo getIORToSocketInfo();
66
67    public IIOPPrimaryToContactInfo getIIOPPrimaryToContactInfo();
68
69    public String getORBId() ;
70
71    public boolean getORBServerIdPropertySpecified() ;
72
73    public boolean isLocalOptimizationAllowed() ;
74
75    public GIOPVersion getGIOPVersion() ;
76
77    public int getHighWaterMark() ;
78
79    public int getLowWaterMark() ;
80
81    public int getNumberToReclaim() ;
82
83    public int getGIOPFragmentSize() ;
84
85    public int getGIOPBufferSize() ;
86
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     */
94    public short getGIOPTargetAddressPreference() ;
95
96    public short getGIOPAddressDisposition() ;
97
98    public boolean useByteOrderMarkers() ;
99
100    public boolean useByteOrderMarkersInEncapsulations() ;
101
102    public boolean alwaysSendCodeSetServiceContext() ;
103
104    public boolean getPersistentPortInitialized() ;
105
106    public int getPersistentServerPort();
107
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     */
121    public int getPersistentServerId();
122
123    public boolean getServerIsORBActivated() ;
124
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    */
131    public CodeSetComponentInfo getCodeSetComponentInfo() ;
132
133    public ORBInitializer[] getORBInitializers();
134
135    public StringPair[] getORBInitialReferences();
136
137    public String getORBDefaultInitialReference() ;
138
139    public String[] getORBDebugFlags();
140
141    public Acceptor[] getAcceptors();
142
143    public CorbaContactInfoListFactory getCorbaContactInfoListFactory();
144
145    public String acceptorSocketType();
146    public boolean acceptorSocketUseSelectThreadToWait();
147    public boolean acceptorSocketUseWorkerThreadForEvent();
148    public String connectionSocketType();
149    public boolean connectionSocketUseSelectThreadToWait();
150    public boolean connectionSocketUseWorkerThreadForEvent();
151
152    public ReadTimeouts getTransportTCPReadTimeouts();
153    public boolean disableDirectByteBufferUse() ;
154    public boolean isJavaSerializationEnabled();
155    public boolean useRepId();
156}
157
158// End of file.
159