public interface SystemManagerLocal extends SystemManagerRemote
| 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
getUnmaskedSystemSettings(boolean) returns the system settings with all the passwords in clear text. |
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 |
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 |
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) |
getProductInfo, getServerDetails, getSystemConfiguration, getSystemSettings, setSystemConfiguration, setSystemSettingsvoid scheduleConfigCacheReloader()
void enableHibernateStatistics()
void reconfigureSystem(org.rhq.core.domain.auth.Subject whoami)
long analyze(org.rhq.core.domain.auth.Subject whoami)
whoami - the user requesting the operationlong reindex(org.rhq.core.domain.auth.Subject whoami)
whoami - the user requesting the operationlong vacuum(org.rhq.core.domain.auth.Subject whoami)
whoami - the user requesting the operationlong vacuum(org.rhq.core.domain.auth.Subject whoami,
String[] tableNames)
whoami - the user requesting the operationtableNames - names of specific tables that will be vacuumed.long vacuumAppdef(org.rhq.core.domain.auth.Subject whoami)
whoami - the user requesting the operation@Deprecated void undeployInstaller()
void loadSystemConfigurationCacheInNewTx()
#getSystemConfiguration()
instead.void loadSystemConfigurationCache()
#getSystemConfiguration()
instead.boolean isDebugModeEnabled()
boolean isLoginWithoutRolesEnabled()
boolean isExperimentalFeaturesEnabled()
boolean isLdapAuthorizationEnabled()
void validateSystemConfiguration(org.rhq.core.domain.auth.Subject subject,
Properties properties)
throws InvalidSystemConfigurationException
void dumpSystemInfo(org.rhq.core.domain.auth.Subject subject)
void setStorageClusterSettings(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.composite.SystemSettings settings)
subject - The user who wants to change the settingssettings - The new storage cluster settingsIllegalArgumentException - If the settings contain anything other than storage cluster settings.org.rhq.core.domain.common.composite.SystemSettings getUnmaskedSystemSettings(boolean includePrivateSettings)
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. 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.includePrivateSettings - whether or not to include the private system settings (i.e.
SystemSetting.isPublic() returns false)org.rhq.core.domain.common.composite.SystemSettings getObfuscatedSystemSettings(boolean includePrivateSettings)
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.includePrivateSettings - whether or not to include the private system settings (i.e.
SystemSetting.isPublic() returns false)void deobfuscate(org.rhq.core.domain.common.composite.SystemSettings systemSettings)
void setAnySystemSetting(org.rhq.core.domain.common.composite.SystemSetting setting,
String value)
setting - value - void setAnySystemSettings(org.rhq.core.domain.common.composite.SystemSettings settings,
boolean skipValidation,
boolean ignoreReadOnly)
SystemManagerRemote.setSystemSettings(Subject, SystemSettings) but can
bypass validation and also ignore the readOnly constraint.settings - skipValidation - if true, skip validationignoreReadOnly - if true, ignore the readOnly constraint and set new values if suppliedvalue - Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.