Java Doc for ClusterServer.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)
java.lang
.Object
com.caucho.server.cluster
.ClusterServer
ClusterServer
public
class ClusterServer
(Code)
Defines a member of the cluster, corresponds to
in the conf file. A
ServerConnector
obtained with
ClusterServer.getServerConnector
is used to actually communicate with this ClusterServer when it is active in another instance of Resin .
Constructor Summary
public
ClusterServer
(
Cluster
cluster)
public
ClusterServer
(
Machine
machine)
public
ClusterServer
(
Cluster
cluster, boolean test)
Method Summary
public
void
addBuilderProgram
(
ConfigProgram
program)
Adds a program.
public
void
addJavaExe
(
String
args)
public
void
addJvmArg
(
String
args)
void
addProtocolPort
(
Port
port)
public
void
addWatchdogArg
(
String
args)
public
void
addWatchdogJvmArg
(
String
args)
public
void
addWatchdogPassword
(
String
args)
public
void
addWatchdogPort
(int port)
public
void
bind
(
String
address, int port, QServerSocket ss)
Pre-binding of ports.
public
void
close
()
Close any ports.
public
ClusterPort
createClusterPort
()
Sets the ClusterPort.
public
Port
createHttp
()
Adds a http.
public
Port
createProtocol
()
Adds a custom-protocol port.
public
long
generateBackupCode
()
Generate the primary, secondary, tertiary, returning the value encoded in a long.
public
void
generateBackupCode
(
StringBuilder
cb)
Adds the primary/backup/third digits to the id.
public
Cluster
getCluster
()
Returns the cluster.
public
ClusterPort
getClusterPort
()
Sets the ClusterPort.
public
String
getId
()
Gets the server identifier.
public
int
getIndex
()
Returns the server index.
public
long
getKeepaliveTimeout
()
Gets the keepalive timeout.
public
long
getLoadBalanceConnectTimeout
()
Gets the loadBalance connection time.
public
long
getLoadBalanceIdleTime
()
Sets the loadBalance idle-time.
public
long
getLoadBalanceRecoverTime
()
Gets the loadBalance fail-recover-time.
public
long
getLoadBalanceSocketTimeout
()
Gets the loadBalance socket time.
public
long
getLoadBalanceWarmupTime
()
public
int
getLoadBalanceWeight
()
public
Machine
getMachine
()
Returns the machine.
public
int
getPort
()
Gets the port.
public
ArrayList
<
Port
>
getPorts
()
Returns the ports.
public
ServerConnector
getServerConnector
()
Returns the server connector.
public
ConfigProgram
getServerProgram
()
Adds a program.
public
long
getSocketTimeout
()
public
void
init
()
public
boolean
isSSL
()
Returns true for secure.
public
void
setAddress
(
String
address)
public
void
setBackup
(boolean isBackup)
public
void
setGroupName
(
String
groupName)
Sets the group name.
public
void
setId
(
String
id)
Sets the server identifier.
void
setIndex
(int index)
Returns the server index.
public
void
setKeepaliveTimeout
(
Period
timeout)
Sets the keepalive timeout.
public
void
setLoadBalanceConnectTimeout
(
Period
period)
Sets the loadBalance connection time.
public
void
setLoadBalanceIdleTime
(
Period
period)
Sets the loadBalance max-idle-time.
public
void
setLoadBalanceRecoverTime
(
Period
period)
Sets the loadBalance fail-recover-time.
public
void
setLoadBalanceSocketTimeout
(
Period
period)
Sets the loadBalance socket time.
public
void
setLoadBalanceWarmupTime
(
Period
period)
public
void
setLoadBalanceWeight
(int weight)
public
void
setPort
(int port)
Sets a port.
public
void
setSocketTimeout
(
Period
period)
public
void
setUserName
(
String
userName)
Sets the user name.
public
Server
startServer
()
Starts the server.
public
String
toString
()
Constructor Detail
ClusterServer
public
ClusterServer(
Cluster
cluster)
(Code)
ClusterServer
public
ClusterServer(
Machine
machine)
(Code)
ClusterServer
public
ClusterServer(
Cluster
cluster, boolean test)
(Code)
Method Detail
addBuilderProgram
public
void addBuilderProgram(
ConfigProgram
program)
(Code)
Adds a program.
addJavaExe
public
void addJavaExe(
String
args)
(Code)
Arguments on boot
addJvmArg
public
void addJvmArg(
String
args)
(Code)
Arguments on boot
addProtocolPort
void addProtocolPort(
Port
port)
(Code)
addWatchdogArg
public
void addWatchdogArg(
String
args)
(Code)
Arguments on boot
addWatchdogJvmArg
public
void addWatchdogJvmArg(
String
args)
(Code)
Arguments on boot
addWatchdogPassword
public
void addWatchdogPassword(
String
args)
(Code)
Arguments on boot
addWatchdogPort
public
void addWatchdogPort(int port)
(Code)
Arguments on boot
bind
public
void bind(
String
address, int port, QServerSocket ss) throws
Exception
(Code)
Pre-binding of ports.
close
public
void close()
(Code)
Close any ports.
createClusterPort
public
ClusterPort
createClusterPort()
(Code)
Sets the ClusterPort.
createHttp
public
Port
createHttp() throws ConfigException
(Code)
Adds a http.
createProtocol
public
Port
createProtocol() throws ConfigException
(Code)
Adds a custom-protocol port.
generateBackupCode
public
long generateBackupCode()
(Code)
Generate the primary, secondary, tertiary, returning the value encoded in a long.
generateBackupCode
public
void generateBackupCode(
StringBuilder
cb)
(Code)
Adds the primary/backup/third digits to the id.
getCluster
public
Cluster
getCluster()
(Code)
Returns the cluster.
getClusterPort
public
ClusterPort
getClusterPort()
(Code)
Sets the ClusterPort.
getId
public
String
getId()
(Code)
Gets the server identifier.
getIndex
public
int getIndex()
(Code)
Returns the server index.
getKeepaliveTimeout
public
long getKeepaliveTimeout()
(Code)
Gets the keepalive timeout.
getLoadBalanceConnectTimeout
public
long getLoadBalanceConnectTimeout()
(Code)
Gets the loadBalance connection time.
getLoadBalanceIdleTime
public
long getLoadBalanceIdleTime()
(Code)
Sets the loadBalance idle-time.
getLoadBalanceRecoverTime
public
long getLoadBalanceRecoverTime()
(Code)
Gets the loadBalance fail-recover-time.
getLoadBalanceSocketTimeout
public
long getLoadBalanceSocketTimeout()
(Code)
Gets the loadBalance socket time.
getLoadBalanceWarmupTime
public
long getLoadBalanceWarmupTime()
(Code)
Gets the loadBalance warmup time
getLoadBalanceWeight
public
int getLoadBalanceWeight()
(Code)
Gets the loadBalance weight
getMachine
public
Machine
getMachine()
(Code)
Returns the machine.
getPort
public
int getPort()
(Code)
Gets the port.
getPorts
public
ArrayList
<
Port
> getPorts()
(Code)
Returns the ports.
getServerConnector
public
ServerConnector
getServerConnector()
(Code)
Returns the server connector.
getServerProgram
public
ConfigProgram
getServerProgram()
(Code)
Adds a program.
getSocketTimeout
public
long getSocketTimeout()
(Code)
Gets the loadBalance read/write timeout
init
public
void init() throws
Exception
(Code)
Initialize
isSSL
public
boolean isSSL()
(Code)
Returns true for secure.
setAddress
public
void setAddress(
String
address) throws
UnknownHostException
(Code)
Sets the address
setBackup
public
void setBackup(boolean isBackup)
(Code)
Sets true for backups
setGroupName
public
void setGroupName(
String
groupName)
(Code)
Sets the group name.
setId
public
void setId(
String
id)
(Code)
Sets the server identifier.
setIndex
void setIndex(int index)
(Code)
Returns the server index.
setKeepaliveTimeout
public
void setKeepaliveTimeout(
Period
timeout)
(Code)
Sets the keepalive timeout.
setLoadBalanceConnectTimeout
public
void setLoadBalanceConnectTimeout(
Period
period)
(Code)
Sets the loadBalance connection time.
setLoadBalanceIdleTime
public
void setLoadBalanceIdleTime(
Period
period)
(Code)
Sets the loadBalance max-idle-time.
setLoadBalanceRecoverTime
public
void setLoadBalanceRecoverTime(
Period
period)
(Code)
Sets the loadBalance fail-recover-time.
setLoadBalanceSocketTimeout
public
void setLoadBalanceSocketTimeout(
Period
period)
(Code)
Sets the loadBalance socket time.
setLoadBalanceWarmupTime
public
void setLoadBalanceWarmupTime(
Period
period)
(Code)
Sets the loadBalance warmup time
setLoadBalanceWeight
public
void setLoadBalanceWeight(int weight)
(Code)
Sets the loadBalance weight
setPort
public
void setPort(int port)
(Code)
Sets a port.
setSocketTimeout
public
void setSocketTimeout(
Period
period)
(Code)
Sets the loadBalance read/write timeout
setUserName
public
void setUserName(
String
userName)
(Code)
Sets the user name.
startServer
public
Server
startServer() throws
StartLifecycleException
(Code)
Starts the server.
toString
public
String
toString()
(Code)
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.