org.rhq.core.pc.inventory
Interface InventoryEventListener


public interface InventoryEventListener

Implementations of this class are notified of changes to the inventory model. Registration of these listeners is done through the InventoryManager.addInventoryEventListener(InventoryEventListener).

Author:
Jason Dobies

Method Summary
 void resourceActivated(org.rhq.core.domain.resource.Resource resource)
          Indicates a resource has passed all of the necessary approvals and synchronizations to be activated in the plugin container.
 void resourceDeactivated(org.rhq.core.domain.resource.Resource resource)
          Indicates a resource's component has been stopped and deactivated within the plugin container.
 void resourcesAdded(Set<org.rhq.core.domain.resource.Resource> resources)
          Indicates the specified resources were added to the inventory.
 void resourcesRemoved(Set<org.rhq.core.domain.resource.Resource> resources)
          Indicates the specified resources were removed from the inventory.
 

Method Detail

resourcesAdded

void resourcesAdded(Set<org.rhq.core.domain.resource.Resource> resources)
Indicates the specified resources were added to the inventory.

Parameters:
resources - resources added to trigger this event; cannot be null

resourcesRemoved

void resourcesRemoved(Set<org.rhq.core.domain.resource.Resource> resources)
Indicates the specified resources were removed from the inventory.

Parameters:
resources - resources removed to trigger this event; cannot be null

resourceActivated

void resourceActivated(org.rhq.core.domain.resource.Resource resource)
Indicates a resource has passed all of the necessary approvals and synchronizations to be activated in the plugin container.

Parameters:
resource -
See Also:
InventoryManager#activateResource(Resource)

resourceDeactivated

void resourceDeactivated(org.rhq.core.domain.resource.Resource resource)
Indicates a resource's component has been stopped and deactivated within the plugin container.

Parameters:
resource -
See Also:
InventoryManager.deactivateResource(Resource)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.