|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.rhq.plugin.Facet
public abstract class Facet
This class implements required RHQ interfaces and provides common logic used by all MetaMatrix components.
Field Summary | |
---|---|
protected String |
componentType
|
protected String |
deploymentName
The name of the ManagedDeployment (e.g.: C:/opt/jboss-5.0.0.GA/server/default/deploy/foo.vdb). |
protected boolean |
isAvailable
|
protected Log |
LOG
|
protected String |
name
|
protected org.rhq.core.domain.configuration.Configuration |
resourceConfiguration
Represents the resource configuration of the custom product being managed. |
protected org.rhq.core.pluginapi.inventory.ResourceContext<?> |
resourceContext
All AMPS plugins are stateful - this context contains information that your resource component can use when performing its processing. |
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent |
---|
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP |
Constructor Summary | |
---|---|
Facet()
|
Method Summary | |
---|---|
String |
componentType()
|
void |
deleteResource()
|
org.rhq.core.domain.content.transfer.DeployPackagesResponse |
deployPackages(Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages,
org.rhq.core.pluginapi.content.ContentServices contentServices)
|
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> |
discoverDeployedPackages(org.rhq.core.domain.content.PackageType arg0)
|
protected void |
execute(ExecutedResult result,
Map valueMap)
|
List<org.rhq.core.domain.content.transfer.DeployPackageStep> |
generateInstallationSteps(org.rhq.core.domain.content.transfer.ResourcePackageDetails arg0)
|
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability()
|
String |
getComponentIdentifier()
|
protected static org.rhq.core.domain.configuration.Configuration |
getDefaultPluginConfiguration(org.rhq.core.domain.resource.ResourceType resourceType)
|
protected Map<String,org.jboss.managed.api.ManagedProperty> |
getManagedProperties()
|
org.rhq.core.domain.configuration.Configuration |
getResourceConfiguration()
|
abstract void |
getValues(org.rhq.core.domain.measurement.MeasurementReport arg0,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> arg1)
The plugin container will call this method when your resource component has been scheduled to collect some measurements now. |
org.rhq.core.pluginapi.operation.OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration configuration)
The plugin container will call this method when it wants to invoke an operation on your managed resource. |
protected boolean |
isAvailable()
Helper method that indicates the latest status based on the last getAvailabilit() call. |
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration()
The plugin container will call this method and it needs to obtain the current configuration of the managed resource. |
org.rhq.core.domain.content.transfer.RemovePackagesResponse |
removePackages(Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> arg0)
|
InputStream |
retrievePackageBits(org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
|
protected void |
setComponentIdentifier(String identifier)
|
protected void |
setComponentName(String componentName)
|
protected void |
setMetricArguments(String name,
org.rhq.core.domain.configuration.Configuration configuration,
Map<String,Object> argumentMap)
|
protected void |
setOperationArguments(String name,
org.rhq.core.domain.configuration.Configuration configuration,
Map<String,Object> argumentMap)
|
void |
setResourceConfiguration(org.rhq.core.domain.configuration.Configuration resourceConfiguration)
|
void |
start(org.rhq.core.pluginapi.inventory.ResourceContext context)
This is called when your component has been started with the given context. |
void |
stop()
This is called when the component is being stopped, usually due to the plugin container shutting down. |
protected void |
updateComponent(org.jboss.managed.api.ManagedComponent managedComponent)
|
void |
updateResourceConfiguration(org.rhq.core.pluginapi.configuration.ConfigurationUpdateReport report)
The plugin container will call this method when it has a new configuration for your managed resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rhq.plugins.jbossas5.ProfileServiceComponent |
---|
getConnection |
Methods inherited from interface org.rhq.plugins.jmx.JMXComponent |
---|
getEmsConnection |
Methods inherited from interface org.rhq.core.pluginapi.inventory.CreateChildResourceFacet |
---|
createResource |
Field Detail |
---|
protected final Log LOG
protected org.rhq.core.domain.configuration.Configuration resourceConfiguration
protected org.rhq.core.pluginapi.inventory.ResourceContext<?> resourceContext
protected String name
protected String componentType
protected boolean isAvailable
protected String deploymentName
Constructor Detail |
---|
public Facet()
Method Detail |
---|
public void start(org.rhq.core.pluginapi.inventory.ResourceContext context)
start
in interface org.rhq.core.pluginapi.inventory.ResourceComponent<org.rhq.core.pluginapi.inventory.ResourceComponent>
context
- ResourceComponent.start(ResourceContext)
public void stop()
stop
in interface org.rhq.core.pluginapi.inventory.ResourceComponent<org.rhq.core.pluginapi.inventory.ResourceComponent>
ResourceComponent.stop()
public org.rhq.core.domain.configuration.Configuration getResourceConfiguration()
public void setResourceConfiguration(org.rhq.core.domain.configuration.Configuration resourceConfiguration)
resourceConfiguration
- the resourceConfiguration to setpublic String componentType()
protected void setComponentName(String componentName)
public String getComponentIdentifier()
protected void setComponentIdentifier(String identifier)
protected void setOperationArguments(String name, org.rhq.core.domain.configuration.Configuration configuration, Map<String,Object> argumentMap)
protected void setMetricArguments(String name, org.rhq.core.domain.configuration.Configuration configuration, Map<String,Object> argumentMap)
protected void execute(ExecutedResult result, Map valueMap)
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability
in interface org.rhq.core.pluginapi.availability.AvailabilityFacet
protected boolean isAvailable()
public abstract void getValues(org.rhq.core.domain.measurement.MeasurementReport arg0, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> arg1) throws Exception
getValues
in interface org.rhq.core.pluginapi.measurement.MeasurementFacet
Exception
MeasurementFacet.getValues(MeasurementReport, Set)
public org.rhq.core.pluginapi.operation.OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration configuration)
invokeOperation
in interface org.rhq.core.pluginapi.operation.OperationFacet
OperationFacet.invokeOperation(String, Configuration)
public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
loadResourceConfiguration
in interface org.rhq.core.pluginapi.configuration.ConfigurationFacet
ConfigurationFacet.loadResourceConfiguration()
public void updateResourceConfiguration(org.rhq.core.pluginapi.configuration.ConfigurationUpdateReport report)
updateResourceConfiguration
in interface org.rhq.core.pluginapi.configuration.ConfigurationFacet
ConfigurationFacet.updateResourceConfiguration(ConfigurationUpdateReport)
protected Map<String,org.jboss.managed.api.ManagedProperty> getManagedProperties() throws Exception
Exception
protected void updateComponent(org.jboss.managed.api.ManagedComponent managedComponent) throws Exception
managedComponent
-
Exception
public void deleteResource() throws Exception
deleteResource
in interface org.rhq.core.pluginapi.inventory.DeleteResourceFacet
Exception
public org.rhq.core.domain.content.transfer.DeployPackagesResponse deployPackages(Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages, org.rhq.core.pluginapi.content.ContentServices contentServices)
deployPackages
in interface org.rhq.core.pluginapi.content.ContentFacet
public Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> discoverDeployedPackages(org.rhq.core.domain.content.PackageType arg0)
discoverDeployedPackages
in interface org.rhq.core.pluginapi.content.ContentFacet
public List<org.rhq.core.domain.content.transfer.DeployPackageStep> generateInstallationSteps(org.rhq.core.domain.content.transfer.ResourcePackageDetails arg0)
generateInstallationSteps
in interface org.rhq.core.pluginapi.content.ContentFacet
public org.rhq.core.domain.content.transfer.RemovePackagesResponse removePackages(Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> arg0)
removePackages
in interface org.rhq.core.pluginapi.content.ContentFacet
public InputStream retrievePackageBits(org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
retrievePackageBits
in interface org.rhq.core.pluginapi.content.ContentFacet
protected static org.rhq.core.domain.configuration.Configuration getDefaultPluginConfiguration(org.rhq.core.domain.resource.ResourceType resourceType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |