org.jacorb.orb.giop
Class ServerGIOPConnection

java.lang.Object
  extended by java.io.OutputStream
      extended by org.jacorb.orb.giop.GIOPConnection
          extended by org.jacorb.orb.giop.ServerGIOPConnection
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class ServerGIOPConnection
extends GIOPConnection

Version:
$Id: ServerGIOPConnection.java,v 1.24 2007/02/06 18:47:40 andre.spiegel Exp $
Author:
Nicolas Noffke

Field Summary
 
Fields inherited from class org.jacorb.orb.giop.GIOPConnection
connect_sync, connection_listener, discard_messages, do_close, logger, pendingUndecidedSync, profile, statistics_provider, statistics_provider_adapter, transport
 
Constructor Summary
ServerGIOPConnection(org.omg.ETF.Profile profile, org.omg.ETF.Connection transport, RequestListener request_listener, ReplyListener reply_listener, StatisticsProvider statistics_provider, GIOPConnectionManager manager)
           
 
Method Summary
 void close()
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
protected  void readTimedOut()
          Server-side implementation what to do when a read timeout occurs.
protected  void streamClosed()
          Server-side implementation what to do if the underlying transport gets closed during a read operation.
 java.lang.String toString()
           
 
Methods inherited from class org.jacorb.orb.giop.GIOPConnection
allocate_cubby_id, decPendingMessages, flush, get_cubby, getRequestListener, getStatisticsProvider, getStatisticsProvider, getStatisticsProviderAdapter, getTCS, getTCSW, getTransport, getWriteLock, hasPendingMessages, incPendingMessages, isSSL, isTCSNegotiated, markTCSNegotiated, receiveMessages, releaseWriteLock, sendReply, sendRequest, set_cubby, setCodeSets, setConnectionListener, setReplyListener, setRequestListener, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerGIOPConnection

public ServerGIOPConnection(org.omg.ETF.Profile profile,
                            org.omg.ETF.Connection transport,
                            RequestListener request_listener,
                            ReplyListener reply_listener,
                            StatisticsProvider statistics_provider,
                            GIOPConnectionManager manager)
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Overrides:
configure in class GIOPConnection
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

readTimedOut

protected void readTimedOut()
Server-side implementation what to do when a read timeout occurs. We react by trying an orderly shutdown that's initiated with a CloseConnection message. If this timeout occured after we have already sent CloseConnection, just close down unconditionally.

Specified by:
readTimedOut in class GIOPConnection

streamClosed

protected void streamClosed()
Server-side implementation what to do if the underlying transport gets closed during a read operation. Since we're server-side and can't reopen, we simply close completely.

Specified by:
streamClosed in class GIOPConnection

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class GIOPConnection
See Also:
GIOPConnection.close()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object