|
||||||||||
| 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>
T - the type of the component's parent resource componentpublic class BaseComponent<T extends ResourceComponent<?>>
The base class for all AS7 resource components.
| Field Summary | |
|---|---|
static String |
MANAGED_SERVER
|
protected ASConnection |
testConnection
|
| Constructor Summary | |
|---|---|
BaseComponent()
|
|
| Method Summary | ||
|---|---|---|
CreateResourceReport |
createResource(CreateResourceReport report)
|
|
void |
deleteResource()
|
|
protected CreateResourceReport |
deployContent(CreateResourceReport report)
Deploy content to the remote server - this is one half of #createResource |
|
Address |
getAddress()
|
|
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 |
|
String |
getPath()
Returns a path in the form (key=value)?(,key=value)* that can be used to construct an address to this component's underlying managed service. |
|
BaseServerComponent |
getServerComponent()
|
|
protected String |
getStringValue(Object val)
|
|
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
Gather measurement data |
|
OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters)
|
|
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration()
|
|
protected String |
readAttribute(Address address,
String name)
|
|
protected
|
readAttribute(Address address,
String name,
Class<T> resultType)
|
|
protected String |
readAttribute(String name)
|
|
CreateResourceReport |
runDeploymentMagicOnServer(CreateResourceReport report,
String runtimeName,
String deploymentName,
String hash)
Do the actual fumbling with the domain api to deploy the uploaded content |
|
void |
setConnection(ASConnection connection)
|
|
void |
setPath(String path)
|
|
void |
start(ResourceContext<T> context)
Start the resource connection |
|
void |
stop()
|
|
void |
updateResourceConfiguration(ConfigurationUpdateReport report)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MANAGED_SERVER
protected ASConnection testConnection
| Constructor Detail |
|---|
public BaseComponent()
| Method Detail |
|---|
public void start(ResourceContext<T> context)
throws InvalidPluginConfigurationException,
Exception
start in interface ResourceComponent<T extends ResourceComponent<?>>InvalidPluginConfigurationException
ExceptionResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)public void stop()
stop in interface ResourceComponent<T extends ResourceComponent<?>>public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetAvailabilityFacet.getAvailability()public BaseServerComponent getServerComponent()
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
throws Exception
getValues in interface MeasurementFacetExceptionMeasurementFacet.getValues(org.rhq.core.domain.measurement.MeasurementReport, java.util.Set)protected String getStringValue(Object val)
public ASConnection getASConnection()
AS7Component
getASConnection in interface AS7Component<T extends ResourceComponent<?>>public String getPath()
AS7Component
getPath in interface AS7Component<T extends ResourceComponent<?>>
public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
throws Exception
loadResourceConfiguration in interface ConfigurationFacetExceptionpublic void updateResourceConfiguration(ConfigurationUpdateReport report)
updateResourceConfiguration in interface ConfigurationFacet
public void deleteResource()
throws Exception
deleteResource in interface DeleteResourceFacetExceptionpublic CreateResourceReport createResource(CreateResourceReport report)
createResource in interface CreateChildResourceFacetprotected CreateResourceReport deployContent(CreateResourceReport report)
report - Create resource report that tells us what to do
public CreateResourceReport runDeploymentMagicOnServer(CreateResourceReport report,
String runtimeName,
String deploymentName,
String hash)
report - CreateResourceReport to report the resultruntimeName - File name to use as runtime namedeploymentName - Name of the deploymenthash - Hash of the content bytes
public OperationResult invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters)
throws InterruptedException,
Exception
invokeOperation in interface OperationFacetInterruptedException
Exceptionpublic void setConnection(ASConnection connection)
public void setPath(String path)
public Address getAddress()
protected String readAttribute(String name)
throws Exception
Exception
protected String readAttribute(Address address,
String name)
throws Exception
Exception
protected <T> T readAttribute(Address address,
String name,
Class<T> resultType)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||