Java Doc for ConnectionBase.java in  » Collaboration » JacORB » org » jacorb » orb » etf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » JacORB » org.jacorb.orb.etf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jacorb.orb.etf.ConnectionBase

All known Subclasses:   org.jacorb.orb.etf.StreamConnectionBase,
ConnectionBase
abstract public class ConnectionBase extends org.omg.ETF._ConnectionLocalBase implements Configurable(Code)
This an abstract base implementation of the ETF::Connection interface.
author:
   Nicolas Noffke
author:
   Andre Spiegel
version:
   $Id: ConnectionBase.java,v 1.3 2006/06/26 08:09:30 alphonse.bendt Exp $


Field Summary
protected  ByteArrayOutputStreamb_out
     Optionally initialised to be used in the dumping of messages.
protected  org.jacorb.config.Configurationconfiguration
    
protected  booleanconnected
    
protected  Stringconnection_info
    
protected  intfinalTimeout
     Time out after a close connection has been received.
protected  Loggerlogger
    
protected  ORBorb
    
protected  ProfileBaseprofile
     The Profile of the target / server side of the connection.

Constructor Summary
protected  ConnectionBase()
    
protected  ConnectionBase(ConnectionBase other)
     Initialise this instance as a copy of another.

Method Summary
public  voidconfigure(Configuration config)
    
final protected  StringgetLocalhost()
    
abstract protected  intgetTimeout()
    
public  org.omg.ETF.Profileget_server_profile()
    
public synchronized  booleanis_connected()
    
abstract protected  voidsetTimeout(int timeout)
    
public  booleansupports_callback()
     A boolean flag describing whether this connection supports the Bidirectional GIOP mechanism as described by GIOP-1.2 in CORBA 2.3.1 (OMG Document: formal/99-10-07).
protected  org.omg.CORBA.COMM_FAILUREto_COMM_FAILURE(IOException ex)
    
public  voidturnOnFinalTimeout()
     This is used to tell the transport that a CloseConnection has been sent, and that it should set a timeout in case the client doesn't close its side of the connection right away.
public  booleanuse_handle_time_out()
     A flag directing the ORB to use either the Handle class to perform data queries with a time_out, or the transport layer (through this connection).
public  booleanwait_next_data(long time_out)
     Wait for the given time_out period for incoming data on this connection.

Field Detail
b_out
protected ByteArrayOutputStream b_out(Code)
Optionally initialised to be used in the dumping of messages. See property jacorb.debug.dump_outgoing_messages. Default is off.



configuration
protected org.jacorb.config.Configuration configuration(Code)



connected
protected boolean connected(Code)



connection_info
protected String connection_info(Code)



finalTimeout
protected int finalTimeout(Code)
Time out after a close connection has been received. See property jacorb.connection.timeout_after_closeconnection. Default 20000 milliseconds.



logger
protected Logger logger(Code)
shared with sub classes



orb
protected ORB orb(Code)



profile
protected ProfileBase profile(Code)
The Profile of the target / server side of the connection.




Constructor Detail
ConnectionBase
protected ConnectionBase()(Code)



ConnectionBase
protected ConnectionBase(ConnectionBase other)(Code)
Initialise this instance as a copy of another. Intended for use within subclass constructors.




Method Detail
configure
public void configure(Configuration config) throws ConfigurationException(Code)



getLocalhost
final protected String getLocalhost()(Code)



getTimeout
abstract protected int getTimeout()(Code)



get_server_profile
public org.omg.ETF.Profile get_server_profile()(Code)



is_connected
public synchronized boolean is_connected()(Code)



setTimeout
abstract protected void setTimeout(int timeout)(Code)



supports_callback
public boolean supports_callback()(Code)
A boolean flag describing whether this connection supports the Bidirectional GIOP mechanism as described by GIOP-1.2 in CORBA 2.3.1 (OMG Document: formal/99-10-07). It shall return true if it does, and false if it does not.



to_COMM_FAILURE
protected org.omg.CORBA.COMM_FAILURE to_COMM_FAILURE(IOException ex)(Code)



turnOnFinalTimeout
public void turnOnFinalTimeout()(Code)
This is used to tell the transport that a CloseConnection has been sent, and that it should set a timeout in case the client doesn't close its side of the connection right away. This should only be called on the thread that listens on the socket because timeouts are not applied until read() is called the next time.



use_handle_time_out
public boolean use_handle_time_out()(Code)
A flag directing the ORB to use either the Handle class to perform data queries with a time_out, or the transport layer (through this connection). The instance shall return true, if the Handle should signal time outs for read operations. Then the ORB may not call wait_next_data. Otherwise, a false shall be returned, and the function wait_next_data shall be implemented by this class.



wait_next_data
public boolean wait_next_data(long time_out)(Code)
Wait for the given time_out period for incoming data on this connection. It shall return false if this call times out and no data is available. It may not throw a TIMEOUT exception. If data can already be read or arrives before the end of the time out, this function shall return true, immediately.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.