virtual file interface
In many cases, a Java EE application cannot directly access the file system on the application server. To allow customers to prepare for this PRPC capability, the PublicAPI contains Java classes that mimic many features of java.io. Together, these are known as the Virtual File Interface.
The com.pega.pegarules.pub.util Package contains these classes:
- PRFile class — Mimics a subset of methods in
java.io.File
- PRInputStream — Emulates
java.io.InputStream
- PROutputStream class — Emulates
java.io.OutputStream
- PRReader class — Emulates
java.io.Reader
- PRWriter class — Emulates
java.io.Writer
Consult the PublicAPI JavaDocs for details on these Java classes.
In Web tier deployments of PRPC, these facilities operate the same as the corresponding java.io facilities.
In e-tier deployments, operation of file access depends on the following Dynamic System Setting:
Dynamic System Setting: prconfig/storage/class/default
|
The prconfig/storage/class/default setting provides the configuration for the storage mechanisms, as well as the mapping between the resource types and those mechanisms.
The following values are valid for this Dynamic System Setting:
|
Value
|
Description
|
filesystem
|
The regular, physical file system (Default) |
resadaptor
|
A Java EE resource adapter |
embedded
|
(Reserved) |
datasource
|
A database accessed through a JDBC Datasource |
Caution: Change this setting with care. Prconfig Dynamic System Settings can have broad impact on the operation of your system.
|
Related terms
Open topic with navigation