public interface RemoteClusterAdminService extends Remote
| Modifier and Type | Method and Description |
|---|---|
String |
addPredefinedServer(String name,
String host,
String port,
int backupPriority,
String submitter)
Deprecated.
since version v10
|
String |
addPredefinedServer(String name,
String host,
String port,
String submitter)
Deprecated.
since version v10
|
boolean |
canEditPredefinedServers()
Deprecated.
since version v10
|
String |
getActiveRealm()
Gets the active realm of the server.
|
int |
getDefaultMailFormat()
Returns the mail format sent out.
|
String |
getLoadBalanceCustomClass()
Returns the load balance custom class.
|
int |
getLoadBalanceType()
Returns the load balance type.
|
String |
getMailBox()
Returns the mail sender's address.
|
Vector |
getMailFormats()
Returns all the mail formats.
|
int |
getMailPort()
Returns the smtp mail server's port.
|
String |
getMailServer()
Returns the smtp mail server's name.
|
boolean |
getMessageMode()
Gets the internal message mode in JReport server.
|
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.
|
Properties |
loadClusterWeights()
Loads the cluster weights.
|
String |
removePredefinedServer(String name,
String submitter)
Deprecated.
since version v10
|
long |
runTestReport(String name,
Properties ht)
Returns the time of running the test report in an indicated cluster member.
|
void |
saveClusterWeights(Properties ep)
Saves the cluster weights.
|
void |
setActiveRealm(String realmName,
String submmiter)
Sets the active realm used in the whole cluster.
|
void |
setClusterSendConcurrentReport(Boolean isSendReport)
Sets whether the cluster sends concurrent report.
|
void |
setDefaultMailFormat(int mailFormat,
String submitter)
Sets the mail format sent out.
|
void |
setEnableCompress(boolean isEnable,
String submitter)
Sets whether to compress the mail.
|
void |
setEnableJSP(boolean enable,
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,
String submitter)
Sets whether to enable publishing temp result to version in the whole cluster.
|
void |
setLoadBalanceCustomClass(String customClass)
Sets the load balance custom class.
|
void |
setLoadBalanceType(int type)
Sets the load balance type.
|
void |
setMailBox(String mailBox,
String submitter)
Sets the mail sender's address.
|
void |
setMailPort(int port,
String submitter)
Sets the smtp mail server's port.
|
void |
setMailServer(String smtpServerName,
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,
String submitter)
Sets whether to enable security authentication in the whole cluster.
|
void |
setNotifyServerDownAddress(String address)
Sets the target address of the notification mail after a server in
the cluster is down.
|
String |
stopCluster(String submitter)
Stops all servers in the cluster.
|
String |
stopServer(String name,
String submitter)
Stops a server in the cluster.
|
String stopServer(String name, String submitter) throws ClusterException, 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.RemoteException - if communication-related error occurs during RMI call execution.String stopCluster(String submitter) throws ClusterException, RemoteException
submitter - the user who requested this action.if - error occurs when trying to stop the whole cluster.RemoteException - if communication-related error occurs during RMI call execution.ClusterExceptionboolean canEditPredefinedServers()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.String addPredefinedServer(String name, String host, String port, String submitter) throws ClusterException, 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.RemoteException - if communication-related error occurs during RMI call execution.ClusterExceptionString addPredefinedServer(String name, String host, String port, int backupPriority, String submitter) throws ClusterException, 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.RemoteException - if communication-related error occurs during RMI call execution.ClusterExceptionString removePredefinedServer(String name, String submitter) throws ClusterException, 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.RemoteException - if communication-related error occurs during RMI call execution.ClusterExceptionMember[] getPredefinedServers() throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setEnableNotifyServerDown(boolean enable)
throws RemoteException
enable - true if enabled to send notification mail.RemoteException - if communication-related error occurs during RMI call execution.boolean isEnableNotifyServerDown()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setNotifyServerDownAddress(String address) throws RemoteException
address - the target address of the mailRemoteException - if communication-related error occurs during RMI call execution.String getNotifyServerDownAddress() throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.String getActiveRealm() throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setActiveRealm(String realmName, String submmiter) throws RemoteException
realmName - the realm name.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.boolean isNeedSecurity()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setNeedSecurity(boolean need,
String submitter)
throws RemoteException
need - true if security authentication is enabled, false if disabled.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.boolean isEnableJSP()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setEnableJSP(boolean enable,
String submitter)
throws RemoteException
need - true if using JSP is enabled, false if disabled.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.boolean isEnablePublishTempToVersion()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setEnablePublishTempToVersion(boolean enable,
String submitter)
throws RemoteException
enable - true if publishing temp result to version is enabled, false if disabled.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.void setMailServer(String smtpServerName, String submitter) throws RemoteException
smtpServerName - the smtp mail server's name.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.String getMailServer() throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setMailPort(int port,
String submitter)
throws RemoteException
port - the smtp mail server's port.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.boolean getMessageMode()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setMessageMode(boolean mode)
throws RemoteException
mode - the message mode.RemoteException - if communication-related error occurs during RMI call execution.int getMailPort()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setMailBox(String mailBox, String submitter) throws RemoteException
mailBox - the mail sender's address.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.String getMailBox() throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setDefaultMailFormat(int mailFormat,
String submitter)
throws RemoteException
mailFormat - the mail format sent out.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.int getDefaultMailFormat()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.Vector getMailFormats() throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setEnableCompress(boolean isEnable,
String submitter)
throws RemoteException
isEnable - whether to compress the mail.submitter - the user who requested this action.RemoteException - if communication-related error occurs during RMI call execution.boolean isEnableCompress()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.long runTestReport(String name, Properties ht) throws ClusterException, RemoteException
ht - the properties of the test reportname - the name of the test cluster memberClusterException - will be thrown if error occurs.RemoteException - if communication-related error occurs during RMI call execution.void saveClusterWeights(Properties ep) throws RemoteException
ep - the properties of the cluster weightsRemoteException - if communication-related error occurs during RMI call execution.Properties loadClusterWeights() throws IOException, RemoteException
IOException - will be thrown if error occurs.RemoteException - if communication-related error occurs during RMI call execution.int getLoadBalanceType()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.String getLoadBalanceCustomClass() throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.void setLoadBalanceType(int type)
throws RemoteException
type - the load balance typeRemoteException - if communication-related error occurs during RMI call execution.void setLoadBalanceCustomClass(String customClass) throws RemoteException
customClass - the load balance custom classRemoteException - if communication-related error occurs during RMI call execution.void setClusterSendConcurrentReport(Boolean isSendReport) throws RemoteException
isSendReport - true if the cluster sends concurrent reportRemoteException - if communication-related error occurs during RMI call execution.boolean isClusterSendConcurrentReport()
throws RemoteException
RemoteException - if communication-related error occurs during RMI call execution.© insightsoftware. All rights reserved.