@Component @Named(value="officemanager") @Singleton public class OfficeServerScriptService extends Object implements org.xwiki.script.service.ScriptService
Modifier and Type | Field and Description |
---|---|
static String |
OFFICE_MANAGER_ERROR
The key used to place any error messages while trying to control the office server instance.
|
Constructor and Description |
---|
OfficeServerScriptService() |
Modifier and Type | Method and Description |
---|---|
String |
displayServerState()
Display the translated state of the server.
|
OfficeServerConfiguration |
getConfig() |
String |
getLastErrorMessage() |
String |
getServerState()
Deprecated.
Since 12.3 this method shouldn't be used anymore: if the goal is to know if the server is connected
or not, then
isConnected() should be used instead. If the goal is to display the state of
the server then displayServerState() should be used. |
boolean |
isConnected()
Determine if the server is connected.
|
boolean |
startServer()
Tries to start the office server process.
|
boolean |
stopServer()
Tries to stop the office server process.
|
public static final String OFFICE_MANAGER_ERROR
public boolean startServer()
public boolean stopServer()
@Unstable public boolean isConnected()
true
iff the server state is connected.@Unstable public String displayServerState()
isConnected()
should be used.@Deprecated public String getServerState()
isConnected()
should be used instead. If the goal is to display the state of
the server then displayServerState()
should be used.public OfficeServerConfiguration getConfig()
public String getLastErrorMessage()
Copyright © 2004–2021 XWiki. All rights reserved.