KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > orb > ORBData


1 /*
2  * @(#)ORBData.java 1.32 05/01/04
3  *
4  * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.spi.orb ;
9
10 import java.lang.reflect.Field JavaDoc ;
11
12 import java.util.Map JavaDoc ;
13 import java.util.Set JavaDoc ;
14 import java.util.Iterator JavaDoc ;
15 import java.util.Properties JavaDoc ;
16
17 import org.omg.PortableInterceptor.ORBInitializer JavaDoc ;
18
19 import com.sun.corba.se.pept.transport.Acceptor;
20
21 import com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
22 import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory;
23 import com.sun.corba.se.spi.transport.IORToSocketInfo;
24 import com.sun.corba.se.spi.transport.IIOPPrimaryToContactInfo;
25 import com.sun.corba.se.spi.transport.ReadTimeouts;
26
27 import com.sun.corba.se.impl.legacy.connection.USLPort;
28 import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
29
30 public interface ORBData {
31     public String JavaDoc getORBInitialHost() ;
32
33     public int getORBInitialPort() ;
34
35     public String JavaDoc getORBServerHost() ;
36
37     public int getORBServerPort() ;
38
39     public String JavaDoc getListenOnAllInterfaces();
40
41     public com.sun.corba.se.spi.legacy.connection.ORBSocketFactory getLegacySocketFactory () ;
42
43     public com.sun.corba.se.spi.transport.ORBSocketFactory getSocketFactory();
44
45     public USLPort[] getUserSpecifiedListenPorts () ;
46
47     public IORToSocketInfo getIORToSocketInfo();
48
49     public IIOPPrimaryToContactInfo getIIOPPrimaryToContactInfo();
50
51     public String JavaDoc getORBId() ;
52
53     public boolean getORBServerIdPropertySpecified() ;
54
55     public boolean isLocalOptimizationAllowed() ;
56
57     public GIOPVersion getGIOPVersion() ;
58
59     public int getHighWaterMark() ;
60
61     public int getLowWaterMark() ;
62
63     public int getNumberToReclaim() ;
64
65     public int getGIOPFragmentSize() ;
66
67     public int getGIOPBufferSize() ;
68
69     public int getGIOPBuffMgrStrategy(GIOPVersion gv) ;
70
71     /**
72      * @return the GIOP Target Addressing preference of the ORB.
73      * This ORB by default supports all addressing dispositions unless specified
74      * otherwise via a java system property ORBConstants.GIOP_TARGET_ADDRESSING
75      */

76     public short getGIOPTargetAddressPreference() ;
77
78     public short getGIOPAddressDisposition() ;
79
80     public boolean useByteOrderMarkers() ;
81
82     public boolean useByteOrderMarkersInEncapsulations() ;
83
84     public boolean alwaysSendCodeSetServiceContext() ;
85
86     public boolean getPersistentPortInitialized() ;
87
88     public int getPersistentServerPort();
89
90     public boolean getPersistentServerIdInitialized() ;
91
92     /** Return the persistent-server-id of this server. This id is the same
93      * across multiple activations of this server. This is in contrast to
94      * com.sun.corba.se.impl.iiop.ORB.getTransientServerId() which
95      * returns a transient id that is guaranteed to be different
96      * across multiple activations of
97      * this server. The user/environment is required to supply the
98      * persistent-server-id every time this server is started, in
99      * the ORBServerId parameter, System properties, or other means.
100      * The user is also required to ensure that no two persistent servers
101      * on the same host have the same server-id.
102      */

103     public int getPersistentServerId();
104
105     public boolean getServerIsORBActivated() ;
106
107     public Class JavaDoc getBadServerIdHandler();
108
109     /**
110     * Get the prefered code sets for connections. Should the client send the
111     * code set service context on every request?
112     */

113     public CodeSetComponentInfo getCodeSetComponentInfo() ;
114
115     public ORBInitializer JavaDoc[] getORBInitializers();
116
117     public StringPair[] getORBInitialReferences();
118
119     public String JavaDoc getORBDefaultInitialReference() ;
120
121     public String JavaDoc[] getORBDebugFlags();
122
123     public Acceptor[] getAcceptors();
124
125     public CorbaContactInfoListFactory getCorbaContactInfoListFactory();
126
127     public String JavaDoc acceptorSocketType();
128     public boolean acceptorSocketUseSelectThreadToWait();
129     public boolean acceptorSocketUseWorkerThreadForEvent();
130     public String JavaDoc connectionSocketType();
131     public boolean connectionSocketUseSelectThreadToWait();
132     public boolean connectionSocketUseWorkerThreadForEvent();
133
134     public ReadTimeouts getTransportTCPReadTimeouts();
135     public boolean disableDirectByteBufferUse() ;
136     public boolean isJavaSerializationEnabled();
137     public boolean useRepId();
138 }
139
140 // End of file.
141
Popular Tags