Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public class OrbFocused
extends ORB_1_4
Nested Class Summary |
Nested classes/interfaces inherited from class gnu.CORBA.OrbFunctional | |
OrbFunctional.portServer , OrbFunctional.sharedPortServer |
Field Summary | |
static String |
|
Fields inherited from class gnu.CORBA.Poa.ORB_1_4 | |
currents , factory , ic_current , rootPOA |
Fields inherited from class gnu.CORBA.OrbRestricted | |
Singleton , factories , iClient , iIor , iServer , icSlotSize , policyFactories |
Method Summary | |
void |
|
int |
|
protected OrbFunctional.portServer |
|
void |
|
void |
|
void |
|
protected void |
|
protected void |
|
void |
|
protected void |
|
Methods inherited from class gnu.CORBA.Poa.ORB_1_4 | |
createIOR , create_policy , destroy , object_to_string , registerInterceptors , set_delegate , set_parameters , set_parameters |
Methods inherited from class org.omg.CORBA_2_3.ORB | |
get_value_def , lookup_value_factory , register_value_factory , set_delegate , unregister_value_factory |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public static final String LISTENER_PORT
The name of the fixed port range property. The presence of this property indicates that the default focused ORB must be used.
- Field Value:
- "gnu.CORBA.ListenerPort"
public void connect_1_thread(Object object, byte[] key, Object identity)
Connect the given CORBA object to this ORB, explicitly specifying the object key and the identity of the thread (and port), where the object must be served. The identity is normally the POA. The new port server will be started only if there is no one already running for the same identity. Otherwise, the task of the existing port server will be widened, including duty to serve the given object. All objects, connected to a single identity by this method, will process they requests subsequently in the same thread. The method is used when the expected number of the objects is too large to have a single port and thread per object. This method is used by POAs, having a single thread policy.
- Overrides:
- connect_1_thread in interface OrbFunctional
- Parameters:
object
- the object, must implement theInvokeHandler
) interface.key
- the object key, usually used to identify the object from remote side.
- Throws:
BAD_PARAM
- if the object does not implement theInvokeHandler
).
public int getFreePort() throws BAD_OPERATION
Get free port from the allowed range. This method instantiates the port server for the returned port.
- Overrides:
- getFreePort in interface OrbFunctional
protected OrbFunctional.portServer getPortServer(int type)
Get the shared port server where the new object can be added. This may result reusing the existing server or instantiating a new server. If the new server is instantiated and the ORB is already running, the server is started.
public void run()
Start the ORBs main working cycle (receive invocation - invoke on the local object - send response - wait for another invocation). The method only returns after callingshutdown(boolean)
.
- Overrides:
- run in interface OrbFunctional
public void setPortRange(int from, int to)
Set the port range.
- Parameters:
from
- - start of the port range, inclusive.to
- - end of the port range, inclusive.
public void setPortRange(String property)
Parse the "gnu.CORBA.ListenerPort" property and initialize the valid port set range.
protected void set_parameters(Applet applet, Properties props)
Set parameters (additionally search for the port range property).
- Overrides:
- set_parameters in interface ORB_1_4
protected void set_parameters(String[] args, Properties props)
Set parameters (additionally search for the port range property).
- Overrides:
- set_parameters in interface ORB_1_4
public void startService(IOR ior)
In this type of ORB, the service is started bygetPortServer(int)
. The method below is not in use and should return without action.
- Overrides:
- startService in interface OrbFunctional
protected void useProperties(Properties props)
Additionally set the port range property, when applicable.
- Overrides:
- useProperties in interface OrbFunctional