org.apache.yoko.orb.OCI.IIOP
Class TransportInfo_impl

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.apache.yoko.orb.OCI.IIOP.TransportInfo_impl
All Implemented Interfaces:
TransportInfo, TransportInfoOperations, Object

public final class TransportInfo_impl
extends LocalObject
implements TransportInfo


Method Summary
 ListenPoint[] _OB_getListenPoints()
           
 void _OB_setListenPoints(ListenPoint[] lp)
           
 AcceptorInfo acceptor_info()
          The AcceptorInfo object for the Acceptor that created the Transport object that this TransportInfo object belongs to.
 void add_close_cb(CloseCB cb)
          Add a callback that is called before a connection is closed.
 String addr()
          The local IP address.
 ConnectorInfo connector_info()
          The ConnectorInfo object for the Connector that created the Transport object that this TransportInfo object belongs to.
 String describe()
          Returns a human readable description of the transport.
 boolean endpoint_alias_match(ConnectorInfo connInfo)
          Uses the BiDir SCL information in this TransportInfo to check whether we can be used as a BiDir connection alias instead of creating a new connection with the information specified in the ConnectorInfo paramater
 ServiceContext[] get_service_contexts(Policy[] policies)
          Returns a sequence of service contexts for this transport based on the policies.
 void handle_service_contexts(ServiceContext[] contexts)
          Handles service contexts that might be received during a request.
 String id()
          The plugin id.
 short origin()
          The origin indicates whether the transport was originally created by a server side accept or a client side connect.
 short port()
          The local port.
 boolean received_bidir_SCL()
          Queries whether this' transport has received a BiDir SCL in a request.
 String remote_addr()
          The remote IP address.
 short remote_port()
          The remote port.
 void remove_close_cb(CloseCB cb)
          Remove a close callback.
 Socket socket()
           
 int tag()
          The profile id tag.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Method Detail

id

public String id()
Description copied from interface: TransportInfoOperations
The plugin id.

Specified by:
id in interface TransportInfoOperations

tag

public int tag()
Description copied from interface: TransportInfoOperations
The profile id tag.

Specified by:
tag in interface TransportInfoOperations

origin

public short origin()
Description copied from interface: TransportInfoOperations
The origin indicates whether the transport was originally created by a server side accept or a client side connect. This is information is required for connection lifecycle management in bidirectional communications. This information cannot be inferred by the connector_info and acceptor_info attributes as they may both be set in a bidirectional case.

Specified by:
origin in interface TransportInfoOperations
Returns:
CLIENT_SIDE if transport was initially created as a client side connection. SERVER_SIDE if transport was initially created to handle incoming requests.

describe

public String describe()
Description copied from interface: TransportInfoOperations
Returns a human readable description of the transport.

Specified by:
describe in interface TransportInfoOperations
Returns:
The description.

connector_info

public ConnectorInfo connector_info()
Description copied from interface: TransportInfoOperations
The ConnectorInfo object for the Connector that created the Transport object that this TransportInfo object belongs to. If the Transport for this TransportInfo was not created by a Connector, this attribute is set to the nil object reference.

Specified by:
connector_info in interface TransportInfoOperations

acceptor_info

public AcceptorInfo acceptor_info()
Description copied from interface: TransportInfoOperations
The AcceptorInfo object for the Acceptor that created the Transport object that this TransportInfo object belongs to. If the Transport for this TransportInfo was not created by an Acceptor, this attribute is set to the nil object reference.

Specified by:
acceptor_info in interface TransportInfoOperations

add_close_cb

public void add_close_cb(CloseCB cb)
Description copied from interface: TransportInfoOperations
Add a callback that is called before a connection is closed. If the callback has already been registered, this method has no effect.

Specified by:
add_close_cb in interface TransportInfoOperations
Parameters:
cb - The callback to add.

remove_close_cb

public void remove_close_cb(CloseCB cb)
Description copied from interface: TransportInfoOperations
Remove a close callback. If the callback was not registered, this method has no effect.

Specified by:
remove_close_cb in interface TransportInfoOperations
Parameters:
cb - The callback to remove.

socket

public Socket socket()

addr

public String addr()
Description copied from interface: TransportInfoOperations
The local IP address.


port

public short port()
Description copied from interface: TransportInfoOperations
The local port.


remote_addr

public String remote_addr()
Description copied from interface: TransportInfoOperations
The remote IP address.


remote_port

public short remote_port()
Description copied from interface: TransportInfoOperations
The remote port.


get_service_contexts

public ServiceContext[] get_service_contexts(Policy[] policies)
Description copied from interface: TransportInfoOperations
Returns a sequence of service contexts for this transport based on the policies. Certain policies result in service contexts being applied to requests.

Specified by:
get_service_contexts in interface TransportInfoOperations
Parameters:
policies - The CORBA Policy list.
Returns:
The service contexts for the given polices.

handle_service_contexts

public void handle_service_contexts(ServiceContext[] contexts)
Description copied from interface: TransportInfoOperations
Handles service contexts that might be received during a request. This allows transports to change their internal state or behavior during their runtime.

Specified by:
handle_service_contexts in interface TransportInfoOperations
Parameters:
contexts - The service context list

received_bidir_SCL

public boolean received_bidir_SCL()
Description copied from interface: TransportInfoOperations
Queries whether this' transport has received a BiDir SCL in a request.

Specified by:
received_bidir_SCL in interface TransportInfoOperations

endpoint_alias_match

public boolean endpoint_alias_match(ConnectorInfo connInfo)
Description copied from interface: TransportInfoOperations
Uses the BiDir SCL information in this TransportInfo to check whether we can be used as a BiDir connection alias instead of creating a new connection with the information specified in the ConnectorInfo paramater

Specified by:
endpoint_alias_match in interface TransportInfoOperations

_OB_getListenPoints

public ListenPoint[] _OB_getListenPoints()

_OB_setListenPoints

public void _OB_setListenPoints(ListenPoint[] lp)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.