ORBData.java revision 608:7e06bf1dcb09
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
26package com.sun.corba.se.spi.orb ;
27
28import java.lang.reflect.Field ;
29
30import java.util.Map ;
31import java.util.Set ;
32import java.util.Iterator ;
33import java.util.Properties ;
34
35import org.omg.PortableInterceptor.ORBInitializer ;
36
37import com.sun.corba.se.pept.transport.Acceptor;
38
39import com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
40import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory;
41import com.sun.corba.se.spi.transport.IORToSocketInfo;
42import com.sun.corba.se.spi.transport.IIOPPrimaryToContactInfo;
43import com.sun.corba.se.spi.transport.ReadTimeouts;
44
45import com.sun.corba.se.impl.legacy.connection.USLPort;
46import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
47
48public interface ORBData {
49    public String getORBInitialHost() ;
50
51    public int getORBInitialPort() ;
52
53    public String getORBServerHost() ;
54
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