public class SystemManagerBean extends Object implements SystemManagerLocal, SystemManagerRemote
| Constructor and Description |
|---|
SystemManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
long |
analyze(org.rhq.core.domain.auth.Subject whoami)
Run analyze command on PostgreSQL databases.
|
void |
deobfuscate(org.rhq.core.domain.common.composite.SystemSettings systemSettings) |
void |
dumpSystemInfo(org.rhq.core.domain.auth.Subject subject) |
void |
enableHibernateStatistics()
Creates and registers the Hibernate Statistics MBean.
|
org.rhq.core.domain.common.composite.SystemSettings |
getObfuscatedSystemSettings(boolean includePrivateSettings)
The
SystemManagerLocal.getUnmaskedSystemSettings(boolean) returns the system settings with all the passwords in clear text. |
org.rhq.core.domain.common.ProductInfo |
getProductInfo(org.rhq.core.domain.auth.Subject subject)
Provides product information suitable for "About" details.
|
org.rhq.core.domain.common.ServerDetails |
getServerDetails(org.rhq.core.domain.auth.Subject subject)
Provides details (such as product version) of the server processing the request.
|
Properties |
getSystemConfiguration(org.rhq.core.domain.auth.Subject subject)
Deprecated.
|
org.rhq.core.domain.common.composite.SystemSettings |
getSystemSettings(org.rhq.core.domain.auth.Subject subject)
Get the server cloud configuration.
|
org.rhq.core.domain.common.composite.SystemSettings |
getUnmaskedSystemSettings(boolean includePrivateSettings)
The
SystemManagerRemote.getSystemSettings(org.rhq.core.domain.auth.Subject) returns the system settings
with all the password fields masked so that remote clients cannot get hold of the passwords in it. |
boolean |
isDebugModeEnabled() |
boolean |
isExperimentalFeaturesEnabled() |
boolean |
isLdapAuthorizationEnabled() |
boolean |
isLoginWithoutRolesEnabled() |
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(org.rhq.core.domain.auth.Subject whoami)
Performs some reconfiguration things on the server where we are running.
|
long |
reindex(org.rhq.core.domain.auth.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 |
setAnySystemSetting(org.rhq.core.domain.common.composite.SystemSetting setting,
String value)
Internal use only.
|
void |
setAnySystemSettings(org.rhq.core.domain.common.composite.SystemSettings settings,
boolean skipValidation,
boolean ignoreReadOnly)
Internal use only.
|
void |
setStorageClusterSettings(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.composite.SystemSettings settings)
The storage cluster settings are stored as read-only system settings.
|
void |
setSystemConfiguration(org.rhq.core.domain.auth.Subject subject,
Properties properties,
boolean skipValidation)
Deprecated.
|
void |
setSystemSettings(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.composite.SystemSettings settings)
Set the server cloud configuration.
|
void |
undeployInstaller()
Deprecated.
|
long |
vacuum(org.rhq.core.domain.auth.Subject whoami)
Run database-specific cleanup routines.
|
long |
vacuum(org.rhq.core.domain.auth.Subject whoami,
String[] tableNames)
Run database-specific cleanup routines for the given tables.
|
long |
vacuumAppdef(org.rhq.core.domain.auth.Subject whoami)
Run database-specific cleanup routines on appdef tables.
|
void |
validateSystemConfiguration(org.rhq.core.domain.auth.Subject subject,
Properties properties) |
public void scheduleConfigCacheReloader()
SystemManagerLocalscheduleConfigCacheReloader in interface SystemManagerLocalpublic void reloadConfigCache(javax.ejb.Timer timer)
@Deprecated public Properties getSystemConfiguration(org.rhq.core.domain.auth.Subject subject)
getSystemConfiguration in interface SystemManagerRemotepublic org.rhq.core.domain.common.composite.SystemSettings getSystemSettings(org.rhq.core.domain.auth.Subject subject)
SystemManagerRemotePropertySimple.MASKED_VALUE.getSystemSettings in interface SystemManagerRemotesubject - user making the requestpublic org.rhq.core.domain.common.composite.SystemSettings getUnmaskedSystemSettings(boolean includePrivateSettings)
SystemManagerLocalSystemManagerRemote.getSystemSettings(org.rhq.core.domain.auth.Subject) returns the system settings
with all the password fields masked so that remote clients cannot get hold of the passwords in it. It also excludes
non-public system settings from the results.
If the password or a non-public setting is needed inside some SLSB, use this method to obtain the system settings
with all the fields and the passwords in clear text.
Note that the returned instance MUST NOT leak out of the RHQ server.getUnmaskedSystemSettings in interface SystemManagerLocalincludePrivateSettings - whether or not to include the private system settings (i.e.
SystemSetting.isPublic() returns false)public void deobfuscate(org.rhq.core.domain.common.composite.SystemSettings systemSettings)
deobfuscate in interface SystemManagerLocalpublic org.rhq.core.domain.common.composite.SystemSettings getObfuscatedSystemSettings(boolean includePrivateSettings)
SystemManagerLocalSystemManagerLocal.getUnmaskedSystemSettings(boolean) returns the system settings with all the passwords in clear text.
If you want to obtain an instance where the passwords would neither be clear text, nor would they be masked away,
you can use this method, that will return the system settings with the passwords obfuscated.
Note that such instance CANNOT be passed to SystemManagerRemote.setSystemSettings(org.rhq.core.domain.auth.Subject,
org.rhq.core.domain.common.composite.SystemSettings)!!! Storing the obfuscated passwords would obfuscate them
again!!! To be able to persist an instance, you first need to
deobfuscate it.
Note that the returned instance MUST NOT leak out of the RHQ server. It contains the passwords in a decodable
form and also non-public system settings.getObfuscatedSystemSettings in interface SystemManagerLocalincludePrivateSettings - whether or not to include the private system settings (i.e.
SystemSetting.isPublic() returns false)public void setSystemSettings(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.composite.SystemSettings settings)
SystemManagerRemotesetSystemSettings in interface SystemManagerRemotesubject - the user who wants to change the settingssettings - the new system configuration settingspublic void setAnySystemSetting(org.rhq.core.domain.common.composite.SystemSetting setting,
String value)
SystemManagerLocalsetAnySystemSetting in interface SystemManagerLocalpublic void setStorageClusterSettings(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.composite.SystemSettings settings)
SystemManagerLocalsetStorageClusterSettings in interface SystemManagerLocalsubject - The user who wants to change the settingssettings - The new storage cluster settingspublic void setAnySystemSettings(org.rhq.core.domain.common.composite.SystemSettings settings,
boolean skipValidation,
boolean ignoreReadOnly)
SystemManagerLocalSystemManagerRemote.setSystemSettings(Subject, SystemSettings) but can
bypass validation and also ignore the readOnly constraint.setAnySystemSettings in interface SystemManagerLocalskipValidation - if true, skip validationignoreReadOnly - if true, ignore the readOnly constraint and set new values if suppliedpublic void loadSystemConfigurationCacheInNewTx()
SystemManagerLocal#getSystemConfiguration()
instead.loadSystemConfigurationCacheInNewTx in interface SystemManagerLocalpublic void loadSystemConfigurationCache()
SystemManagerLocal#getSystemConfiguration()
instead.loadSystemConfigurationCache in interface SystemManagerLocal@Deprecated public void setSystemConfiguration(org.rhq.core.domain.auth.Subject subject, Properties properties, boolean skipValidation) throws Exception
setSystemConfiguration in interface SystemManagerRemoteExceptionpublic void validateSystemConfiguration(org.rhq.core.domain.auth.Subject subject,
Properties properties)
throws InvalidSystemConfigurationException
validateSystemConfiguration in interface SystemManagerLocalInvalidSystemConfigurationExceptionpublic void enableHibernateStatistics()
SystemManagerLocalenableHibernateStatistics in interface SystemManagerLocalpublic void reconfigureSystem(org.rhq.core.domain.auth.Subject whoami)
SystemManagerLocalreconfigureSystem in interface SystemManagerLocalpublic long analyze(org.rhq.core.domain.auth.Subject whoami)
SystemManagerLocalanalyze in interface SystemManagerLocalwhoami - the user requesting the operationpublic long reindex(org.rhq.core.domain.auth.Subject whoami)
SystemManagerLocalreindex in interface SystemManagerLocalwhoami - the user requesting the operationpublic long vacuum(org.rhq.core.domain.auth.Subject whoami)
SystemManagerLocalvacuum in interface SystemManagerLocalwhoami - the user requesting the operationpublic long vacuum(org.rhq.core.domain.auth.Subject whoami,
String[] tableNames)
SystemManagerLocalvacuum in interface SystemManagerLocalwhoami - the user requesting the operationtableNames - names of specific tables that will be vacuumed.public long vacuumAppdef(org.rhq.core.domain.auth.Subject whoami)
SystemManagerLocalvacuumAppdef in interface SystemManagerLocalwhoami - the user requesting the operation@Deprecated public void undeployInstaller()
undeployInstaller in interface SystemManagerLocalpublic boolean isDebugModeEnabled()
isDebugModeEnabled in interface SystemManagerLocalpublic boolean isLoginWithoutRolesEnabled()
isLoginWithoutRolesEnabled in interface SystemManagerLocalpublic boolean isExperimentalFeaturesEnabled()
isExperimentalFeaturesEnabled in interface SystemManagerLocalpublic boolean isLdapAuthorizationEnabled()
isLdapAuthorizationEnabled in interface SystemManagerLocalpublic org.rhq.core.domain.common.ServerDetails getServerDetails(org.rhq.core.domain.auth.Subject subject)
SystemManagerRemotegetServerDetails in interface SystemManagerRemotesubject - user making the requestpublic org.rhq.core.domain.common.ProductInfo getProductInfo(org.rhq.core.domain.auth.Subject subject)
SystemManagerRemotegetProductInfo in interface SystemManagerRemotesubject - user making the requestpublic void dumpSystemInfo(org.rhq.core.domain.auth.Subject subject)
dumpSystemInfo in interface SystemManagerLocalCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.