Java Doc for Server.java in » EJB-Server-resin-3.1.5 » resin » com » caucho » server » cluster » 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
»
EJB Server resin 3.1.5
»
resin
»
com.caucho.server.cluster
Source Cross Reference
Class Diagram
Java Document (Java Doc)
com.caucho.server.port
.ProtocolDispatchServer
com.caucho.server.cluster
.Server
Server
public
class Server extends
ProtocolDispatchServer
implements
EnvironmentBean
,
SchemaBean
,AlarmListener,
ClassLoaderListener
(Code)
Inner Class :
public
static class SelectManagerCompat
Constructor Summary
public
Server
(
ClusterServer
clusterServer)
Creates a new servlet server.
Method Summary
public
void
addEarDefault
(
EarConfig
config)
public
void
addErrorPage
(
ErrorPage
errorPage)
public
void
addHost
(
HostConfig
host)
Adds the host.
public
void
addHostDefault
(
HostConfig
init)
Adds a HostDefault.
public
void
addHostDeploy
(
HostExpandDeployGenerator
deploy)
Adds a HostDeploy.
public
void
addPing
(ResourceAdapter ping)
Adds the ping.
public
void
addSelectManager
(SelectManagerCompat selectManager)
public
void
addWebAppDefault
(
WebAppConfig
init)
Adds a WebAppDefault.
public
void
bindPorts
()
Bind the ports.
public
Invocation
buildInvocation
(
Invocation
invocation)
public
void
classLoaderDestroy
(
DynamicClassLoader
loader)
Handles the case where a class loader is dropped.
public
void
classLoaderInit
(
DynamicClassLoader
loader)
Handles the case where a class loader is activated.
public
void
clearCache
()
Clears the proxy cache.
public
void
clearCacheByPattern
(
String
hostPattern,
String
uriPattern)
Clears the catch by matching the invocation.
public
AbstractCache
createCache
()
Adds the cache.
public
HostExpandDeployGenerator
createHostDeploy
()
Adds a HostDeploy.
public
Management
createManagement
()
public
ResourceAdapter
createPing
()
Creates the ping.
public
RewriteDispatch
createRewriteDispatch
()
Adds rewrite-dispatch.
public
void
destroy
()
Closes the server.
public
int
getAcceptListenBacklog
()
public
int
getAcceptThreadMax
()
Sets the maximum spare listen.
public
int
getAcceptThreadMin
()
Gets the minimum spare listen.
public
ServerMXBean
getAdmin
()
Returns the admin.
public
String
getAlternateSessionURLPrefix
()
Gets the alternate session url prefix.
public
ArrayList
<
CacheItem
>
getCacheStatistics
()
Returns the cache stuff.
public
ClassLoader
getClassLoader
()
public
Cluster
getCluster
()
Returns the cluster.
public
Throwable
getConfigException
()
public
String
getConnectionErrorPage
()
Gets the connection error page.
public
WebApp
getDefaultWebApp
()
public
long
getDependencyCheckInterval
()
Returns the dependency check interval.
public
WebApp
getErrorWebApp
()
Returns the error webApp during startup.
public
int
getFreeKeepaliveSelect
()
Returns the number of select keepalives available.
public
Host
getHost
(
String
hostName, int port)
Returns the matching servlet pattern for a URL.
public
Collection
<
HostController
>
getHostControllers
()
Returns the host controllers.
public
long
getKeepaliveConnectionTimeMax
()
public
int
getKeepaliveMax
()
Returns the thread-based keepalive max.
public
int
getKeepaliveSelectCount
()
Returns the select keepalive count.
public
void
getKeepaliveSelectThreadTimeout
(
Period
period)
public
long
getKeepaliveSelectThreadTimeout
()
public
long
getKeepaliveTimeout
()
public
long
getMemoryFreeMin
()
public
Collection
<
Port
>
getPorts
()
Returns the
Port
s for this server.
public
long
getProxyCacheHitCount
()
Returns the proxy cache hit count.
public
long
getProxyCacheMissCount
()
Returns the proxy cache miss count.
public
Path
getRootDirectory
()
Sets the root directory.
public
String
getSSLSessionCookie
()
public
String
getSchema
()
Returns the relax schema.
public
String
getServerHeader
()
Gets the server header.
public
String
getServerId
()
Returns the id.
public
int
getServerIndex
()
public
String
getServletPattern
(
String
hostName, int port,
String
url)
Returns the matching servlet pattern for a URL.
public
String
getSessionCookie
()
public
String
getSessionURLPrefix
()
Gets the session url prefix.
public
long
getShutdownWaitMax
()
Gets the max wait time for a shutdown.
public
long
getSocketTimeout
()
Gets the read timeout for the request sockets.
public
long
getStartTime
()
Returns the time the server started in ms.
public
String
getState
()
public
long
getSuspendTimeMax
()
public
WebApp
getWebApp
(
String
hostName, int port,
String
url)
Returns the matching web-app for a URL.
public
void
handleAlarm
(Alarm alarm)
Handles the alarm.
public
void
init
()
Initialization.
public
boolean
isActive
()
public
boolean
isBindPortsAfterStart
()
If true, ports are bound at end.
public
boolean
isDeployError
()
Return true if idle.
public
boolean
isDestroyed
()
Returns true if the server is closed.
public
boolean
isDestroying
()
Returns true if the server is closed.
public
boolean
isKeepaliveSelectEnable
()
public
boolean
isModified
()
Returns true if the server has been modified and needs restarting.
public
boolean
isModifiedNow
()
Returns true if the server has been modified and needs restarting.
public
boolean
isSelectManagerEnabled
()
public
boolean
isStopped
()
Returns true if the server is stopped.
public
boolean
isStopping
()
Returns true if the server is stopped.
public
void
setAcceptListenBacklog
(int backlog)
public
void
setAcceptThreadMax
(int maxSpare)
Sets the maximum spare listen.
public
void
setAcceptThreadMin
(int minSpare)
Sets the minimum spare listen.
public
void
setAccessLog
(
AccessLog
log)
Sets the access log.
public
void
setAlternateSessionURLPrefix
(
String
urlPrefix)
Sets the alternate session url prefix.
public
void
setBindPortsAfterStart
(boolean bindAtEnd)
If true, ports are bound at end.
public
void
setConfigException
(
Throwable
exn)
Returns the configuration instance.
public
void
setConnectionErrorPage
(
String
errorPage)
Sets the connection error page.
public
void
setKeepaliveConnectionTimeMax
(
Period
period)
public
void
setKeepaliveMax
(int max)
public
void
setKeepaliveSelectEnable
(boolean enable)
public
void
setKeepaliveSelectMax
(int max)
public
void
setKeepaliveTimeout
(
Period
period)
public
void
setMemoryFreeMin
(
Bytes
min)
public
void
setRedeployMode
(
String
redeployMode)
public
void
setRootDir
(Path path)
Sets the root directory.
public
void
setRootDirectory
(Path path)
Sets the root directory.
public
void
setSSLSessionCookie
(
String
cookie)
public
void
setServerHeader
(
String
server)
Sets the server header.
public
void
setSessionCookie
(
String
cookie)
public
void
setSessionURLPrefix
(
String
urlPrefix)
Sets the session url prefix.
public
void
setShutdownWaitMax
(
Period
waitTime)
Sets the max wait time for shutdown.
public
void
setSocketTimeout
(
Period
period)
Sets the default read/write timeout for the request sockets.
public
void
setSuspendTimeMax
(
Period
period)
public
void
setThreadExecutorTaskMax
(int max)
Sets the maximum executor (background) thread.
public
void
setThreadIdleMax
(int max)
Sets the maximum number of idle threads in the thread pool.
public
void
setThreadIdleMin
(int min)
Sets the minimum number of idle threads in the thread pool.
public
void
setThreadMax
(int max)
public
void
setURLCharacterEncoding
(
String
encoding)
Sets URL encoding.
public
void
start
()
Start the server.
public
void
startPorts
()
Start the ports.
public
void
stop
()
Closes the server.
public
String
toString
()
Constructor Detail
Server
public
Server(
ClusterServer
clusterServer)
(Code)
Creates a new servlet server.
Method Detail
addEarDefault
public
void addEarDefault(
EarConfig
config)
(Code)
Adds an EarDefault
addErrorPage
public
void addErrorPage(
ErrorPage
errorPage)
(Code)
Adds an error page
addHost
public
void addHost(
HostConfig
host) throws
Exception
(Code)
Adds the host.
addHostDefault
public
void addHostDefault(
HostConfig
init)
(Code)
Adds a HostDefault.
addHostDeploy
public
void addHostDeploy(
HostExpandDeployGenerator
deploy)
(Code)
Adds a HostDeploy.
addPing
public
void addPing(ResourceAdapter ping) throws ConfigException
(Code)
Adds the ping.
addSelectManager
public
void addSelectManager(SelectManagerCompat selectManager)
(Code)
addWebAppDefault
public
void addWebAppDefault(
WebAppConfig
init)
(Code)
Adds a WebAppDefault.
bindPorts
public
void bindPorts() throws
Exception
(Code)
Bind the ports.
buildInvocation
public
Invocation
buildInvocation(
Invocation
invocation) throws
Throwable
(Code)
Sets the invocation
classLoaderDestroy
public
void classLoaderDestroy(
DynamicClassLoader
loader)
(Code)
Handles the case where a class loader is dropped.
classLoaderInit
public
void classLoaderInit(
DynamicClassLoader
loader)
(Code)
Handles the case where a class loader is activated.
clearCache
public
void clearCache()
(Code)
Clears the proxy cache.
clearCacheByPattern
public
void clearCacheByPattern(
String
hostPattern,
String
uriPattern)
(Code)
Clears the catch by matching the invocation.
createCache
public
AbstractCache
createCache() throws ConfigException
(Code)
Adds the cache.
createHostDeploy
public
HostExpandDeployGenerator
createHostDeploy()
(Code)
Adds a HostDeploy.
createManagement
public
Management
createManagement()
(Code)
createPing
public
ResourceAdapter createPing() throws ConfigException
(Code)
Creates the ping.
createRewriteDispatch
public
RewriteDispatch
createRewriteDispatch()
(Code)
Adds rewrite-dispatch.
destroy
public
void destroy()
(Code)
Closes the server.
getAcceptListenBacklog
public
int getAcceptListenBacklog()
(Code)
Gets the socket's listen property
getAcceptThreadMax
public
int getAcceptThreadMax()
(Code)
Sets the maximum spare listen.
getAcceptThreadMin
public
int getAcceptThreadMin()
(Code)
Gets the minimum spare listen.
getAdmin
public
ServerMXBean
getAdmin()
(Code)
Returns the admin.
getAlternateSessionURLPrefix
public
String
getAlternateSessionURLPrefix()
(Code)
Gets the alternate session url prefix.
getCacheStatistics
public
ArrayList
<
CacheItem
> getCacheStatistics()
(Code)
Returns the cache stuff.
getClassLoader
public
ClassLoader
getClassLoader()
(Code)
Returns the classLoader
getCluster
public
Cluster
getCluster()
(Code)
Returns the cluster.
getConfigException
public
Throwable
getConfigException()
(Code)
Returns the configuration exception
getConnectionErrorPage
public
String
getConnectionErrorPage()
(Code)
Gets the connection error page.
getDefaultWebApp
public
WebApp
getDefaultWebApp()
(Code)
Returns the default web-app or error web-app for top-level errors
getDependencyCheckInterval
public
long getDependencyCheckInterval()
(Code)
Returns the dependency check interval.
getErrorWebApp
public
WebApp
getErrorWebApp()
(Code)
Returns the error webApp during startup.
getFreeKeepaliveSelect
public
int getFreeKeepaliveSelect()
(Code)
Returns the number of select keepalives available.
getHost
public
Host
getHost(
String
hostName, int port)
(Code)
Returns the matching servlet pattern for a URL.
getHostControllers
public
Collection
<
HostController
> getHostControllers()
(Code)
Returns the host controllers.
getKeepaliveConnectionTimeMax
public
long getKeepaliveConnectionTimeMax()
(Code)
Sets the keepalive timeout
getKeepaliveMax
public
int getKeepaliveMax()
(Code)
Returns the thread-based keepalive max. the keepalive max.
getKeepaliveSelectCount
public
int getKeepaliveSelectCount()
(Code)
Returns the select keepalive count.
getKeepaliveSelectThreadTimeout
public
void getKeepaliveSelectThreadTimeout(
Period
period)
(Code)
Sets the select-based keepalive timeout
getKeepaliveSelectThreadTimeout
public
long getKeepaliveSelectThreadTimeout()
(Code)
Sets the select-based keepalive timeout
getKeepaliveTimeout
public
long getKeepaliveTimeout()
(Code)
Sets the keepalive timeout
getMemoryFreeMin
public
long getMemoryFreeMin()
(Code)
Sets the minimum free memory after a GC
getPorts
public
Collection
<
Port
> getPorts()
(Code)
Returns the
Port
s for this server.
getProxyCacheHitCount
public
long getProxyCacheHitCount()
(Code)
Returns the proxy cache hit count.
getProxyCacheMissCount
public
long getProxyCacheMissCount()
(Code)
Returns the proxy cache miss count.
getRootDirectory
public
Path getRootDirectory()
(Code)
Sets the root directory.
getSSLSessionCookie
public
String
getSSLSessionCookie()
(Code)
Gets the ssl session cookie
getSchema
public
String
getSchema()
(Code)
Returns the relax schema.
getServerHeader
public
String
getServerHeader()
(Code)
Gets the server header.
getServerId
public
String
getServerId()
(Code)
Returns the id.
getServerIndex
public
int getServerIndex()
(Code)
getServletPattern
public
String
getServletPattern(
String
hostName, int port,
String
url)
(Code)
Returns the matching servlet pattern for a URL.
getSessionCookie
public
String
getSessionCookie()
(Code)
Gets the session cookie
getSessionURLPrefix
public
String
getSessionURLPrefix()
(Code)
Gets the session url prefix.
getShutdownWaitMax
public
long getShutdownWaitMax()
(Code)
Gets the max wait time for a shutdown.
getSocketTimeout
public
long getSocketTimeout()
(Code)
Gets the read timeout for the request sockets.
getStartTime
public
long getStartTime()
(Code)
Returns the time the server started in ms.
getState
public
String
getState()
(Code)
Returns the lifecycle state
getSuspendTimeMax
public
long getSuspendTimeMax()
(Code)
Sets the suspend timeout
getWebApp
public
WebApp
getWebApp(
String
hostName, int port,
String
url)
(Code)
Returns the matching web-app for a URL.
handleAlarm
public
void handleAlarm(Alarm alarm)
(Code)
Handles the alarm.
init
public
void init()
(Code)
Initialization.
isActive
public
boolean isActive()
(Code)
Returns true if the server is currently active and accepting requests
isBindPortsAfterStart
public
boolean isBindPortsAfterStart()
(Code)
If true, ports are bound at end.
isDeployError
public
boolean isDeployError()
(Code)
Return true if idle.
isDestroyed
public
boolean isDestroyed()
(Code)
Returns true if the server is closed.
isDestroying
public
boolean isDestroying()
(Code)
Returns true if the server is closed.
isKeepaliveSelectEnable
public
boolean isKeepaliveSelectEnable()
(Code)
Gets the select-based keepalive timeout
isModified
public
boolean isModified()
(Code)
Returns true if the server has been modified and needs restarting.
isModifiedNow
public
boolean isModifiedNow()
(Code)
Returns true if the server has been modified and needs restarting.
isSelectManagerEnabled
public
boolean isSelectManagerEnabled()
(Code)
Sets true if the select manager should be enabled
isStopped
public
boolean isStopped()
(Code)
Returns true if the server is stopped.
isStopping
public
boolean isStopping()
(Code)
Returns true if the server is stopped.
setAcceptListenBacklog
public
void setAcceptListenBacklog(int backlog)
(Code)
Sets the socket's listen property
setAcceptThreadMax
public
void setAcceptThreadMax(int maxSpare) throws ConfigException
(Code)
Sets the maximum spare listen.
setAcceptThreadMin
public
void setAcceptThreadMin(int minSpare) throws ConfigException
(Code)
Sets the minimum spare listen.
setAccessLog
public
void setAccessLog(
AccessLog
log)
(Code)
Sets the access log.
setAlternateSessionURLPrefix
public
void setAlternateSessionURLPrefix(
String
urlPrefix) throws ConfigException
(Code)
Sets the alternate session url prefix.
setBindPortsAfterStart
public
void setBindPortsAfterStart(boolean bindAtEnd)
(Code)
If true, ports are bound at end.
setConfigException
public
void setConfigException(
Throwable
exn)
(Code)
Returns the configuration instance.
setConnectionErrorPage
public
void setConnectionErrorPage(
String
errorPage)
(Code)
Sets the connection error page.
setKeepaliveConnectionTimeMax
public
void setKeepaliveConnectionTimeMax(
Period
period)
(Code)
Sets the keepalive connection timeout
setKeepaliveMax
public
void setKeepaliveMax(int max)
(Code)
Sets the maximum keepalive
setKeepaliveSelectEnable
public
void setKeepaliveSelectEnable(boolean enable)
(Code)
Sets the select-based keepalive timeout
setKeepaliveSelectMax
public
void setKeepaliveSelectMax(int max)
(Code)
Sets the select-based keepalive timeout
setKeepaliveTimeout
public
void setKeepaliveTimeout(
Period
period)
(Code)
Sets the keepalive timeout
setMemoryFreeMin
public
void setMemoryFreeMin(
Bytes
min)
(Code)
Sets the minimum free memory after a GC
setRedeployMode
public
void setRedeployMode(
String
redeployMode)
(Code)
Sets the redeploy mode
setRootDir
public
void setRootDir(Path path)
(Code)
Sets the root directory.
setRootDirectory
public
void setRootDirectory(Path path)
(Code)
Sets the root directory.
setSSLSessionCookie
public
void setSSLSessionCookie(
String
cookie)
(Code)
Sets the ssl session cookie
setServerHeader
public
void setServerHeader(
String
server)
(Code)
Sets the server header.
setSessionCookie
public
void setSessionCookie(
String
cookie)
(Code)
Sets the session cookie
setSessionURLPrefix
public
void setSessionURLPrefix(
String
urlPrefix)
(Code)
Sets the session url prefix.
setShutdownWaitMax
public
void setShutdownWaitMax(
Period
waitTime)
(Code)
Sets the max wait time for shutdown.
setSocketTimeout
public
void setSocketTimeout(
Period
period)
(Code)
Sets the default read/write timeout for the request sockets.
setSuspendTimeMax
public
void setSuspendTimeMax(
Period
period)
(Code)
Sets the suspend timeout
setThreadExecutorTaskMax
public
void setThreadExecutorTaskMax(int max)
(Code)
Sets the maximum executor (background) thread.
setThreadIdleMax
public
void setThreadIdleMax(int max)
(Code)
Sets the maximum number of idle threads in the thread pool.
setThreadIdleMin
public
void setThreadIdleMin(int min)
(Code)
Sets the minimum number of idle threads in the thread pool.
setThreadMax
public
void setThreadMax(int max)
(Code)
Sets the maximum thread-based keepalive
setURLCharacterEncoding
public
void setURLCharacterEncoding(
String
encoding) throws ConfigException
(Code)
Sets URL encoding.
start
public
void start()
(Code)
Start the server.
startPorts
public
void startPorts() throws
Exception
(Code)
Start the ports.
stop
public
void stop()
(Code)
Closes the server.
toString
public
String
toString()
(Code)
Methods inherited from
com.caucho.server.port.ProtocolDispatchServer
public
int getFreeSelectKeepalive()
(Code)
(Java Doc)
public
int getKeepaliveMax()
(Code)
(Java Doc)
public
AbstractSelectManager
getSelectManager()
(Code)
(Java Doc)
public
void initSelectManager(
AbstractSelectManager
manager)
(Code)
(Java Doc)
public
boolean isActive()
(Code)
(Java Doc)
public
boolean isIgnoreClientDisconnect()
(Code)
(Java Doc)
public
boolean isSelectManagerEnabled()
(Code)
(Java Doc)
public
void setIgnoreClientDisconnect(boolean ignore)
(Code)
(Java Doc)
public
void stop()
(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.