|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface manages the server, provides general information on the server,
and retrieves the administration library specific to the server kind.
Management of the server includes starting, stopping, restarting, enabling, and disabling
the server. Information is specific to the server itself as well as the general metrics
available in the IServerGeneralMetrics
interface. The administration libraries can be used to
obtain detailed information on the kind of server, as well as to make calls specific to the
management of that server kind.
| Nested Class Summary | |
static interface |
IServerBase.CeCommunicationProtocol
The communication protocol the server is running under |
| Field Summary | |
static int |
CE_SERVER_RESTART
This constant value specifies that the server should be restarted. |
static int |
CE_SERVER_START
This constant value specifies that the server should be started. |
static int |
CE_SERVER_STOP
This constant value specifies that the server should be stopped. |
| Method Summary | |
java.lang.String[] |
getAdminServiceNames()
Returns a String array of all the administrative service names that are exposed by this server. |
java.lang.Object |
getAuditAdmin()
Returns the administrative object to manage the auditing. |
int |
getCommunicationProtocol()
Returns the communication protocol the server is running under. |
java.lang.String |
getFriendlyName()
Returns the BusinessObjects Enterprise Friendly Name of the server. |
java.lang.String |
getName()
Returns the SI_NAME. |
java.lang.Object |
getServerAdmin()
Returns the administrative object to manage the server. |
java.lang.String |
getServerDescriptor()
Returns the type of BusinessObjects Enterprise server. |
IServerGeneralMetrics |
getServerGeneralAdmin()
Returns the IServerGeneralMetrics object that is used to retrieve generic server
metrics.
|
java.lang.String |
getServerID()
Returns the Nameserver registered server ID. |
java.lang.String |
getServerIOR()
Returns the server's unique identifier. |
java.lang.String |
getServerKind()
Returns the registered server kind. |
java.lang.String |
getServerName()
Returns the name of the host (machine) where the server is running. |
java.lang.Object |
getServiceAdminObject(java.lang.String serviceName)
Returns a generic Object instance of the administrative object that supports the requested service. |
java.lang.Object |
getSingleSignOnAdmin()
Returns the administrative object that allows you to manage single sign-on (SSO) authentication. |
boolean |
isAlive()
Returns true if the server is alive (running), and false otherwise.
|
boolean |
isDisabled()
Returns true if the server is disabled, and false otherwise.
|
boolean |
manageServer(int operation,
int timeout,
java.lang.String username,
java.lang.String password)
Starts, stops, or restarts a server. |
void |
setDisabled(boolean b)
Sets whether the server is disabled. |
| Field Detail |
public static final int CE_SERVER_START
This constant value specifies that the server should be started.
public static final int CE_SERVER_STOP
This constant value specifies that the server should be stopped.
public static final int CE_SERVER_RESTART
This constant value specifies that the server should be restarted.
| Method Detail |
public java.lang.String getServerName()
throws SDKException
Returns the name of the host (machine) where the server is running.
String containing the name of the host (machine)
where the server is running.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.String getServerDescriptor()
throws SDKException
Returns the type of BusinessObjects Enterprise server.
String containing the type of the BusinessObjects Enterprise server.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.String getServerID()
throws SDKException
Returns the Nameserver registered server ID.
String containing the Nameserver registered server ID.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.String getServerKind()
throws SDKException
Returns the registered server kind. Each server kind, such as File Server or Job Server, has a distinct value.
String containing the registered server kind.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.String getServerIOR()
throws SDKException
Returns the server's unique identifier. This is the registered IOR.
String containing the server's unique indentifier.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.String getFriendlyName()
throws SDKException
Returns the BusinessObjects Enterprise Friendly Name of the server.
String containing the BusinessObjects Enterprise Friendly Name of the server.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.String getName()
throws SDKException
Returns the SI_NAME.
String containing the name.
SDKException - This is thrown if the process is unsuccessful.CePropertyID.SI_NAME
public boolean isDisabled()
throws SDKException
Returns true if the server is disabled, and false otherwise.
true if the server is disabled, false otherwise.
SDKException - This is thrown if the process is unsuccessful.
public void setDisabled(boolean b)
throws SDKException
Sets whether the server is disabled. This value should be true if the server
is to be disabled, and false otherwise.
b - true if the server is disabled, false otherwise.
SDKException - This is thrown if the process is unsuccessful.
public boolean isAlive()
throws SDKException
Returns true if the server is alive (running), and false otherwise.
true if the server is alive (running), false otherwise.
SDKException - This is thrown if the process is unsuccessful.
public boolean manageServer(int operation,
int timeout,
java.lang.String username,
java.lang.String password)
throws SDKException
Starts, stops, or restarts a server. Optional parameters include operating system user
name and password to authenticate with a remote server, as well as a time-out for setting
the length of time before the attempt to change the state of the service will fail.
This method returns true if service is already on the requested state.
operation - The type of operation to perform on the server. This includes starting,
stopping, and restarting. This value should be one of the constants
CE_SERVER_START, CE_SERVER_STOP, or CE_SERVER_RESTART.timeout - The amount of time, in seconds, before the attempt to change the state
of the service will fail. This value is set by default to 20 seconds.username - The operating system user name. The user must have the privileges to
start or stop the related service. This parameter can be null if the SDK is on the Windows
platform, which means the current user priviledges will be used.password - The operating system password.
true if service is already in the requested state.
SDKException.InvalidOperation - if trying to stop a Windows server from a Unix SDK.
SDKException - This is thrown if the specified operation failed.
java.lang.IllegalArgumentException - if the operation argument is invalid.
java.lang.IllegalArgumentException - if the timeout argument is negative.
public java.lang.Object getServerAdmin()
throws SDKException
Returns the administrative object to manage the server. Each server kind will return a different object type specific to that server.
Object containing the administrative object to manage this server.
The type that this Object can be cast as depends on the type of server.
For example, if the current IServer object represents the CMS server, then the
Object returned by this method can be cast as an ICMSAdmin object.
Other possible values are ICacheServerAdmin, IEventServerAdmin,
IFileServerAdmin, IJobServerAdmin, IPageServerAdmin,
and IWebiServerAdmin.
SDKException - This is thrown if the process is unsuccessfulICMSAdmin,
ICacheServerAdmin,
IPageServerAdmin,
IEventServerAdmin,
IFileServerAdmin,
IJobServerAdmin,
IWebiServerAdmin
public IServerGeneralMetrics getServerGeneralAdmin()
throws SDKException
Returns the IServerGeneralMetrics object that is used to retrieve generic server
metrics.
IServerGeneralMetrics object that is used to retrieve generic server
metrics.
SDKException - This is thrown if the process is unsuccessful.IServerGeneralMetrics
public java.lang.Object getAuditAdmin()
throws SDKException
Returns the administrative object to manage the auditing.
Object that represents the administrative instance.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.Object getSingleSignOnAdmin()
throws SDKException
Returns the administrative object that allows you to manage single sign-on (SSO) authentication.
Object that represents the administrative instance.
SDKException - This is thrown if the process is unsuccessful.ICMSAdmin,
IWebiServerAdmin,
IPageServerAdmin,
IReportAppServerAdmin
public int getCommunicationProtocol()
throws SDKException
int of type CeCommunicationProtocol that indicates the communication protocol being used.
SDKException - This is thrown if the process is unsuccessful.IServerBase.CeCommunicationProtocol
public java.lang.String[] getAdminServiceNames()
throws SDKException
String array of all the administrative service names that are exposed by this server.
String array of all the administrative service names that are exposed by this server.
SDKException - This is thrown if the process is unsuccessful.
public java.lang.Object getServiceAdminObject(java.lang.String serviceName)
throws SDKException
Object instance of the administrative object that supports the requested service.
serviceName - The String that represents the name of an administrative service.
Object instance of the administrative object that supports the requested service.
SDKException - This is thrown if the process is unsuccessful.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||