Bug 811287 - RFE (availability): Allow component code to disable or enable resource
Summary: RFE (availability): Allow component code to disable or enable resource
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent, Plugins
Version: 4.3
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: RHQ 4.4.0
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 741450
TreeView+ depends on / blocked
 
Reported: 2012-04-10 15:55 UTC by Jay Shaughnessy
Modified: 2013-09-01 10:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-01 10:15:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Shaughnessy 2012-04-10 15:55:28 UTC
We already have (starting in 4.4) the ability for a user to
DISABLE/ENABLE resources via the GUI or CLI.  In some circumstances
it makes sense for plugin code to be able to do the same.  AS7 has
the notion of managed servers that may or may not be auto-started. A
managed server that is not started is not UP or DOWN, but more
logically DISABLED.  This can be determined via the component code.

This feature will make it possible for the component code to
set resource enablement programmatically.

Comment 1 Jay Shaughnessy 2012-04-10 18:54:50 UTC
commit 48694295b96f8e28a84d7f1d36be3b9d8ae456e9

Added this new feature. Called like:
     resourceContext.getAvailabilityContext().disable();



Test Notes
----------
This will likely be used in the AS7 plugin. Perhaps a test
using that plugin can be designed.

Comment 2 Heiko W. Rupp 2013-09-01 10:15:31 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


Note You need to log in before you can comment on or make changes to this bug.