com.pmease.quickbuild.model
Class Resource

java.lang.Object
  extended by com.pmease.quickbuild.model.AbstractEntity
      extended by com.pmease.quickbuild.model.Resource
All Implemented Interfaces:
java.io.Serializable

@Entity
public class Resource
extends AbstractEntity

See Also:
Serialized Form

Constructor Summary
Resource()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int getCount()
           
 int getCount(GridNode node)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.util.ArrayList<ResourceProvider> getProviders()
           
 int getUsedCount(java.util.List<BuildRequest> requests)
           
 int hashCode()
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setProviders(java.util.ArrayList<ResourceProvider> providers)
           
 
Methods inherited from class com.pmease.quickbuild.model.AbstractEntity
getId, isNew, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

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.