A Test program that shows how to load a Replica Catalog, and query for entries sites.
The configuration is picked from the Properties. The following properties
need to be set
pegasus.catalog.replica SimpleFile|JDCBCRC|RLS|LRC
pegasus.catalog.replica.file path to the Simple File Replica catalog if SimpleFile is being used.
pegasus.catalog.replica.url The RLS url if replica catalog being used is RLS or LRC
To use the JDBCRC the database connection parameters can be specified by
specifying the following properties
pegasus.catalog.replica.db.url
pegasus.catalog.replica.db.user
pegasus.catalog.replica.db.password
The sql schema’s for this catalog can be found at $PEGASUS_HOME/sql directory.
The Pegasus Properties can be picked from property files at various locations.
The priorities are explained below.
- The default path for the properties file is $PEGASUS_HOME/etc/properties.
- A properties file if found at ${user.home}/.pegasusrc has higher property.
- Finally a user can specify the path to the properties file by specifying
the JVM property pegasus.user.properties . This has the higher priority.