|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteClusterAdminService
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 |
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 |
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 |
| Method Detail |
|---|
java.lang.String stopServer(java.lang.String name,
java.lang.String submitter)
throws ClusterException,
java.rmi.RemoteException
name - server name of the specifed server.submitter - the user who requst this action.
if - error occurs when try to stop server.
java.rmi.RemoteException - will be thrown if error occurs.
ClusterException
java.lang.String stopCluster(java.lang.String submitter)
throws ClusterException,
java.rmi.RemoteException
if - error occurs when try to stop whole cluster.
java.rmi.RemoteException - will be thrown if error occurs.
ClusterException
boolean canEditPredefinedServers()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
java.lang.String addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
java.lang.String submitter)
throws ClusterException,
java.rmi.RemoteException
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.
java.rmi.RemoteException - will be thrown if error occurs.
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,
java.rmi.RemoteException
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.
java.rmi.RemoteException - will be thrown if error occurs.
ClusterException
java.lang.String removePredefinedServer(java.lang.String name,
java.lang.String submitter)
throws ClusterException,
java.rmi.RemoteException
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.
java.rmi.RemoteException - will be thrown if error occurs.
ClusterException
Member[] getPredefinedServers()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setEnableNotifyServerDown(boolean enable)
throws java.rmi.RemoteException
enable - true if enable send notification mail.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
boolean isEnableNotifyServerDown()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setNotifyServerDownAddress(java.lang.String address)
throws java.rmi.RemoteException
address - target address of mailsubmitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
java.lang.String getNotifyServerDownAddress()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
java.lang.String getActiveRealm()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setActiveRealm(java.lang.String realmName,
java.lang.String submmiter)
throws java.rmi.RemoteException
realmName - the realm name.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
boolean isNeedSecurity()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setNeedSecurity(boolean need,
java.lang.String submitter)
throws java.rmi.RemoteException
need - true if enable security authentication, false disable.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
boolean isEnableJSP()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setEnableJSP(boolean enable,
java.lang.String submitter)
throws java.rmi.RemoteException
need - true if enable using JSP, false disable.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
boolean isEnablePublishTempToVersion()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setEnablePublishTempToVersion(boolean enable,
java.lang.String submitter)
throws java.rmi.RemoteException
enable - true if enable publish temp result to version, false disable.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
void setMailServer(java.lang.String smtpServerName,
java.lang.String submitter)
throws java.rmi.RemoteException
smtpServerName - the smtp mail server 's name.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
java.lang.String getMailServer()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setMailPort(int port,
java.lang.String submitter)
throws java.rmi.RemoteException
port - the smtp mail server 's port.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
int getMailPort()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setMailBox(java.lang.String mailBox,
java.lang.String submitter)
throws java.rmi.RemoteException
mailBox - the mail form address.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
java.lang.String getMailBox()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setDefaultMailFormat(int mailFormat,
java.lang.String submitter)
throws java.rmi.RemoteException
mailFormat - the mail format send out.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
int getDefaultMailFormat()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
java.util.Vector getMailFormats()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setEnableCompress(boolean isEnable,
java.lang.String submitter)
throws java.rmi.RemoteException
isEnable - if compress mail.submitter - the user who requst this action.
java.rmi.RemoteException - will be thrown if error occurs.
boolean isEnableCompress()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
long runTestReport(java.lang.String name,
java.util.Properties ht)
throws ClusterException,
java.rmi.RemoteException
ht - the properties of the test reportname - the name of the test cluster member
java.rmi.RemoteException - will be thrown if error occurs.
ClusterException
void saveClusterWeights(java.util.Properties ep)
throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Properties loadClusterWeights()
throws java.io.IOException,
java.rmi.RemoteException
java.io.IOException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||