|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpl.mipl.pgs.utils.upf.UPF
public class UPF
Allows parsing of User Preference File. The UPF object allows users to specify simple parameters such as
<pgs>
<upf>
<logDir>somedir</logDir>
</upf>
</pgs>
to more complex and dynamic parameters such as using the
<script></script> element. Refer to UPF Users Guide
for more information.
Copyright 2002-PRESENT, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge.
Nested Class Summary | |
---|---|
static class |
UPF.MyErrorHandler
|
Field Summary | |
---|---|
static String |
CONTEXT
Identifies vairables that needs to be added into the context |
static String |
DATASOURCE_TIMEOUT
Time to wait for data from also refer to also refer to DATASOURCE_TYPE before giving up |
static String |
DATASOURCE_TYPE
Valid values are tds, fei5 or dom (not supported yet) |
static String |
DEFAULT_PGS_UPF_SCHEMA_FILE_NAME
The default PGS schema name. |
static String |
ENV
Environment variable that can be referenced anywhere in the UPF or JVM (if so defined) |
static String |
FEI5
Valid values are 'ON' or 'OFF'. |
static String |
FEI5_DOMAIN
The domain file that is to be used by FEI5. |
static String |
FEI5_KEYSTORE
The FEI keystore. |
static String |
FEI5_OUTPUT_DIR
The directory where output from FEI5 are placed |
static String |
FEI5_OUTPUT_TYPE
Valid values are DIRECTORY or MEMORY. |
static String |
FEI5_PASSWORD
The password associated with also refer to FEI5_USERNAME |
static String |
FEI5_QUERY
The query that is to be used to query FEI5. |
static String |
FEI5_SECURITY_MODEL
The security model to be used when communicating with FEI5. |
static String |
FEI5_SOURCE_FILE_EXTNS
Files with these file extensions are queried from also refer to FEI5_SOURCE_FILE_TYPES . |
static String |
FEI5_SOURCE_FILE_TYPES
The file type that are to be queried for files. |
static String |
FEI5_USERNAME
The user name for logging into FEI5. |
static String |
LOG_DIR
Deprecated. Instead use LoggerFactory |
static String |
LOG_FILE_PREFIX
Deprecated. Instead use LoggerFactory |
static String |
LOG_FILE_SIZE
Deprecated. Instead use LoggerFactory |
static String |
MONITOR_FREQUENCY
Used by Service Factory |
static String |
PASSWD
The password associated with also refer to USERID |
static String |
PD_NAME
A descriptive name given to the PD. |
static String |
PERSTORE
Indicates weather persistent is to be performed during PI run. |
static String |
PGS_VALIDATE_PD
|
static String |
PROCESS_DEFINITION_FILE_NAME
Fully qualified name of process definition that is to be executed. |
static String |
PROCESS_DEFINITION_NAME
The name of process definition as stored in persistent store that is to be executed. |
static String |
PROCESS_DEFINITION_VERSION
The version of process definition as stored in persistent store that is to be executed. |
static String |
PROCESS_INSTANCE_ID
The id of the process instance to rerun. |
static String |
REQUEST_CHECK_FREQUENCY
Used by Controller |
static String |
REQUEST_UPF
Key used in the JBPM Context to pass the UPF object around. |
static String |
SCRIPT
Used in creating script element |
static String |
SCRIPT_EXPRESSION
Used in creating script expression |
static String |
SCRIPT_FILE
Used in referencing a script file name |
static String |
SCRIPT_PARAM
Used in creating script parameter |
static String |
TDS_HOST
The host where the TDS server is running. |
static String |
TDS_PORT
The port on also refer to TDS_HOST that the server is listening to. |
static String |
TDS_PVL_FILE_NAME
Fully qualified name of the file containing a valid PVL query. |
static String |
TDS_SFDU_FILE
Fully qualified name of the file containing SFDU's. |
static String |
TDS_SFDU_SOURCE
Valid values are file or server. |
static String |
USERID
The user id as assigned by PGS. |
Constructor Summary | |
---|---|
UPF(String upfFileName)
Parse the given UPF file without validating it against any XML schema. |
|
UPF(StringBuffer upfFileContent,
String upfFileName)
Parses the given StringBuffer which contains the content of an UPF file. |
|
UPF(String upfFileName,
String schemaFileName)
Parse the given UPF file and validate against the given schema. |
Method Summary | |
---|---|
Vector<String> |
getAllValues(String keyword)
For obtaining the values of a multivalued keyword that is repeated more than once. |
Vector<Map<String,String>> |
getAttributes(String key)
Return all attributes associated with the named parameter or null if the key is not specified. |
Hashtable |
getAttributes(String key,
int instanceNo)
Return attributes associated with the instanceNo instance of the key as hashtable where the key is the attribute's local name. |
Map<String,String> |
getContextVariables()
Return all variables that are marked as context variables. |
String |
getFileName()
Returns the name of the associated UPF file. |
Enumeration |
getKeywords()
|
String |
getLastAttributeValue(String key,
String attributeName)
Return the named attribute associated with the named parameter or null if the key is not specified or the attribute is not specified. |
String |
getLastValue(String keyword)
For obtaining the last instance of a multivalued keyword that is repeated more than once. |
String |
getNthValue(String keyword,
int index)
For obtaining the instance at the given index of a multivalued keyword that is repeated more than once. |
static String |
getPGSUPFSchemaFileName()
Returns the default UPF schema name(which is ${PGS_CONFIG_DIR}/UPF.xsd). |
Vector<Script> |
getScripts()
Returns all scripts associated with this UPF. |
String |
getUPF()
Returns the entire UPF, in it's raw form, as it was received. |
protected void |
parseUPFContent(StringBuffer upfFileContent)
|
protected Object |
removeKey(String key)
|
Map<String,Vector<String>> |
toMap()
Returns the given UPF as Hashtable. |
Map<String,String> |
toSingleValueMap()
Returns the given UPF as Hashtable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PGS_VALIDATE_PD
public static final String REQUEST_UPF
public static final String DEFAULT_PGS_UPF_SCHEMA_FILE_NAME
public static final String PD_NAME
public static final String LOG_DIR
LoggerFactory
public static final String LOG_FILE_PREFIX
LoggerFactory
public static final String LOG_FILE_SIZE
LoggerFactory
public static final String DATASOURCE_TYPE
public static final String DATASOURCE_TIMEOUT
DATASOURCE_TYPE
before giving up
public static final String TDS_SFDU_SOURCE
DATASOURCE_TYPE
= TDS
public static final String TDS_SFDU_FILE
TDS_SFDU_SOURCE
= FILE
public static final String TDS_HOST
DATASOURCE_TYPE
= TDS
public static final String TDS_PORT
TDS_HOST
that the server is listening to. Only applicable if also refer to DATASOURCE_TYPE
= TDS
public static final String TDS_PVL_FILE_NAME
DATASOURCE_TYPE
= TDS
public static final String FEI5_SOURCE_FILE_TYPES
DATASOURCE_TYPE
= FEI5
public static final String FEI5_SOURCE_FILE_EXTNS
FEI5_SOURCE_FILE_TYPES
. Only applicable if also refer to DATASOURCE_TYPE
= FEI5
public static final String FEI5_OUTPUT_TYPE
FEI5_OUTPUT_DIR
public static final String FEI5_OUTPUT_DIR
public static final String FEI5_QUERY
public static final String FEI5
public static final String FEI5_DOMAIN
public static final String FEI5_KEYSTORE
public static final String FEI5_SECURITY_MODEL
public static final String FEI5_USERNAME
public static final String FEI5_PASSWORD
FEI5_USERNAME
public static final String USERID
public static final String PASSWD
USERID
public static final String REQUEST_CHECK_FREQUENCY
public static final String MONITOR_FREQUENCY
public static final String PROCESS_DEFINITION_FILE_NAME
public static final String PROCESS_DEFINITION_NAME
jpl.mipl.pgs.utils.Configuration#PERSTORE
must not be 'OFF' when using this variable.
public static final String PROCESS_DEFINITION_VERSION
PERSTORE
must not be 'OFF' when using this variable.
The default is to use latest process definition.
public static final String PROCESS_INSTANCE_ID
PROCESS_DEFINITION_NAME
public static final String PERSTORE
public static final String SCRIPT
public static final String SCRIPT_PARAM
public static final String SCRIPT_EXPRESSION
public static final String SCRIPT_FILE
public static final String ENV
public static final String CONTEXT
Constructor Detail |
---|
public UPF(String upfFileName) throws Exception
upfFileName
- Complete pathname of the UPF file.
Exception
- If the UPF file name is null, the specified
UPF file does not exists, or is unreadable or if the UPF file is ill formated.public UPF(String upfFileName, String schemaFileName) throws Exception
upfFileName
- Complete pathname of the UPF file.schemaFileName
- Complete pathname of the schema file to use to validate the given UPF file.
Exception
- If the UPF file name is null, the specified
UPF file does not exists, or is unreadable or if the UPF file is ill formated.public UPF(StringBuffer upfFileContent, String upfFileName) throws Exception
upfFileContent
- The content of the UPF file.upfFileName
- The name of the UPF file whose content is supplied in
upfFileContent. This is an optional parameter.
Exception
- If the upfFileContent is null or if the content of UPF is ill formated.Method Detail |
---|
protected Object removeKey(String key)
protected void parseUPFContent(StringBuffer upfFileContent) throws Exception
Exception
public Map<String,String> getContextVariables()
public Vector<Script> getScripts()
public static String getPGSUPFSchemaFileName()
public Enumeration getKeywords()
public Vector<String> getAllValues(String keyword)
keyword
- The String that represents the keyword
public String getLastValue(String keyword)
keyword
- The String that represents the keyword
public String getNthValue(String keyword, int index)
keyword
- The String that represents the keyword
public String getFileName()
public String getUPF()
public Map<String,String> toSingleValueMap()
public Map<String,Vector<String>> toMap()
public Vector<Map<String,String>> getAttributes(String key)
public String getLastAttributeValue(String key, String attributeName)
public Hashtable getAttributes(String key, int instanceNo)
key
- The key that is of interest.instanceNo
- the instance number that is of interest (base 0).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |