|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClusterAdminService
Specifies the properties used for the whole cluster (need security, active realm, JSP enabled, publish temp result to version enabled, mail configuration), and shuts down the specified sever in the cluster if stand alone server is used.
| Method Summary | |
|---|---|
java.lang.String |
addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
int backupPriority,
java.lang.String submitter)
Deprecated. |
java.lang.String |
addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
java.lang.String submitter)
Deprecated. |
boolean |
canEditPredefinedServers()
Deprecated. |
java.lang.String |
getActiveRealm()
Gets the active realm of the server. |
int |
getCheckAdminCrashedInterval()
Deprecated. |
int |
getDefaultMailFormat()
Returns the mail format. |
java.lang.String |
getLoadBalanceCustomClass()
Returns the load balance custom class. |
int |
getLoadBalanceType()
Returns the load balance type. |
java.lang.String |
getMailBox()
Returns the mail sender's address. |
java.util.Vector |
getMailFormats()
Returns all the mail formats. |
int |
getMailPort()
Returns the smtp mail server's port. |
java.lang.String |
getMailServer()
Returns the smtp mail server's name. |
boolean |
getMessageMode()
Gets the internal message mode in JReport server. |
java.lang.String |
getNotifyServerDownAddress()
Specifies the target address of the notification mail after a server in the cluster is down. |
Member[] |
getPredefinedServers()
Deprecated. |
boolean |
isClusterSendConcurrentReport()
Returns whether the cluster sends concurrent reports. |
boolean |
isEnableCompress()
Returns true if to compress the mail, false otherwise. |
boolean |
isEnableJSP()
Returns if to use JSP. |
boolean |
isEnableNotifyServerDown()
Gets whether to send notification mail after a server in the cluster is down. |
boolean |
isEnablePublishTempToVersion()
Checks if to enable publishing temporary result to version. |
boolean |
isNeedSecurity()
Returns if security authentication is needed. |
java.util.Properties |
loadClusterWeights()
Loads cluster weights. |
java.lang.String |
removePredefinedServer(java.lang.String name,
java.lang.String submitter)
Deprecated. |
long |
runTestReport(java.lang.String name,
java.util.Properties ht)
Returns the time (ms) for running a test report in a specified cluster member. |
void |
saveClusterWeights(java.util.Properties ep)
Saves cluster weights. |
void |
setActiveRealm(java.lang.String realmName,
java.lang.String submmiter)
Sets the active realm used in the whole cluster. |
void |
setCheckAdminCrashedInterval(int interval)
Deprecated. |
void |
setClusterSendConcurrentReport(java.lang.Boolean isSendReport)
Sets whether the cluster sends concurrent reports. |
void |
setDefaultMailFormat(int mailFormat,
java.lang.String submitter)
Sets the mail format. |
void |
setEnableCompress(boolean isEnable,
java.lang.String submitter)
Sets if to compress the mail. |
void |
setEnableJSP(boolean enable,
java.lang.String submitter)
Sets whether to enable using JSP in the whole cluster. |
void |
setEnableNotifyServerDown(boolean enable)
Specifies whether to send notification mail after a server in the cluster is down. |
void |
setEnablePublishTempToVersion(boolean enable,
java.lang.String submitter)
Sets whether to enable publishing temporary result to version in the whole cluster. |
void |
setLoadBalanceCustomClass(java.lang.String customClass)
Specifies the class name of user's load balancer. |
void |
setLoadBalanceType(int type)
Specifies the load-balance type. |
void |
setMailBox(java.lang.String mailBox,
java.lang.String submitter)
Sets the mail sender's address. |
void |
setMailPort(int port,
java.lang.String submitter)
Sets the smtp mail server's port. |
void |
setMailServer(java.lang.String smtpServerName,
java.lang.String submitter)
Sets the smtp mail server's name. |
void |
setMessageMode(boolean mode)
Sets the internal message mode in JReport server. |
void |
setNeedSecurity(boolean need,
java.lang.String submitter)
Sets whether to enable security authentication in the whole cluster. |
void |
setNotifyServerDownAddress(java.lang.String address)
Specifies the target address of the notification mail after a server in the cluster is down. |
java.lang.String |
stopCluster(java.lang.String submitter)
Stops all the servers in the cluster. |
java.lang.String |
stopServer(java.lang.String name,
java.lang.String submitter)
Stops a server in the cluster. |
java.lang.String |
stopServer(java.lang.String host,
java.lang.String port,
java.lang.String submitter)
Deprecated. since JREntServer version 5.1 |
| Method Detail |
|---|
java.lang.String stopServer(java.lang.String name,
java.lang.String submitter)
throws ClusterException
name - server name of the specified server.submitter - the user who requested this action.
if - error occurs when trying to stop the server.
ClusterExceptionClusterException
java.lang.String stopServer(java.lang.String host,
java.lang.String port,
java.lang.String submitter)
throws ClusterException
host - host name of the specified server.port - rmi port which the specified server uses.submitter - the user who requested this action.
if - error occurs when trying to stop the server.
ClusterException
java.lang.String stopCluster(java.lang.String submitter)
throws ClusterException
submitter - the user who requested this action.
if - error occurs when trying to stop the whole cluster.
ClusterExceptionboolean canEditPredefinedServers()
int getCheckAdminCrashedInterval()
void setCheckAdminCrashedInterval(int interval)
interval - time (minutes).
java.lang.String addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
java.lang.String submitter)
throws ClusterException
name - clustered server's name.host - clustered server's host.port - clustered server's rmi port.submitter - the user who requested this action.
if - any error occurs when trying to add the clustered server into the predefined server list.
ClusterException
java.lang.String addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
int backupPriority,
java.lang.String submitter)
throws ClusterException
name - clustered server's name.host - clustered server's host.port - clustered server's rmi port.backupPriority - specifies backup server's priority when admin server is crashed.
That is, if admin server is crashed, the server that has highest priority among active backup servers
will promote itself to admin server. The priority value is a non-negative integer,
"0" represents the highest priority, value "0" is reserved for admin server (if admin server is crashed,
and before it restarts, a backup server will be promoted to be admin server, and the original admin server has to
start as a backup server and need a backup priority).submitter - the user who requested this action.
if - any error occurs when trying to add the clustered server into the predefined server list.
ClusterException
java.lang.String removePredefinedServer(java.lang.String name,
java.lang.String submitter)
throws ClusterException
name - the name of the clustered server which is requested to remove.submitter - the user who requested this action.
if - any error occurs when trying to remove the clustered server from the predefined server list.
ClusterExceptionMember[] getPredefinedServers()
void setEnableNotifyServerDown(boolean enable)
enable - true if enabled to send notification mail.boolean isEnableNotifyServerDown()
void setNotifyServerDownAddress(java.lang.String address)
address - target address of the mailjava.lang.String getNotifyServerDownAddress()
java.lang.String getActiveRealm()
void setActiveRealm(java.lang.String realmName,
java.lang.String submmiter)
realmName - the realm name.submitter - the user who requested this action.boolean isNeedSecurity()
void setNeedSecurity(boolean need,
java.lang.String submitter)
need - true if to enable security authentication, false to disable.submitter - the user who requested this action.boolean isEnableJSP()
void setEnableJSP(boolean enable,
java.lang.String submitter)
need - true if to enable using JSP, false to disable.submitter - the user who requested this action.boolean isEnablePublishTempToVersion()
void setEnablePublishTempToVersion(boolean enable,
java.lang.String submitter)
enable - true if to enable publishing temporary result to version, false to disable.submitter - the user who requested this action.
void setMailServer(java.lang.String smtpServerName,
java.lang.String submitter)
smtpServerName - the smtp mail server's name.submitter - the user who requested this action.java.lang.String getMailServer()
void setMailPort(int port,
java.lang.String submitter)
port - the smtp mail server's port.submitter - the user who requested this action.int getMailPort()
void setMailBox(java.lang.String mailBox,
java.lang.String submitter)
mailBox - the mail sender's address.submitter - the user who requested this action.java.lang.String getMailBox()
void setDefaultMailFormat(int mailFormat,
java.lang.String submitter)
mailFormat - the mail format.submitter - the user who requested this action.int getDefaultMailFormat()
boolean getMessageMode()
void setMessageMode(boolean mode)
mode,the - internal message mode in JReport server.
true - return message string.
false - return message key.java.util.Vector getMailFormats()
void setEnableCompress(boolean isEnable,
java.lang.String submitter)
isEnable - if to compress the mail.submitter - the user who requested this action.boolean isEnableCompress()
long runTestReport(java.lang.String name,
java.util.Properties ht)
throws ClusterException
ht - the properties of running the test reportname - the name of the cluster member
ClusterExceptionClusterExceptionvoid saveClusterWeights(java.util.Properties ep)
ep - the properties of cluster weights
java.util.Properties loadClusterWeights()
throws java.io.IOException
java.io.IOExceptionint getLoadBalanceType()
java.lang.String getLoadBalanceCustomClass()
void setLoadBalanceType(int type)
type - load balance type
0 - Uses Least Current Reports Algorithm to allocate tasks.
1 - Uses Round Robin Algorithm to allocate tasks.
2 - Uses Least Weighted Current Reports Algorithm to allocate tasks.
3 - Randomly allocates tasks.void setLoadBalanceCustomClass(java.lang.String customClass)
customClass - load balance custom classvoid setClusterSendConcurrentReport(java.lang.Boolean isSendReport)
isSendReport - true if the cluster sends concurrent reportsboolean isClusterSendConcurrentReport()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||