|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.buildforge.services.client.dbo.SelectorProperty
public class SelectorProperty
A SelectorProperty is a specific test (i.e.: free memory is greater than 1gb,
system load is less than 2, java version equals 1.4, etc.) used by parent
Selector objects at runtime to determine the suitability of a particular
Server
to be used as an execution platform for a certain Project
.
Field Summary | |
---|---|
static java.lang.Class<SelectorProperty> |
CLASS
|
Constructor Summary | |
---|---|
SelectorProperty(APIClientConnection conn,
Selector newParent)
Defines a new SelectorProperty but neither adds it to the specified parent or creates it in the database. |
Method Summary | |
---|---|
SelectorProperty |
clone()
|
void |
delete()
Removes this SelectorProperty from both its parent and from the database |
boolean |
equals(java.lang.Object obj)
|
SelectorPropertyDBO.Operator |
getOperator()
Returns the current comparator for the test, i.e.: greater than ,less than, equals, etc. |
Selector |
getParent()
Returns the parent Selector object to which this SelectorProperty is associated |
java.lang.String |
getPropertyName()
Returns the name of the property to be tested, i.e.: NUM_CPU, MyCustomCollectorName, etc. |
java.lang.String |
getPropertyValue()
Returns the value |
boolean |
getRequired()
|
java.lang.String |
getSelectorId()
|
void |
setOperator(SelectorPropertyDBO.Operator newOperator)
|
void |
setPropertyName(java.lang.String newPropertyName)
|
void |
setPropertyValue(java.lang.String newPropertyValue)
|
void |
setRequired(boolean newRequired)
|
java.lang.String |
toString()
|
SelectorProperty |
update()
Commits any modifications to the state of this object to the database |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class<SelectorProperty> CLASS
Constructor Detail |
---|
public SelectorProperty(APIClientConnection conn, Selector newParent)
.create()
on the parent Selector in the case
of a Selector that has not yet itself been created in the database.
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public SelectorProperty update() throws java.io.IOException, ServiceException
java.io.IOException
ServiceException
public void delete() throws java.io.IOException, ServiceException
java.io.IOException
ServiceException
public Selector getParent()
public SelectorProperty clone()
clone
in class java.lang.Object
public SelectorPropertyDBO.Operator getOperator()
public java.lang.String getPropertyName()
Server
being evaluated and
the stored value of that property will be used as the left hand side of the comparison for
the SelectorProperty test.
public java.lang.String getPropertyValue()
public boolean getRequired()
public java.lang.String getSelectorId()
public void setOperator(SelectorPropertyDBO.Operator newOperator)
public void setPropertyName(java.lang.String newPropertyName)
public void setPropertyValue(java.lang.String newPropertyValue)
public void setRequired(boolean newRequired)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |