Package hudson.model
Class Resource
java.lang.Object
hudson.model.Resource
Represents things that 
Queue.Executable uses while running.
 
 This is used in Queue to support basic mutual exclusion/locks. If two
 Queue.Tasks require the same Resource, they will not
 be run at the same time.
 
 Resources are compared by using their names, and
 need not have the "same object" semantics.
- Since:
- 1.121
- 
Field Details- 
displayNameHuman-readable name of this resource. Used for rendering HTML.
- 
parentParent resource.A child resource is considered a part of the parent resource, so acquiring the parent resource always imply acquiring all the child resources. 
- 
numConcurrentWritepublic final int numConcurrentWriteMaximum number of concurrent write.
 
- 
- 
Constructor Details- 
Resource
- 
Resource- Since:
- 1.155
 
- 
Resource
 
- 
- 
Method Details- 
isCollidingWithChecks the resource collision.- Parameters:
- count- If we are testing W/W conflict, total # of write counts. For R/W conflict test, this value should be set to- Integer.MAX_VALUE.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-