Java Doc for AbstractConnector.java in  » Sevlet-Container » jetty-modules » org » mortbay » jetty » 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 » Sevlet Container » jetty modules » org.mortbay.jetty 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mortbay.component.AbstractLifeCycle
      org.mortbay.jetty.AbstractBuffers
         org.mortbay.jetty.AbstractConnector

All known Subclasses:   org.mortbay.jetty.LocalConnector,  org.mortbay.jetty.bio.SocketConnector,  org.mortbay.jetty.nio.AbstractNIOConnector,
AbstractConnector
abstract public class AbstractConnector extends AbstractBuffers implements Connector(Code)
Abstract Connector implementation. This abstract implemenation of the Connector interface provides:
  • AbstractLifeCycle implementation
  • Implementations for connector getters and setters
  • Buffer management
  • Socket configuration
  • Base acceptor thread

author:
   gregw
author:
   TODO - allow multiple Acceptor threads


Field Summary
transient  int_connections
    
transient  long_connectionsDurationMax
    
transient  long_connectionsDurationMin
    
transient  long_connectionsDurationTotal
    
transient  int_connectionsOpen
    
transient  int_connectionsOpenMax
    
transient  int_connectionsOpenMin
    
transient  int_connectionsRequestsMax
    
transient  int_connectionsRequestsMin
    
protected  int_lowResourceMaxIdleTime
    
protected  int_maxIdleTime
    
transient  int_requests
    
protected  int_soLingerTime
    
 Object_statsLock
    
transient  long_statsStartedAt
    

Constructor Summary
public  AbstractConnector()
    

Method Summary
abstract protected  voidaccept(int acceptorID)
    
protected  voidconfigure(Socket socket)
    
protected  voidconnectionClosed(HttpConnection connection)
    
protected  voidconnectionOpened(HttpConnection connection)
    
public  voidcustomize(EndPoint endpoint, Request request)
    
protected  voiddoStart()
    
protected  voiddoStop()
    
public  intgetAcceptQueueSize()
    
public  intgetAcceptors()
    
public  intgetConfidentialPort()
    
public  StringgetConfidentialScheme()
    
public  intgetConnections()
     Number of connections accepted by the server sincestatsReset() called.
public  longgetConnectionsDurationAve()
     Average duration in milliseconds of open connectionssince statsReset() called.
public  longgetConnectionsDurationMax()
     Maximum duration in milliseconds of an open connectionsince statsReset() called.
public  longgetConnectionsDurationMin()
    
public  longgetConnectionsDurationTotal()
    
public  intgetConnectionsOpen()
     Number of connections currently open that were openedsince statsReset() called.
public  intgetConnectionsOpenMax()
     Maximum number of connections opened simultaneouslysince statsReset() called.
public  intgetConnectionsOpenMin()
    
public  intgetConnectionsRequestsAve()
     Average number of requests per connectionsince statsReset() called.
public  intgetConnectionsRequestsMax()
     Maximum number of requests per connectionsince statsReset() called.
public  intgetConnectionsRequestsMin()
    
public  StringgetHost()
    
public  intgetIntegralPort()
    
public  StringgetIntegralScheme()
    
public  intgetLowResourceMaxIdleTime()
    
public  intgetMaxIdleTime()
    
public  StringgetName()
    
public  intgetPort()
    
public  intgetRequests()
     Get the number of requests handled by this contextsince last call of statsReset().
public  booleangetResolveNames()
    
public  ServergetServer()
    
public  longgetSoLingerTime()
    
public  booleangetStatsOn()
    
public  longgetStatsOnMs()
    
public  ThreadPoolgetThreadPool()
    
public  booleanisConfidential(Request request)
    
public  booleanisIntegral(Request request)
    
public  voidjoin()
    
public  ContinuationnewContinuation()
    
abstract public  voidopen()
    
public  voidpersist(EndPoint endpoint)
    
public  voidsetAcceptQueueSize(int acceptQueueSize)
    
public  voidsetAcceptors(int acceptors)
    
public  voidsetConfidentialPort(int confidentialPort)
    
public  voidsetConfidentialScheme(String confidentialScheme)
    
public  voidsetHost(String host)
    
public  voidsetIntegralPort(int integralPort)
    
public  voidsetIntegralScheme(String integralScheme)
    
public  voidsetLowResourceMaxIdleTime(int maxIdleTime)
    
public  voidsetMaxIdleTime(int maxIdleTime)
    
public  voidsetName(String name)
    
public  voidsetPort(int port)
    
public  voidsetResolveNames(boolean resolve)
    
public  voidsetServer(Server server)
    
public  voidsetSoLingerTime(int soLingerTime)
    
public  voidsetStatsOn(boolean on)
    
public  voidsetThreadPool(ThreadPool pool)
    
public  voidstatsReset()
     Reset statistics.
public  voidstopAccept(int acceptorID)
    
public  StringtoString()
    

Field Detail
_connections
transient int _connections(Code)



_connectionsDurationMax
transient long _connectionsDurationMax(Code)



_connectionsDurationMin
transient long _connectionsDurationMin(Code)



_connectionsDurationTotal
transient long _connectionsDurationTotal(Code)



_connectionsOpen
transient int _connectionsOpen(Code)



_connectionsOpenMax
transient int _connectionsOpenMax(Code)



_connectionsOpenMin
transient int _connectionsOpenMin(Code)



_connectionsRequestsMax
transient int _connectionsRequestsMax(Code)



_connectionsRequestsMin
transient int _connectionsRequestsMin(Code)



_lowResourceMaxIdleTime
protected int _lowResourceMaxIdleTime(Code)



_maxIdleTime
protected int _maxIdleTime(Code)



_requests
transient int _requests(Code)



_soLingerTime
protected int _soLingerTime(Code)



_statsLock
Object _statsLock(Code)



_statsStartedAt
transient long _statsStartedAt(Code)




Constructor Detail
AbstractConnector
public AbstractConnector()(Code)




Method Detail
accept
abstract protected void accept(int acceptorID) throws IOException, InterruptedException(Code)



configure
protected void configure(Socket socket) throws IOException(Code)



connectionClosed
protected void connectionClosed(HttpConnection connection)(Code)



connectionOpened
protected void connectionOpened(HttpConnection connection)(Code)



customize
public void customize(EndPoint endpoint, Request request) throws IOException(Code)



doStart
protected void doStart() throws Exception(Code)



doStop
protected void doStop() throws Exception(Code)



getAcceptQueueSize
public int getAcceptQueueSize()(Code)
Returns the acceptQueueSize.



getAcceptors
public int getAcceptors()(Code)
Returns the number of acceptor threads.



getConfidentialPort
public int getConfidentialPort()(Code)



getConfidentialScheme
public String getConfidentialScheme()(Code)



getConnections
public int getConnections()(Code)
Number of connections accepted by the server sincestatsReset() called. Undefined if setStatsOn(false).



getConnectionsDurationAve
public long getConnectionsDurationAve()(Code)
Average duration in milliseconds of open connectionssince statsReset() called. Undefined if setStatsOn(false).



getConnectionsDurationMax
public long getConnectionsDurationMax()(Code)
Maximum duration in milliseconds of an open connectionsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsDurationMin
public long getConnectionsDurationMin()(Code)
Returns the connectionsDurationMin.



getConnectionsDurationTotal
public long getConnectionsDurationTotal()(Code)
Returns the connectionsDurationTotal.



getConnectionsOpen
public int getConnectionsOpen()(Code)
Number of connections currently open that were openedsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsOpenMax
public int getConnectionsOpenMax()(Code)
Maximum number of connections opened simultaneouslysince statsReset() called. Undefined if setStatsOn(false).



getConnectionsOpenMin
public int getConnectionsOpenMin()(Code)
Returns the connectionsOpenMin.



getConnectionsRequestsAve
public int getConnectionsRequestsAve()(Code)
Average number of requests per connectionsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsRequestsMax
public int getConnectionsRequestsMax()(Code)
Maximum number of requests per connectionsince statsReset() called. Undefined if setStatsOn(false).



getConnectionsRequestsMin
public int getConnectionsRequestsMin()(Code)
Returns the connectionsRequestsMin.



getHost
public String getHost()(Code)



getIntegralPort
public int getIntegralPort()(Code)



getIntegralScheme
public String getIntegralScheme()(Code)



getLowResourceMaxIdleTime
public int getLowResourceMaxIdleTime()(Code)
Returns the maxIdleTime.



getMaxIdleTime
public int getMaxIdleTime()(Code)
Returns the maxIdleTime.



getName
public String getName()(Code)



getPort
public int getPort()(Code)



getRequests
public int getRequests()(Code)
Get the number of requests handled by this contextsince last call of statsReset(). If setStatsOn(false) then thisis undefined.



getResolveNames
public boolean getResolveNames()(Code)



getServer
public Server getServer()(Code)



getSoLingerTime
public long getSoLingerTime()(Code)
Returns the soLingerTime.



getStatsOn
public boolean getStatsOn()(Code)
True if statistics collection is turned on.



getStatsOnMs
public long getStatsOnMs()(Code)
Timestamp stats were started at.



getThreadPool
public ThreadPool getThreadPool()(Code)



isConfidential
public boolean isConfidential(Request request)(Code)



isIntegral
public boolean isIntegral(Request request)(Code)



join
public void join() throws InterruptedException(Code)



newContinuation
public Continuation newContinuation()(Code)



open
abstract public void open() throws IOException(Code)



persist
public void persist(EndPoint endpoint) throws IOException(Code)



setAcceptQueueSize
public void setAcceptQueueSize(int acceptQueueSize)(Code)

Parameters:
  acceptQueueSize - The acceptQueueSize to set.



setAcceptors
public void setAcceptors(int acceptors)(Code)

Parameters:
  acceptors - The number of acceptor threads to set.



setConfidentialPort
public void setConfidentialPort(int confidentialPort)(Code)

Parameters:
  confidentialPort - The confidentialPort to set.



setConfidentialScheme
public void setConfidentialScheme(String confidentialScheme)(Code)

Parameters:
  confidentialScheme - The confidentialScheme to set.



setHost
public void setHost(String host)(Code)



setIntegralPort
public void setIntegralPort(int integralPort)(Code)

Parameters:
  integralPort - The integralPort to set.



setIntegralScheme
public void setIntegralScheme(String integralScheme)(Code)

Parameters:
  integralScheme - The integralScheme to set.



setLowResourceMaxIdleTime
public void setLowResourceMaxIdleTime(int maxIdleTime)(Code)

Parameters:
  maxIdleTime - The maxIdleTime to set.



setMaxIdleTime
public void setMaxIdleTime(int maxIdleTime)(Code)

Parameters:
  maxIdleTime - The maxIdleTime to set.



setName
public void setName(String name)(Code)



setPort
public void setPort(int port)(Code)



setResolveNames
public void setResolveNames(boolean resolve)(Code)



setServer
public void setServer(Server server)(Code)



setSoLingerTime
public void setSoLingerTime(int soLingerTime)(Code)

Parameters:
  soLingerTime - The soLingerTime to set or -1 to disable.



setStatsOn
public void setStatsOn(boolean on)(Code)



setThreadPool
public void setThreadPool(ThreadPool pool)(Code)



statsReset
public void statsReset()(Code)
Reset statistics.



stopAccept
public void stopAccept(int acceptorID) throws Exception(Code)



toString
public String toString()(Code)



Methods inherited from org.mortbay.jetty.AbstractBuffers
protected void doStart() throws Exception(Code)(Java Doc)
public Buffer getBuffer(int size)(Code)(Java Doc)
public int getHeaderBufferSize()(Code)(Java Doc)
public int getRequestBufferSize()(Code)(Java Doc)
public int getResponseBufferSize()(Code)(Java Doc)
abstract protected Buffer newBuffer(int size)(Code)(Java Doc)
public void returnBuffer(Buffer buffer)(Code)(Java Doc)
public void setHeaderBufferSize(int headerBufferSize)(Code)(Java Doc)
public void setRequestBufferSize(int requestBufferSize)(Code)(Java Doc)
public void setResponseBufferSize(int responseBufferSize)(Code)(Java Doc)

Methods inherited from org.mortbay.component.AbstractLifeCycle
protected void doStart() throws Exception(Code)(Java Doc)
protected void doStop() throws Exception(Code)(Java Doc)
public boolean isFailed()(Code)(Java Doc)
public boolean isRunning()(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public boolean isStarting()(Code)(Java Doc)
public boolean isStopped()(Code)(Java Doc)
public boolean isStopping()(Code)(Java Doc)
final public void start() throws Exception(Code)(Java Doc)
final public void stop() throws Exception(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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