java.lang.Object | |
↳ | com.microstrategy.web.objects.admin.serverconfig.ServerControlSource |
The ServerControlSource interface represents the entry point for the Server Control-related functionality. It contains a static method to obtain a new instance, which is the entry point for the API. Note that after using the API, it is recommended, though not required, to call the release method. This will cause the underlying C++ object to be released; this will increase the efficiency of the API's memory usage, as otherwise the C++ object will not be cleaned up until the finalizer of this object is called.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ServerControlSource() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
SetNetworkClientReceiveTimeoutInMilliSeconds(int timeout)
Sets the network client receive timeout, in milliseconds, to use for the connect call.
| ||||||||||
abstract ServerMachine |
connect(String machineName)
This method will connect to the given remote machine's server control facilities.
| ||||||||||
abstract ServerMachine |
connectLocal()
This method will connect to the local machine's server control facilities.
| ||||||||||
static ServerControlSource |
getInstance()
Returns a new instance of the ServerControlSource class.
| ||||||||||
abstract SimpleList |
getLocalNetworkServers(int serverType)
Returns a list of local network servers which contain the specified type of MicroStrategy
product on it.
| ||||||||||
abstract SimpleList |
getLocalNetworkServers()
Returns a list of local network servers which contain one or more MicroStrategy
products on them.
| ||||||||||
abstract Locale |
getLocale()
Returns the current locale of the API.
| ||||||||||
abstract int |
getNetworkTimeout()
Returns the network timeout, in seconds, which will be used for the getLocalNetworkServers call.
| ||||||||||
abstract ServerMachine |
getServerMachine(String stateXML)
Returns a
ServerMachine object populated from the given state XML. | ||||||||||
abstract void |
purgeServerStatistics(WebIServerSession session, Date fromDate, Date toDate, int timeout, String projectName)
This method will attempt to purge the statistics of a certain period collected on server.
| ||||||||||
abstract void |
purgeServerStatistics(WebIServerSession session, Date fromDate, Date toDate, int timeout)
This method will attempt to purge the statistics of a certain period collected on server.
| ||||||||||
abstract void |
refreshDiagnosticsLoggingSettings(WebIServerSession session)
This method will attempt to refresh the diagnostics logging settings on the server
which the
WebIServerSession is created on. | ||||||||||
abstract void |
refreshPerformanceLoggingSettings(WebIServerSession session)
This method will attempt to refresh the performance logging settings on the server
which the
WebIServerSession is created on. | ||||||||||
abstract void |
release()
This method will release the underlying C++ API's memory structure.
| ||||||||||
abstract void |
setLocale(Locale locale)
Sets the locale of the error messages thrown by the API.
| ||||||||||
abstract void |
setNetworkTimeout(int timeoutInSecs)
Sets the network timeout, in seconds, to use for the getLocalNetworkServers call.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sets the network client receive timeout, in milliseconds, to use for the connect call.
timeout | The timeout to use for the connect call, in milliseconds. |
---|
ServerConfigException | Thrown if an error occurs. |
---|---|
ServerControlException |
This method will connect to the given remote machine's server control facilities.
machineName | The name of the machine to connect to. |
---|
ServerMachine
object referring to the local machine.ServerConfigException | Thrown if an error occurs. |
---|
This method will connect to the local machine's server control facilities.
ServerMachine
object referring to the local machine.ServerConfigException | Thrown if an error occurs. |
---|
Returns a new instance of the ServerControlSource class.
Returns a list of local network servers which contain the specified type of MicroStrategy product on it.
serverType | The type of server to search for, from EnumServerTypes . |
---|
SimpleList
object containing the
names of the local network servers the API can find.ServerConfigException | Thrown if an error occurs when performing the operation. |
---|
Returns a list of local network servers which contain one or more MicroStrategy products on them.
SimpleList
object containing the
names of the local network servers the API can find.ServerConfigException | Thrown if an error occurs when performing the operation. |
---|
Returns the current locale of the API.
Returns the network timeout, in seconds, which will be used for the getLocalNetworkServers call.
ServerConfigException | Thrown if an error occurs. |
---|
Returns a ServerMachine
object populated from the given state XML.
stateXML | The state XML for the object. |
---|
ServerMachine
object populated from the given state XML.ServerConfigException | Thrown if an error occurs. |
---|
This method will attempt to purge the statistics of a certain period collected on server.
session | WebIServerSession The session to user to purge the statistics. |
---|---|
fromDate | Date The start date of the period to purge. |
toDate | Date The end date of the period to purge. |
timeout | int maximum time (in second) allowed for the purging process. |
projectName | String The Project Name whose statistics will be purged. |
ServerConfigException | Thrown if the purge failed. |
---|---|
WebObjectsException | Thrown if there is a problem with the session passed in. |
This method will attempt to purge the statistics of a certain period collected on server.
session | WebIServerSession The session to user to purge the statistics. |
---|---|
fromDate | Date The start date of the period to purge. |
toDate | Date The end date of the period to purge. |
timeout | int maximum time (in second) allowed for the purging process. |
ServerConfigException | Thrown if the purge failed. |
---|---|
WebObjectsException | Thrown if there is a problem with the session passed in. |
This method will attempt to refresh the diagnostics logging settings on the server
which the WebIServerSession
is created on. This method will cause those
settings to be re-read from the registry and applied to the server instance without restarting
the server.
session | The session to use to refresh the performance logging settings. |
---|
ServerConfigException | Thrown if the settings could not be refreshed. |
---|---|
WebObjectsException | Thrown if there is a problem with the session passed in. |
This method will attempt to refresh the performance logging settings on the server
which the WebIServerSession
is created on. This method will cause those
settings to be re-read from the registry and applied to the server instance without restarting
the server.
session | The session to use to refresh the performance logging settings. |
---|
ServerConfigException | Thrown if the settings could not be refreshed. |
---|---|
WebObjectsException | Thrown if there is a problem with the session passed in. |
This method will release the underlying C++ API's memory structure. Calling this method is recommended when this object and all objects obtained from it are no longer being used. This method will clean up the C++ objects that this API communicates with. After calling this method, most methods on this interface or any objects obtained from this interface will fail. Also, note that it is not strictly necessary to call this method, as the C++ pointer will be cleaned up upon finalization as well.
Sets the locale of the error messages thrown by the API.
locale | The java.lang.Locale of the user. |
---|
ServerConfigException | Thrown if the locale cannot be set. |
---|
Sets the network timeout, in seconds, to use for the getLocalNetworkServers call.
timeoutInSecs | The timeout to use for the getLocalNetworkServers call, in seconds. |
---|
ServerConfigException | Thrown if an error occurs. |
---|