org.rhq.core.pc.inventory
Class DeleteResourceRunner

java.lang.Object
  extended by org.rhq.core.pc.inventory.DeleteResourceRunner
All Implemented Interfaces:
Runnable, Callable

public class DeleteResourceRunner
extends Object
implements Callable, Runnable

Runnable implementation to thread delete resource requests.

Author:
Jason Dobies

Constructor Summary
DeleteResourceRunner(ResourceFactoryManager resourceFactoryManager, DeleteResourceFacet facet, int requestId, int resourceId)
          Creates a new instance of the runner that will execute the specified request.
 
Method Summary
 Object call()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteResourceRunner

public DeleteResourceRunner(ResourceFactoryManager resourceFactoryManager,
                            DeleteResourceFacet facet,
                            int requestId,
                            int resourceId)
Creates a new instance of the runner that will execute the specified request.

Parameters:
resourceFactoryManager - handle to the manager for any business logic required
facet - facet against which to perform the delete operation
requestId - ID of the request, used when submitting the response
resourceId - ID of the resource being deleted
Method Detail

run

public void run()
Specified by:
run in interface Runnable

call

public Object call()
            throws Exception
Specified by:
call in interface Callable
Throws:
Exception


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