public interface ManagementMBean
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConfigurationFile()
Get the xml based configuration file
|
java.util.logging.Level |
getConsoleLogLevel()
Get the current loglevel for the console
|
java.util.logging.Level |
getFileLogLevel()
get the loglevel on the agent logfile
|
java.lang.String |
getFileLogPath()
Get the file logpath
|
java.lang.Integer |
getNumberOfThreads()
Get number of Threads to use for indexing
|
java.lang.String |
getProperty(java.lang.String key)
Get a selected property from JAG configuration.
|
java.lang.String |
getPublishServerURL()
Get the URL to the Publish Server we want to
publish the indexed data
|
java.util.Date |
getStartDate()
Get a Date object with the time the agent was started.
|
long |
getStartTime()
Get the time (in milliseconds since 1970) when the agent was started
|
java.lang.String[] |
getSubFiles()
Get subfiles
|
java.lang.String |
getSystemEnvProperty(java.lang.String key)
Get the selected Environment property
|
java.lang.String |
getSystemProperty(java.lang.String key)
Get the selected System property
|
java.lang.Boolean |
getUpdateIndexDatabase()
Get the udate database property
|
java.lang.String |
getVersion()
Get the version tag for the agent
|
void |
setConfigurationFile(java.lang.String filename)
Set a new name for the xml based configurationfile
|
void |
setConsoleLogLevel(java.util.logging.Level level)
Set the loglevel for the console
|
void |
setFileLogLevel(java.util.logging.Level level)
set the file log level
|
void |
setFileLogPath(java.lang.String path)
Set the path for the file logging
|
void |
setNumberOfThreads(java.lang.Integer val)
Set number of Threads to use for indexing
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Set a selected property in the JAG configuration.
|
void |
setPublishServerURL(java.lang.String url)
Set the URL to where to publish opengrok indexed data
|
void |
setSubFiles(java.lang.String[] sublist)
Set subfiles
|
void |
setSystemProperty(java.lang.String key,
java.lang.String value)
Set a selected System property
|
void |
setUpdateIndexDatabase(java.lang.Boolean val)
Set update index database property
|
void |
stop()
Stops the agent, so it is not restarted.
|
void stop()
java.lang.String getConfigurationFile()
void setConfigurationFile(java.lang.String filename)
filename
- String name with full path of configurationfilejava.lang.String getPublishServerURL()
void setPublishServerURL(java.lang.String url)
url
- String to server for publishing the opengrok.war filevoid setUpdateIndexDatabase(java.lang.Boolean val)
val
- Boolean true to also run update index databasejava.lang.Boolean getUpdateIndexDatabase()
void setNumberOfThreads(java.lang.Integer val)
java.lang.Integer getNumberOfThreads()
void setSubFiles(java.lang.String[] sublist)
sublist
- java.lang.String[] getSubFiles()
java.lang.String getProperty(java.lang.String key)
void setProperty(java.lang.String key, java.lang.String value)
key
- the String key for the property to be set.
$param value the String value for the property to be set.java.lang.String getSystemProperty(java.lang.String key)
void setSystemProperty(java.lang.String key, java.lang.String value)
key
- the String key for the property to be set.
$param value the String value for the property to be set.java.lang.String getSystemEnvProperty(java.lang.String key)
long getStartTime()
java.util.Date getStartDate()
java.lang.String getVersion()
void setConsoleLogLevel(java.util.logging.Level level)
level
- the level for console loggingjava.util.logging.Level getConsoleLogLevel()
void setFileLogLevel(java.util.logging.Level level)
level
- the level for file loggingjava.util.logging.Level getFileLogLevel()
void setFileLogPath(java.lang.String path) throws java.io.IOException
path
- String path to where to logjava.io.IOException
- if path does not exist or could be created on serverjava.lang.String getFileLogPath()