|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.modules.plugins.jbossas7.BaseComponent<T>
org.rhq.modules.plugins.jbossas7.BaseServerComponent<T>
public abstract class BaseServerComponent<T extends ResourceComponent<?>>
Base component for functionality that is common to Standalone Servers and Host Controllers.
| Field Summary |
|---|
| Fields inherited from class org.rhq.modules.plugins.jbossas7.BaseComponent |
|---|
MANAGED_SERVER, testConnection |
| Constructor Summary | |
|---|---|
BaseServerComponent()
|
|
| Method Summary | |
|---|---|
protected void |
collectConfigTrait(org.rhq.core.domain.measurement.MeasurementReport report,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
|
ASConnection |
getASConnection()
Returns the connection that can be used to send management requests to the managed AS& instance. |
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability()
Return availability of this resource |
protected abstract Address |
getEnvironmentAddress()
|
protected abstract Address |
getHostAddress()
|
protected abstract AS7Mode |
getMode()
|
ServerPluginConfiguration |
getServerPluginConfiguration()
|
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
Gather measurement data |
protected OperationResult |
installManagementUser(org.rhq.core.domain.configuration.Configuration parameters,
org.rhq.core.domain.configuration.Configuration pluginConfig)
|
protected OperationResult |
postProcessResult(String name,
Result res)
Do some post processing of the Result - especially the 'shutdown' operation needs a special treatment. |
protected OperationResult |
restartServer(org.rhq.core.domain.configuration.Configuration parameters)
Restart the server by first executing a 'shutdown' operation via the management API and then calling the startServer() method to start it again. |
void |
setConnection(ASConnection connection)
|
void |
start(ResourceContext<T> resourceContext)
Start the resource connection |
protected OperationResult |
startServer()
Start the server by calling the start script defined in the plugin configuration. |
void |
stop()
|
protected boolean |
waitUntilDown(OperationResult tmp)
|
| Methods inherited from class org.rhq.modules.plugins.jbossas7.BaseComponent |
|---|
createResource, deleteResource, deployContent, getAddress, getPath, getServerComponent, getStringValue, invokeOperation, loadResourceConfiguration, readAttribute, readAttribute, readAttribute, runDeploymentMagicOnServer, setPath, updateResourceConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseServerComponent()
| Method Detail |
|---|
public void start(ResourceContext<T> resourceContext)
throws InvalidPluginConfigurationException,
Exception
BaseComponent
start in interface ResourceComponent<T extends ResourceComponent<?>>start in class BaseComponent<T extends ResourceComponent<?>>InvalidPluginConfigurationException
ExceptionResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)public void stop()
stop in interface ResourceComponent<T extends ResourceComponent<?>>stop in class BaseComponent<T extends ResourceComponent<?>>public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
BaseComponent
getAvailability in interface AvailabilityFacetgetAvailability in class BaseComponent<T extends ResourceComponent<?>>AvailabilityFacet.getAvailability()public ServerPluginConfiguration getServerPluginConfiguration()
public ASConnection getASConnection()
AS7Component
getASConnection in interface AS7Component<T extends ResourceComponent<?>>getASConnection in class BaseComponent<T extends ResourceComponent<?>>public void setConnection(ASConnection connection)
setConnection in class BaseComponent<T extends ResourceComponent<?>>@NotNull protected abstract AS7Mode getMode()
protected OperationResult restartServer(org.rhq.core.domain.configuration.Configuration parameters)
throws Exception
startServer() method to start it again.
parameters - Parameters to pass to the (recursive) invocation of #invokeOperation
Exception - If anything goes wrong
protected boolean waitUntilDown(OperationResult tmp)
throws InterruptedException
InterruptedExceptionprotected OperationResult startServer()
protected OperationResult postProcessResult(String name,
Result res)
name - Name of the operationres - Result of the operation vs. AS7
protected OperationResult installManagementUser(org.rhq.core.domain.configuration.Configuration parameters,
org.rhq.core.domain.configuration.Configuration pluginConfig)
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
throws Exception
BaseComponent
getValues in interface MeasurementFacetgetValues in class BaseComponent<T extends ResourceComponent<?>>ExceptionMeasurementFacet.getValues(org.rhq.core.domain.measurement.MeasurementReport, java.util.Set)@NotNull protected abstract Address getEnvironmentAddress()
@NotNull protected abstract Address getHostAddress()
protected void collectConfigTrait(org.rhq.core.domain.measurement.MeasurementReport report,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||