This subtask is to refactor the UI code so it calls into a new SLSB method that simply marks all "doomed" resources with a inventory status of UNINVENTORY. We need to add that new inventory status to the enum. This needs to be optimized for speed if at all possible.
rev4160 - this commit adds asynchronous uninventory and fixes several spots of row contention [RHQ-1187][RHQ-1191][RHQ-1192] - asynchronous uninventory by setting uninventoried resources agent references to null to stop majority agent-side sync, setting the parent to null to take it out of the object graph, using a special UNINVENTORY inventoryStatus so it doesn't conflict with existing semantics around any other state, and using a dummy resourceKey so that the next discovery doesn't collide; [RHQ-1324] - specific timings during uninventory calling reinventory failure are no longer possible because uninventory of the entire resource tree occurs atomically in one bulk update statement, then the agent is notified if successful; [RHQ-2124][RHQ-1656][RHQ-1221] - removed hot spots and various other points of contention by shortening transaction times or using indexes as available for: a) uninventory work, b) cloud manager job, c) check for suspect agent job, d) dynagroup recalculation job, e) alerts cache in-band agent and server status bit setting, f) isAgentBackfilled checking
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1191