|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClusterAdminService
Config the properties that used for whole cluster(need security, active realm, JSP enabled, publisht temp result to version enabled, mail config), and shutdown specified sever in cluster if standalone 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)
Add a clustered server into predefined server list of cluster. |
java.lang.String |
addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
java.lang.String submitter)
Add a clustered server into predefined server list of cluster. |
boolean |
canEditPredefinedServers()
If can edit predefined server list of cluster. |
java.lang.String |
getActiveRealm()
Get the active realm of server. |
int |
getCheckAdminCrashedInterval()
Deprecated. since JREntServer version 5.1 |
int |
getDefaultMailFormat()
Return the mail format send out. |
java.lang.String |
getMailBox()
Return the mail form address. |
java.util.Vector |
getMailFormats()
Return the all mail formats . |
int |
getMailPort()
Return the smtp mail server 's port. |
java.lang.String |
getMailServer()
Return the smtp mail server 's name. |
java.lang.String |
getNotifyServerDownAddress()
Set the target address of mail for notification mail after a server in cluster down. |
Member[] |
getPredefinedServers()
Get all server list that predefined. |
boolean |
isEnableCompress()
Return true if compress mail, otherwise return false. |
boolean |
isEnableJSP()
Return if use JSP. |
boolean |
isEnableNotifyServerDown()
Get setting that whether send notification mail after a server in cluster down. |
boolean |
isEnablePublishTempToVersion()
Check if enable publish temp result to version. |
boolean |
isNeedSecurity()
Return if need security authentication |
java.util.Properties |
loadClusterWeights()
|
java.lang.String |
removePredefinedServer(java.lang.String name,
java.lang.String submitter)
Remove a clustered server from predefined server list of cluster. |
long |
runTestReport(java.lang.String name,
java.util.Properties ht)
Return the time of running test report for in a indicated cluster member |
void |
saveClusterWeights(java.util.Properties ep)
|
void |
setActiveRealm(java.lang.String realmName,
java.lang.String submmiter)
Set the active realm used in whole cluster. |
void |
setCheckAdminCrashedInterval(int interval)
Deprecated. since JREntServer version 5.1 |
void |
setDefaultMailFormat(int mailFormat,
java.lang.String submitter)
Set the mail format send out. |
void |
setEnableCompress(boolean isEnable,
java.lang.String submitter)
Set if compress mail. |
void |
setEnableJSP(boolean enable,
java.lang.String submitter)
Set whether enable using JSP in whole cluster. |
void |
setEnableNotifyServerDown(boolean enable)
Set option that specify whether send notification mail after a server in cluster down. |
void |
setEnablePublishTempToVersion(boolean enable,
java.lang.String submitter)
Set whether enable publish temp result to version in whole cluster. |
void |
setMailBox(java.lang.String mailBox,
java.lang.String submitter)
set the mail form address. |
void |
setMailPort(int port,
java.lang.String submitter)
set the smtp mail server 's port. |
void |
setMailServer(java.lang.String smtpServerName,
java.lang.String submitter)
set the smtp mail server 's name . |
void |
setNeedSecurity(boolean need,
java.lang.String submitter)
Set whether enable security authentication in whole cluster. |
void |
setNotifyServerDownAddress(java.lang.String address)
Set the target address of mail for notification mail after a server in cluster down. |
java.lang.String |
stopCluster(java.lang.String submitter)
Stop all servers in the cluste. |
java.lang.String |
stopServer(java.lang.String name,
java.lang.String submitter)
Stop 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 specifed server.submitter - the user who requst this action.
if - error occurs when try to stop server.
ClusterException
java.lang.String stopServer(java.lang.String host,
java.lang.String port,
java.lang.String submitter)
throws ClusterException
host - host name of the specifed server.port - rmi port which the specified server used.submitter - the user who requst this action.
if - error occurs when try to stop server.
ClusterException
java.lang.String stopCluster(java.lang.String submitter)
throws ClusterException
if - error occurs when try to stop 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 requst this action.
if - any error occurs when try to add clustered server into 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 - specify backup server's priority when admin server was crashed.
That is, if admin server was crashed, server that has highest priority in active backup servers
will promote itself to admin server, priority value is a non-negative integer,
"0" represent the highest priority, value "0" is reserved for admin server(if admin server was crashed,
and before it restart, a backup server has promoted to admin server, original admin server has to
start as backup server, it need a backup priority).submitter - the user who requst this action.
if - any error occurs when try to add clustered server into predefined server list.
ClusterException
java.lang.String removePredefinedServer(java.lang.String name,
java.lang.String submitter)
throws ClusterException
name - name of clustered server which want to remove.submitter - the user who requst this action.
if - any error occurs when try to remove clustered server from predefined server list.
ClusterExceptionMember[] getPredefinedServers()
void setEnableNotifyServerDown(boolean enable)
enable - true if enable send notification mail.submitter - the user who requst this action.boolean isEnableNotifyServerDown()
void setNotifyServerDownAddress(java.lang.String address)
address - target address of mailsubmitter - the user who requst this action.java.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 requst this action.boolean isNeedSecurity()
void setNeedSecurity(boolean need,
java.lang.String submitter)
need - true if enable security authentication, false disable.submitter - the user who requst this action.boolean isEnableJSP()
void setEnableJSP(boolean enable,
java.lang.String submitter)
need - true if enable using JSP, false disable.submitter - the user who requst this action.boolean isEnablePublishTempToVersion()
void setEnablePublishTempToVersion(boolean enable,
java.lang.String submitter)
enable - true if enable publish temp result to version, false disable.submitter - the user who requst this action.
void setMailServer(java.lang.String smtpServerName,
java.lang.String submitter)
smtpServerName - the smtp mail server 's name.submitter - the user who requst 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 requst this action.int getMailPort()
void setMailBox(java.lang.String mailBox,
java.lang.String submitter)
mailBox - the mail form address.submitter - the user who requst this action.java.lang.String getMailBox()
void setDefaultMailFormat(int mailFormat,
java.lang.String submitter)
mailFormat - the mail format send out.submitter - the user who requst this action.int getDefaultMailFormat()
java.util.Vector getMailFormats()
void setEnableCompress(boolean isEnable,
java.lang.String submitter)
isEnable - if compress mail.submitter - the user who requst this action.boolean isEnableCompress()
long runTestReport(java.lang.String name,
java.util.Properties ht)
throws ClusterException
ht - the properties of the test reportname - the name of the test cluster member
ClusterExceptionvoid saveClusterWeights(java.util.Properties ep)
java.util.Properties loadClusterWeights()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||