com.pmease.quickbuild.model
Class Resource
java.lang.Object
com.pmease.quickbuild.model.AbstractEntity
com.pmease.quickbuild.model.Resource
- All Implemented Interfaces:
- java.io.Serializable
@Entity
public class Resource
- extends AbstractEntity
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Resource
public Resource()
getName
@NotEmpty
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getProviders
@Size(min=1,
max=10000)
public java.util.ArrayList<ResourceProvider> getProviders()
setProviders
public void setProviders(java.util.ArrayList<ResourceProvider> providers)
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class AbstractEntity
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractEntity
getCount
public int getCount(GridNode node)
- Get total number of resources provided by specified node.
getCount
public int getCount()
- Get total number of resource provided by all nodes.
getUsedCount
public int getUsedCount(java.util.List<BuildRequest> requests)
- Get total number of used resources by specified build requests.
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.