|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.common.server.session.ServerConfigManagerEJBImpl
public class ServerConfigManagerEJBImpl
This class is responsible for setting/getting the server configuration
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
java.lang.String |
logCtx
|
Constructor Summary | |
---|---|
ServerConfigManagerEJBImpl()
|
Method Summary | |
---|---|
long |
analyzeHqMetricTables(boolean analyzePrevMetricDataTable)
Run an analyze command on both the current measurement data slice and the previous data slice if specified. |
long |
analyzeNonMetricTables()
Run an analyze command on all non metric tables. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
java.util.Properties |
getConfig()
Get the "root" server configuration, that means those keys that have the NULL prefix. |
java.util.Properties |
getConfig(java.lang.String prefix)
Get the server configuration |
java.util.Collection |
getConfigProperties()
Get all the ConfigProperty s |
java.lang.String |
getGUID()
Gets the GUID for this HQ server instance. |
protected javax.naming.InitialContext |
getInitialContext()
|
static org.hyperic.hq.common.shared.ServerConfigManagerLocal |
getOne()
|
void |
setConfig(AuthzSubject subject,
java.util.Properties newProps)
Set the server configuration |
void |
setConfig(AuthzSubject subject,
java.lang.String prefix,
java.util.Properties newProps)
Set the server Configuration |
void |
setSessionContext(javax.ejb.SessionContext c)
|
long |
vacuum()
Run database-specific cleanup routines -- on PostgreSQL we do a VACUUM ANALYZE. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String logCtx
protected org.apache.commons.logging.Log log
Constructor Detail |
---|
public ServerConfigManagerEJBImpl()
Method Detail |
---|
public java.util.Properties getConfig() throws ConfigPropertyException
ConfigPropertyException
public java.util.Properties getConfig(java.lang.String prefix) throws ConfigPropertyException
prefix
- The prefix of the configuration to retrieve.
ConfigPropertyException
public void setConfig(AuthzSubject subject, java.util.Properties newProps) throws ApplicationException, ConfigPropertyException
ConfigPropertyException
- - if the props object is missing
a key that's currently in the database
ApplicationException
public void setConfig(AuthzSubject subject, java.lang.String prefix, java.util.Properties newProps) throws ApplicationException, ConfigPropertyException
prefix
- The config prefix to use when setting properties. The prefix
is used for namespace protection and property scoping.newProps
- The Properties to set.
ConfigPropertyException
- - if the props object is missing
a key that's currently in the database
ApplicationException
public long analyzeNonMetricTables()
public long analyzeHqMetricTables(boolean analyzePrevMetricDataTable)
analyzePrevMetricDataTable
- tells method to analyze previous metric
data table as well as the current.
public long vacuum()
public java.util.Collection getConfigProperties()
ConfigProperty
s
public java.lang.String getGUID()
protected javax.naming.InitialContext getInitialContext()
public static org.hyperic.hq.common.shared.ServerConfigManagerLocal getOne()
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext c)
setSessionContext
in interface javax.ejb.SessionBean
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |