public interface RemoteClusterAdminService
extends java.rmi.Remote
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
int backupPriority,
java.lang.String submitter)
Deprecated.
since version v10
|
java.lang.String |
addPredefinedServer(java.lang.String name,
java.lang.String host,
java.lang.String port,
java.lang.String submitter)
Deprecated.
since version v10
|
boolean |
canEditPredefinedServers()
Deprecated.
since version v10
|
java.lang.String |
getActiveRealm()
Gets the active realm of the server.
|
int |
getDefaultMailFormat()
Returns the mail format sent out.
|
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()
Sets the target address of the notification mail after a server in
the cluster is down.
|
Member[] |
getPredefinedServers()
Deprecated.
since version v10
|
boolean |
isClusterSendConcurrentReport()
Returns whether the cluster sends concurrent report.
|
boolean |
isEnableCompress()
Returns true if it enables to compress the mail, otherwise return false.
|
boolean |
isEnableJSP()
Returns whether to use JSP.
|
boolean |
isEnableNotifyServerDown()
Gets the setting about whether to send notification mail after a server in the cluster
is down.
|
boolean |
isEnablePublishTempToVersion()
Checks whether to enable publishing temp result to version.
|
boolean |
isNeedSecurity()
Returns whether to need security authentication.
|
java.util.Properties |
loadClusterWeights()
Loads the cluster weights.
|
java.lang.String |
removePredefinedServer(java.lang.String name,
java.lang.String submitter)
Deprecated.
since version v10
|
long |
runTestReport(java.lang.String name,
java.util.Properties ht)
Returns the time of running the test report in an indicated cluster member.
|
void |
saveClusterWeights(java.util.Properties ep)
Saves the cluster weights.
|
void |
setActiveRealm(java.lang.String realmName,
java.lang.String submmiter)
Sets the active realm used in the whole cluster.
|
void |
setClusterSendConcurrentReport(java.lang.Boolean isSendReport)
Sets whether the cluster sends concurrent report.
|
void |
setDefaultMailFormat(int mailFormat,
java.lang.String submitter)
Sets the mail format sent out.
|
void |
setEnableCompress(boolean isEnable,
java.lang.String submitter)
Sets whether 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)
Sets the option that 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 temp result to version in the whole cluster.
|
void |
setLoadBalanceCustomClass(java.lang.String customClass)
Sets the load balance custom class.
|
void |
setLoadBalanceType(int type)
Sets 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)
Sets 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 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 name, java.lang.String submitter) throws ClusterException, java.rmi.RemoteException
name
- the server name of the specified server.submitter
- the user who requested this action.ClusterException
- if
error occurs when trying to stop the server.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String stopCluster(java.lang.String submitter) throws ClusterException, java.rmi.RemoteException
submitter
- the user who requested this action.if
- error occurs when trying to stop the whole cluster.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.ClusterException
boolean canEditPredefinedServers() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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
- the clustered server's name.host
- the clustered server's host.port
- the 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.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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
- the clustered server's name.host
- the clustered server's host.port
- the 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
the highest priority among the active backup servers will promote itself
to admin server. The priority value is a non-negative integer, "0"
represents the highest priority, the value "0" is reserved for
admin server. If admin server is crashed, and before it
restarts, a backup server will be promoted to admin server,
and the original admin server has to start as backup server, it needs 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.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.ClusterException
java.lang.String removePredefinedServer(java.lang.String name, java.lang.String submitter) throws ClusterException, java.rmi.RemoteException
name
- the name of clustered server which you want 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.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.ClusterException
Member[] getPredefinedServers() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setEnableNotifyServerDown(boolean enable) throws java.rmi.RemoteException
enable
- true if enabled to send notification mail.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isEnableNotifyServerDown() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setNotifyServerDownAddress(java.lang.String address) throws java.rmi.RemoteException
address
- the target address of the mailjava.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getNotifyServerDownAddress() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getActiveRealm() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setActiveRealm(java.lang.String realmName, java.lang.String submmiter) throws java.rmi.RemoteException
realmName
- the realm name.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isNeedSecurity() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setNeedSecurity(boolean need, java.lang.String submitter) throws java.rmi.RemoteException
need
- true if security authentication is enabled, false if disabled.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isEnableJSP() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setEnableJSP(boolean enable, java.lang.String submitter) throws java.rmi.RemoteException
need
- true if using JSP is enabled, false if disabled.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isEnablePublishTempToVersion() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setEnablePublishTempToVersion(boolean enable, java.lang.String submitter) throws java.rmi.RemoteException
enable
- true if publishing temp result to version is enabled, false if disabled.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getMailServer() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setMailPort(int port, java.lang.String submitter) throws java.rmi.RemoteException
port
- the smtp mail server's port.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean getMessageMode() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setMessageMode(boolean mode) throws java.rmi.RemoteException
mode
- the message mode.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.int getMailPort() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setMailBox(java.lang.String mailBox, java.lang.String submitter) throws java.rmi.RemoteException
mailBox
- the mail sender's address.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getMailBox() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setDefaultMailFormat(int mailFormat, java.lang.String submitter) throws java.rmi.RemoteException
mailFormat
- the mail format sent out.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.int getDefaultMailFormat() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getMailFormats() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setEnableCompress(boolean isEnable, java.lang.String submitter) throws java.rmi.RemoteException
isEnable
- whether to compress the mail.submitter
- the user who requested this action.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isEnableCompress() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 memberClusterException
- will be thrown if error occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void saveClusterWeights(java.util.Properties ep) throws java.rmi.RemoteException
ep
- the properties of the cluster weightsjava.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Properties loadClusterWeights() throws java.io.IOException, java.rmi.RemoteException
java.io.IOException
- will be thrown if error occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.int getLoadBalanceType() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getLoadBalanceCustomClass() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setLoadBalanceType(int type) throws java.rmi.RemoteException
type
- the load balance typejava.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setLoadBalanceCustomClass(java.lang.String customClass) throws java.rmi.RemoteException
customClass
- the load balance custom classjava.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void setClusterSendConcurrentReport(java.lang.Boolean isSendReport) throws java.rmi.RemoteException
isSendReport
- true if the cluster sends concurrent reportjava.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isClusterSendConcurrentReport() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.