org.rhq.core.pluginapi.inventory
Interface DeleteResourceFacet


public interface DeleteResourceFacet

Components that implement this facet are responsible for deleting resources managed by the component.


Method Summary
 void deleteResource()
          Indicates the resource has been deleted.
 

Method Detail

deleteResource

void deleteResource()
                    throws Exception
Indicates the resource has been deleted. It is at the discretion of the plugin as to what to do when a resource has been deleted. For instance, when deleting a service that is running inside a server, the plugin needs to remove things belonging to that service and the configuration of the owning server must reflect the deletion of the service.

Throws:
Exception - if failed to delete the resource


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.