org.rhq.enterprise.server.test
Class CoreTestBean

java.lang.Object
  extended by org.rhq.enterprise.server.test.CoreTestBean
All Implemented Interfaces:
CoreTestLocal

public class CoreTestBean
extends Object
implements CoreTestLocal

An EJB for testing the core subsystem - used by TestControl.jsp.


Constructor Summary
CoreTestBean()
           
 
Method Summary
 void enableHibernateStatistics()
           
 InputStream getFileContents(String file)
           
 Properties getLatestConfiguration()
           
 List<org.rhq.core.domain.plugin.Plugin> getLatestPlugins()
           
 InputStream getPluginArchive(String pluginName)
           
 org.rhq.core.domain.resource.Agent getTestAgent()
           
 boolean isTestAgentReported()
           
 AgentRegistrationResults registerTestAgent()
          Build a fake agent and register it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreTestBean

public CoreTestBean()
Method Detail

isTestAgentReported

public boolean isTestAgentReported()
Specified by:
isTestAgentReported in interface CoreTestLocal

enableHibernateStatistics

public void enableHibernateStatistics()
Specified by:
enableHibernateStatistics in interface CoreTestLocal

registerTestAgent

public AgentRegistrationResults registerTestAgent()
Build a fake agent and register it

Specified by:
registerTestAgent in interface CoreTestLocal

getLatestConfiguration

public Properties getLatestConfiguration()

getLatestPlugins

public List<org.rhq.core.domain.plugin.Plugin> getLatestPlugins()

getPluginArchive

public InputStream getPluginArchive(String pluginName)

getFileContents

public InputStream getFileContents(String file)

getTestAgent

public org.rhq.core.domain.resource.Agent getTestAgent()
Specified by:
getTestAgent in interface CoreTestLocal


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.