|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IServerBase
This interface represents a server in a SAP BusinessObjects Enterprise deployment. It provides methods for managing server state and retrieving information about the server including hosted services and general server metrics. Management of the server state includes starting, stopping, restarting, enabling, and disabling the server.
| Nested Class Summary | |
|---|---|
static interface |
IServerBase.CeCommunicationProtocol
The communication protocol the server is using. |
| Field Summary | |
|---|---|
static int |
CE_SERVER_RESTART
Specifies that the server should be restarted. |
static int |
CE_SERVER_START
Specifies that the server should be started. |
static int |
CE_SERVER_STOP
Specifies that the server should be stopped. |
static java.lang.String |
KIND
The Kind used to query for Server objects. |
static java.lang.String |
PROGID
The ProgID for the Server Class. |
static int |
TYPEID
The TypeId for Server objects. |
| Method Summary | |
|---|---|
java.lang.String[] |
getAdminServiceNames()
Deprecated. As of version 12.0. |
java.lang.Object |
getAuditAdmin()
Deprecated. As of version 12.0. |
boolean |
getAutoBoot()
Returns whether this server starts automatically when the Server Intelligence Agent is started. |
int |
getCommunicationProtocol()
Returns the communication protocol used by the server. |
IConfiguredContainer |
getContainer()
Returns the service container associated with this server. |
java.lang.String |
getCurrentCommandLine()
Returns the command line that was used to launch the executable binary file for this server. |
boolean |
getCurrentDisabledState()
Returns whether the server is currently disabled. |
int |
getEnterpriseNodeID()
Returns the ID of the enterprise node associated with this server. |
ExpectedRunState |
getExpectedRunState()
Returns the expected run state of the server. |
java.util.Date |
getExpectedRunStateTimeStamp()
Returns the date and time of when the expected run state was last updated. |
java.lang.String |
getFriendlyName()
Returns the BusinessObjects Enterprise friendly name of the server. |
IConfiguredServices |
getHostedServices()
Returns a collection containing the service configuration information for each service that is hosted on this server. |
IServerMetrics |
getMetrics()
Returns the metrics for this server and the services that it hosts. |
java.lang.String |
getName()
Returns the server name. |
int |
getPID()
Returns the process ID of this server process. |
boolean |
getRequiresRestart()
Returns whether this server requires a restart. |
java.lang.String |
getServerAbbreviation()
Returns the abbreviated name for this server as used in log file names, etc. |
java.lang.Object |
getServerAdmin()
Deprecated. As of version 12.0. |
java.lang.String |
getServerDescriptor()
Internal use Only |
IServerDestinations |
getServerDestinations()
Returns an interface to the server destinations that exist for this server, or null if this server does not host a Destination Scheduling Service. |
IServerGeneralMetrics |
getServerGeneralAdmin()
Deprecated. As of version 12.0. |
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 host name of the machine where the server is running. |
java.lang.Object |
getServiceAdminObject(java.lang.String serviceName)
Deprecated. As of version 12.0. |
java.lang.String |
getSIAHostname()
Returns the host name of the machine that is hosting the Server Intelligence Agent that manages this server. |
java.lang.Object |
getSingleSignOnAdmin()
Deprecated. As of version 12.0. |
ServerState |
getState()
Returns whether the server is running, stopped, or waiting for resources. |
IStatusInfo |
getStatusInfo()
For internal use only. |
boolean |
isAlive()
Returns whether the server is alive (running). |
boolean |
isDisabled()
Returns whether the server is disabled. |
boolean |
isExclusive()
Returns true if the current server is exclusive. |
boolean |
manageServer(int operation,
int timeout,
java.lang.String username,
java.lang.String password)
Deprecated. As of version 12.0, replaced by IServerBase.setExpectedRunState(com.crystaldecisions.sdk.plugin.desktop.server.ExpectedRunState). |
void |
setAutoBoot(boolean value)
Sets whether this server starts automatically when the Server Intelligence Agent is started. |
IConfiguredContainer |
setContainer(int id)
Specifies the service container associated with this server. |
void |
setDisabled(boolean b)
Sets whether the server is disabled. |
void |
setEnterpriseNode(int id)
Sets the ID of the enterprise node associated with this server. |
void |
setExclusive(boolean exclusive)
Sets the current server to exclusive. |
void |
setExpectedRunState(ExpectedRunState state)
Sets the expected run state of the server (started , stopped, disabled, etc.). |
void |
setFriendlyName(java.lang.String friendlyName)
Sets the BusinessObjects Enterprise friendly name of the server. |
void |
setServerAbbreviation(java.lang.String abbreviation)
For internal use only. |
void |
setServerKind(java.lang.String kind)
For internal use only. |
| Field Detail |
|---|
static final int TYPEID
The TypeId for Server objects.
static final java.lang.String KIND
The Kind used to query for Server objects.
static final java.lang.String PROGID
The ProgID for the Server Class.
| ProgID | CrystalEnterprise.Server |
| Query Category | CI_SYSTEMOBJECTS |
| Associated Interface | com.crystaldecisions.sdk.plugin.desktop.server.IServer |
Query syntax:
SELECT | |
SI_FRIENDLY_NAME, SI_NAME, SI_SERVER_DESCRIPTOR, SI_SERVER_ID, SI_SERVER_IOR, SI_SERVER_IS_ALIVE, SI_SERVER_KIND, SI_SERVER_NAME | |
FROM | |
CI_SYSTEMOBJECTS | |
WHERE | |
SI_PROGID='CrystalEnterprise.Server' | |
The CePropertyIDs named in the SELECT statement are those that are required to access data through the IServer interface. For more information on their associations with the interface's methods, see IServer
static final int CE_SERVER_START
static final int CE_SERVER_STOP
static final int CE_SERVER_RESTART
| Method Detail |
|---|
java.lang.String getServerName()
throws SDKException
To read this value, this object must contain the SI_SERVER_NAME property.
SDKException - if the process is unsuccessful.
java.lang.String getServerDescriptor()
throws SDKException
SDKException
java.lang.String getServerID()
throws SDKException
To read this value, this object must contain the SI_SERVER_ID property.
String containing the Nameserver registered server ID.
SDKException - if the process is unsuccessful.
java.lang.String getServerKind()
throws SDKException
To read this value, this object must contain the SI_SERVER_KIND property.
String containing the registered server kind.
SDKException - if the process is unsuccessful.
java.lang.String getServerAbbreviation()
throws SDKException
To read this value, this object must contain the SI_SERVER_ABBREVIATION and
SI_SERVER_KIND properties.
String containing the server abbreviation.
SDKException - if the process is unsuccessful.
java.lang.String getServerIOR()
throws SDKException
To read this value, this object must contain the SI_SERVER_IOR property.
String containing the server's unique indentifier.
SDKException - if the process is unsuccessful.
java.lang.String getFriendlyName()
throws SDKException
To read this value, this object must contain the SI_FRIENDLY_NAME property.
SDKException - if the process is unsuccessful.void setFriendlyName(java.lang.String friendlyName)
friendlyName - the friendly name of the server.void setServerKind(java.lang.String kind)
void setServerAbbreviation(java.lang.String abbreviation)
java.lang.String getName()
throws SDKException
To read this value, this object must contain the SI_NAME property.
SDKException - if the process is unsuccessful.
boolean isDisabled()
throws SDKException
IServerBase.getCurrentDisabledState() returns false.
To read this value, this object must contain the SI_DISABLED property.
SDKException - if the process is unsuccessful.IServerBase.getCurrentDisabledState()
void setDisabled(boolean b)
throws SDKException
b - true to disable the server or false to enable it.
SDKException - if the process is unsuccessful.boolean getCurrentDisabledState()
IServerBase.isDisabled() returns true and getCurrentDisabledState
returns false.
To read this value, this object must contain the SI_CURRENT_DISABLED_STATE property.
IServerBase.isDisabled()
boolean isAlive()
throws SDKException
To read this value, this object must contain the SI_SERVER_IS_ALIVE property.
SDKException - if the process is unsuccessful.
boolean manageServer(int operation,
int timeout,
java.lang.String username,
java.lang.String password)
throws SDKException
IServerBase.setExpectedRunState(com.crystaldecisions.sdk.plugin.desktop.server.ExpectedRunState).
operation - The requested state of the server. This includes running,
stopped, and restart. This value should be one of the constants
CE_SERVER_START, CE_SERVER_STOP, or CE_SERVER_RESTART.timeout - Ignored.username - Ignored.password - Ignored.
java.lang.IllegalArgumentException - if the operation argument is invalid.
SDKException
java.lang.Object getServerAdmin()
throws SDKException
IServer object represents the CMS server, then the
Object must be cast to ICMSAdmin.
Other possible values are ICacheServerAdmin, IEventServerAdmin,
IFileServerAdmin, IJobServerAdmin, IPageServerAdmin,
and IWebiServerAdmin.
SDKException - if the process is unsuccessfulICMSAdmin,
ICacheServerAdmin,
IPageServerAdmin,
IEventServerAdmin,
IFileServerAdmin,
IJobServerAdmin,
IWebiServerAdmin
IServerGeneralMetrics getServerGeneralAdmin()
throws SDKException
SDKException - if invoked on an Adaptive Processing Server or if the process is unsuccessful.IServerGeneralMetrics
java.lang.Object getAuditAdmin()
throws SDKException
SDKException - if the process is unsuccessful.
java.lang.Object getSingleSignOnAdmin()
throws SDKException
SDKException - if the process is unsuccessful.ICMSAdmin,
IWebiServerAdmin,
IPageServerAdmin,
IReportAppServerAdmin
int getCommunicationProtocol()
throws SDKException
int of type CeCommunicationProtocol indicating the protocol being used
SDKException - if the process is unsuccessful.IServerBase.CeCommunicationProtocol
java.lang.String[] getAdminServiceNames()
throws SDKException
SDKException - if the process is unsuccessful.IServerBase.getServiceAdminObject(java.lang.String)
java.lang.Object getServiceAdminObject(java.lang.String serviceName)
throws SDKException
serviceName - the name of the administrative service.
SDKException - if the process is unsuccessful.IServerBase.getAdminServiceNames()ExpectedRunState getExpectedRunState()
To read this value, this object must contain the SI_EXPECTED_RUN_STATE property.
IServerBase.getState()void setExpectedRunState(ExpectedRunState state)
state - The run state for the server.
java.util.Date getExpectedRunStateTimeStamp()
throws SDKException
Returns the date and time of when the expected run state was last updated.
Date identifying the last time the expected run state was updated.
SDKExceptionServerState getState()
IServerBase.getExpectedRunState()boolean getAutoBoot()
To read this value, this object must contain the SI_AUTOBOOT property.
void setAutoBoot(boolean value)
value - true to turn on autoboot, false otherwise.
IConfiguredServices getHostedServices()
throws SDKException
To read this value, this object must contain the SI_HOSTED_SERVICES property.
SDKException - if the process is unsuccessful.
IConfiguredContainer setContainer(int id)
throws SDKException
id - The service container ID
SDKException - if the process is unsuccessful.
IConfiguredContainer getContainer()
throws SDKException
SDKException - if the process is unsuccessful.int getEnterpriseNodeID()
IEnterpriseNodevoid setEnterpriseNode(int id)
id - The ID of the enterprise nodeIEnterpriseNodeint getPID()
IServerDestinations getServerDestinations()
throws SDKException
SDKException - if the process is unsuccessful.IStatusInfo getStatusInfo()
IServerMetrics getMetrics()
throws SDKException
SDKException - if the process is unsuccessful.boolean getRequiresRestart()
java.lang.String getCurrentCommandLine()
java.lang.String getSIAHostname()
boolean isExclusive()
void setExclusive(boolean exclusive)
exclusive - Boolean representing if the server is exclusive
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||