Package org.jppf.classloader
Class CompositeResourceWrapper
java.lang.Object
org.jppf.classloader.JPPFResourceWrapper
org.jppf.classloader.CompositeResourceWrapper
- All Implemented Interfaces:
Serializable
Instances of this class are intended for grouping multiple class loading requests together.
- Author:
- Laurent Cohen, Martin JANDA
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jppf.classloader.JPPFResourceWrapper
JPPFResourceWrapper.State -
Field Summary
Fields inherited from class org.jppf.classloader.JPPFResourceWrapper
EMPTY_RESOURCE_WRAPPER_ARRAY, resources -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrReplaceResource(JPPFResourceWrapper resource) Add or replace request to this composite request.addResource(JPPFResourceWrapper resource) Add a request to this composite request.Get the mapping of futures to corresponding resource requests.Get the array of requests held by this request.toString()Methods inherited from class org.jppf.classloader.JPPFResourceWrapper
addUuid, equals, getCallable, getCallableID, getData, getData, getDefinition, getMonitor, getName, getProviderUuid, getRequestStartTime, getRequestUuid, getResourceId, getResourceIds, getState, getUuidPath, hasAny, hashCode, isDynamic, isHandshaking, isSingleResource, setCallable, setData, setDefinition, setDynamic, setHandshaking, setName, setProviderUuid, setRequestStartTime, setRequestUuid, setResourceId, setResourceIds, setState, setUuidPath
-
Constructor Details
-
CompositeResourceWrapper
public CompositeResourceWrapper()Default constructor.
-
-
Method Details
-
getResources
Description copied from class:JPPFResourceWrapperGet the array of requests held by this request. For simple request returns arrays containingthis.- Overrides:
getResourcesin classJPPFResourceWrapper- Returns:
- a array of
JPPFResourceWrapperinstances.
-
addOrReplaceResource
Add or replace request to this composite request.- Parameters:
resource- the request to add or replace.
-
addResource
Add a request to this composite request.- Parameters:
resource- the request to add.- Returns:
- a future for getting the response at a later time.
-
getFutureMap
Get the mapping of futures to corresponding resource requests.- Returns:
- a map of resource definitions to their corresponding future.
-
toString
- Overrides:
toStringin classJPPFResourceWrapper
-