|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.system.SystemManagerBean
public class SystemManagerBean
| Constructor Summary | |
|---|---|
SystemManagerBean()
|
|
| Method Summary | |
|---|---|
long |
analyze(Subject whoami)
Run analyze command on PostgreSQL databases. |
void |
enableHibernateStatistics()
Creates and registers the Hibernate Statistics MBean. |
DatabaseType |
getDatabaseType()
Returns the DatabaseType that corresponds to the database the JON Server uses for its backend. |
java.util.Date |
getExpiration()
|
License |
getLicense()
Retrieves the currently active license. |
ServerVersion |
getServerVersion(Subject subject)
Provides version information of the server processing the request. |
java.util.Properties |
getSystemConfiguration()
Get the server cloud configuration. |
void |
initialize()
|
boolean |
isMonitoringEnabled()
See if monitoring feature is enabled for product. |
void |
loadSystemConfigurationCache()
Grabs the current system configuration from the database and reloads the cache with it. |
void |
loadSystemConfigurationCacheInNewTx()
Grabs the current system configuration from the database and reloads the cache with it. |
void |
reconfigureSystem(Subject whoami)
Performs some reconfiguration things on the server where we are running. |
long |
reindex(Subject whoami)
Reindexes all tables that need to be periodically reindexed. |
void |
reloadConfigCache(javax.ejb.Timer timer)
|
void |
scheduleConfigCacheReloader()
Schedules the internal timer job that periodically refreshes the configuration cache. |
void |
setSystemConfiguration(Subject subject,
java.util.Properties properties,
boolean skipValidation)
Set the server cloud configuration. |
void |
undeployInstaller()
Ensures the installer is no longer deployed. |
void |
updateLicense(Subject subject,
byte[] licenseData)
Update the deployed license file by writing it to disk and reinitializing the LicenseManager static singleton. |
long |
vacuum(Subject whoami)
Run database-specific cleanup routines. |
long |
vacuum(Subject whoami,
java.lang.String[] tableNames)
Run database-specific cleanup routines for the given tables. |
long |
vacuumAppdef(Subject whoami)
Run database-specific cleanup routines on appdef tables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemManagerBean()
| Method Detail |
|---|
@PostConstruct public void initialize()
public void scheduleConfigCacheReloader()
SystemManagerLocal
scheduleConfigCacheReloader in interface SystemManagerLocalpublic void reloadConfigCache(javax.ejb.Timer timer)
public DatabaseType getDatabaseType()
SystemManagerLocalDatabaseType that corresponds to the database the JON Server uses for its backend.
This method is mainly to allow the caller to determine the kind of database in use so as to determine what syntax to use for a particular native query.
getDatabaseType in interface SystemManagerLocalpublic java.util.Properties getSystemConfiguration()
SystemManagerLocal
getSystemConfiguration in interface SystemManagerLocalpublic void loadSystemConfigurationCacheInNewTx()
SystemManagerLocalSystemManagerLocal.getSystemConfiguration()
instead.
loadSystemConfigurationCacheInNewTx in interface SystemManagerLocalpublic void loadSystemConfigurationCache()
SystemManagerLocalSystemManagerLocal.getSystemConfiguration()
instead.
loadSystemConfigurationCache in interface SystemManagerLocal
public void setSystemConfiguration(Subject subject,
java.util.Properties properties,
boolean skipValidation)
SystemManagerLocal
setSystemConfiguration in interface SystemManagerLocalsubject - the user who wants to change the settingsproperties - the new system configuration settingsskipValidation - if true, validation will not be performed on the propertiespublic void enableHibernateStatistics()
SystemManagerLocal
enableHibernateStatistics in interface SystemManagerLocalpublic void reconfigureSystem(Subject whoami)
SystemManagerLocal
reconfigureSystem in interface SystemManagerLocalpublic long analyze(Subject whoami)
SystemManagerLocal
analyze in interface SystemManagerLocalwhoami - the user requesting the operation
public long reindex(Subject whoami)
SystemManagerLocal
reindex in interface SystemManagerLocalwhoami - the user requesting the operation
public long vacuum(Subject whoami)
SystemManagerLocal
vacuum in interface SystemManagerLocalwhoami - the user requesting the operation
public long vacuum(Subject whoami,
java.lang.String[] tableNames)
SystemManagerLocal
vacuum in interface SystemManagerLocalwhoami - the user requesting the operationtableNames - names of specific tables that will be vacuumed.
public long vacuumAppdef(Subject whoami)
SystemManagerLocal
vacuumAppdef in interface SystemManagerLocalwhoami - the user requesting the operation
public void undeployInstaller()
undeployInstaller in interface SystemManagerLocalpublic boolean isMonitoringEnabled()
isMonitoringEnabled in interface SystemManagerLocalpublic License getLicense()
getLicense in interface SystemManagerLocal
public void updateLicense(Subject subject,
byte[] licenseData)
updateLicense in interface SystemManagerLocallicenseData - a byte array of the license datapublic java.util.Date getExpiration()
getExpiration in interface SystemManagerLocal
public ServerVersion getServerVersion(Subject subject)
throws java.lang.Exception
SystemManagerRemote
getServerVersion in interface SystemManagerLocalgetServerVersion in interface SystemManagerRemotejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||