|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Fact
The Fact object.
This contains accessors for setting and getting fact values and for describing a Fact.
| Field Summary | |
|---|---|
static String |
ASCENDING_PREFIX
|
static String |
DESCENDING_PREFIX
|
static String |
GROUP_PREFIX
|
static String |
JOB_ARGS_PREFIX
|
static String |
JOB_INSTANCE_PREFIX
|
static String |
JOB_PREFIX
|
static String |
JOBLET_PREFIX
|
static String |
MATRIX_PREFIX
|
static String |
REPOSITORY_PREFIX
|
static String |
RESOURCE_PREFIX
|
static int |
TYPE_BOOLEAN
|
static int |
TYPE_BOOLEAN_ARRAY
|
static int |
TYPE_DATE
|
static int |
TYPE_DATE_ARRAY
|
static int |
TYPE_DICTIONARY
|
static int |
TYPE_INTEGER
|
static int |
TYPE_INTEGER_ARRAY
|
static int |
TYPE_LIST
|
static int |
TYPE_REAL
|
static int |
TYPE_REAL_ARRAY
|
static int |
TYPE_STRING
|
static int |
TYPE_STRING_ARRAY
|
static String[] |
TYPE_STRINGS
|
static int |
TYPE_TIME
|
static int |
TYPE_TIME_ARRAY
|
static int |
TYPE_UNKNOWN
|
static String |
USER_PREFIX
|
static String |
VMHOST_PREFIX
|
| Method Summary | |
|---|---|
void |
clearCache()
Clear any existing cache value for this fact on current thread. |
boolean[] |
getBooleanArrayValue()
Retrieve a boolean array fact value as a java boolean type. |
boolean |
getBooleanValue()
Retrieve a boolean fact value as a java boolean type. |
Date[] |
getDateArrayValue()
Retrieve a time array fact value as a java Date[] type. |
Date |
getDateValue()
Retrieve a date fact value as a java Date type. |
String |
getDescription()
Return a textual description of the purpose or content of this fact |
Map |
getDictionaryValue()
Retrieve a dictionary fact value as a java Map type. |
String |
getFromText()
Return short textual description of where this fact is from |
long[] |
getIntegerArrayValue()
Retrieve an integer array fact value as a lone[] type. |
long |
getIntegerValue()
Retrieve an integer fact value as a java long type. |
long |
getLastModified()
Return last modified timestamp for this fact. |
List |
getListValue()
Retrieve a list fact value as a java List type. |
String |
getName()
Returns the full name of the fact. |
double[] |
getRealArrayValue()
Retrieve a real array fact value as a java double[] type. |
double |
getRealValue()
Retrieve a real fact value as a java double type. |
ID |
getSourceID()
Returns the source ID for this fact. |
String[] |
getStringArrayValue()
Retrieve a string array fact value as a java String[] type. |
String |
getStringValue()
Retrieve a string fact value as a java String type. |
int[] |
getTimeArrayValue()
Retrieve a time array fact value as a java long[] type. |
int |
getTimeValue()
Retrieve a time fact value as a java long type. |
int |
getType()
Returns the fact type. |
Object |
getValue()
Returns the Object value for the fact. |
Object[] |
getValueArray()
Returns the Object[] value for the fact. |
String |
getValueString()
This is intended to provide a String representation of the value (or values) for simple display purposes. |
String |
getValueString(boolean verbose)
This is intended to provide a String representation of the value (or values) for simple display purposes. |
String |
getValueXml()
This is intended to provide an XML representation of the value (or values) for simple display purposes. |
boolean |
isArray()
|
boolean |
isComputed()
|
boolean |
isDeleteable()
|
boolean |
isDynamic()
Snapshot can create r/o vesions of dynamic facts thus we keep state |
boolean |
isLink()
|
boolean |
isReadOnly()
|
void |
setValue(boolean value)
(Re)sets the BOOLEAN fact value to the supplied value. |
void |
setValue(boolean[] values)
(Re)sets the BOOLEAN[] fact value to the supplied value. |
void |
setValue(Date value)
(Re)sets the DATE fact value to the supplied value. |
void |
setValue(Date[] values)
(Re)sets the DATE[] fact value to the supplied value. |
void |
setValue(double value)
(Re)sets the REAL fact value to the supplied value. |
void |
setValue(double[] values)
(Re)sets the REAL[] fact value to the supplied value. |
void |
setValue(float value)
(Re)sets the REAL fact value to the supplied value. |
void |
setValue(float[] values)
(Re)sets the REAL[] fact value to the supplied value. |
void |
setValue(int value)
(Re)sets the INTEGER fact value to the supplied value. |
void |
setValue(int[] values)
(Re)sets the INTEGER[] fact value to the supplied value. |
void |
setValue(List value)
(Re)sets the LIST fact value to the supplied value. |
void |
setValue(long value)
(Re)sets the INTEGER or TIME fact value to the supplied value. |
void |
setValue(long[] values)
(Re)sets the INTEGER[] or TIME[] fact value to the supplied value. |
void |
setValue(Map value)
(Re)sets the DICTIONARY fact value to the supplied value. |
void |
setValue(Object value)
(Re)sets the fact value to the supplied value. |
String |
toString()
Form complete formatted XML (policy syntax) document. |
String |
toXmlDocument(int indent)
Form complete formatted XML (policy syntax) document with requested indent. |
| Field Detail |
|---|
static final String JOB_INSTANCE_PREFIX
static final String JOB_ARGS_PREFIX
static final String JOB_PREFIX
static final String JOBLET_PREFIX
static final String RESOURCE_PREFIX
static final String USER_PREFIX
static final String GROUP_PREFIX
static final String MATRIX_PREFIX
static final String VMHOST_PREFIX
static final String REPOSITORY_PREFIX
static final String ASCENDING_PREFIX
static final String DESCENDING_PREFIX
static final int TYPE_UNKNOWN
static final int TYPE_STRING
static final int TYPE_INTEGER
static final int TYPE_REAL
static final int TYPE_BOOLEAN
static final int TYPE_TIME
static final int TYPE_DATE
static final int TYPE_LIST
static final int TYPE_DICTIONARY
static final int TYPE_STRING_ARRAY
static final int TYPE_INTEGER_ARRAY
static final int TYPE_REAL_ARRAY
static final int TYPE_BOOLEAN_ARRAY
static final int TYPE_TIME_ARRAY
static final int TYPE_DATE_ARRAY
static final String[] TYPE_STRINGS
| Method Detail |
|---|
String getName()
int getType()
Object getValue()
throws FactException
FactNotReadyException - if looking up a computed fact and the
value is not available within the specified timeout.
FactException - if an error occurs getting the fact value.
Typically this would be an error in a computed fact.Object[] getValueArray()
throws FactException
FactNotReadyException - if looking up a computed fact and the
value is not available within the specified timeout.
FactException - if an error occurs getting the fact value.
Typically this would be an error in a computed fact.String getStringValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.long getIntegerValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.double getRealValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.boolean getBooleanValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.int getTimeValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.Date getDateValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.Map getDictionaryValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.List getListValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.String[] getStringArrayValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.long[] getIntegerArrayValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.double[] getRealArrayValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.boolean[] getBooleanArrayValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.int[] getTimeArrayValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.Date[] getDateArrayValue()
throws FactException
FactNotReadyException - is the Fact is a computed fact and the
value is not available within the specified timeout.
FactException - is the Fact is not a String type.void setValue(Object value)
throws FactException
value - the Object fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(int value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(long value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(float value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(double value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(boolean value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(Date value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(Map value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(List value)
throws FactException
value - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(int[] values)
throws FactException
values - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(long[] values)
throws FactException
values - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(float[] values)
throws FactException
values - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(double[] values)
throws FactException
values - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(boolean[] values)
throws FactException
values - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.void setValue(Date[] values)
throws FactException
values - the new fact value.
FactException - is the fact value cannot be set because the fact
is a read-only fact or because there is a type mismatch.ID getSourceID()
String getFromText()
String getDescription()
boolean isDynamic()
boolean isLink()
boolean isComputed()
boolean isArray()
boolean isReadOnly()
boolean isDeleteable()
long getLastModified()
String getValueXml()
String getValueString()
String getValueString(boolean verbose)
verbose - if true, the longer more verbose display is used for
Float, Time and Date values.
String toString()
toString in class ObjectString toXmlDocument(int indent)
indent - the indent to use for generated XML document.
void clearCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||