|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.db.SLAMDDB
public class SLAMDDB
This class provides the main interface to the SLAMD database used for storing user accounts, configuration information, and job data.
| Constructor Summary | |
|---|---|
SLAMDDB(SLAMDServer slamdServer,
java.lang.String dbDirectory,
boolean readOnly,
boolean createIfNecessary)
Initializes the SLAMD database and opens the environment, creating a new one if necessary. |
|
| Method Summary | |
|---|---|
void |
addJobClass(java.lang.String className)
Adds information about the specified job class to the configuration database. |
void |
closeDatabases(boolean abortTransactions)
Closes all databases in the environment. |
void |
closeEnvironment()
Closes the database environment. |
static void |
createDB(java.lang.String dbDirectory)
Creates a new SLAMD database if one does not already exist. |
static boolean |
dbExists(java.lang.String dbDirectory)
Checks to see if a valid SLAMD database exists in the specified location. |
void |
exportFolderData(java.lang.String[] realFolderNames,
java.lang.String[] virtualFolderNames,
java.lang.String[] jobGroupNames,
java.io.OutputStream outputStream)
Writes data from the specified job folder(s) in a form that is suitable for importing into another SLAMD server instance. |
Job[] |
getCompletedJobs(java.lang.String folderName)
Retrieves the set of completed jobs contained in the specified folder of the configuration database. |
Job[] |
getCompletedSummaryJobs(java.lang.String folderName)
Retrieves summary information for the set of completed jobs contained in the specified folder of the configuration database. |
java.lang.String |
getConfigParameter(java.lang.String parameterName)
Retrieves the value of the specified configuration parameter from the configuration database. |
boolean |
getConfigParameter(java.lang.String parameterName,
boolean defaultValue)
Retrieves the value of the specified configuration parameter from the configuration database. |
int |
getConfigParameter(java.lang.String parameterName,
int defaultValue)
Retrieves the value of the specified configuration parameter from the configuration database. |
java.lang.String |
getConfigParameter(java.lang.String parameterName,
java.lang.String defaultValue)
Retrieves the value of the specified configuration parameter from the configuration database. |
ConfigSubscriber[] |
getConfigSubscribers()
Retrieves the set of config subscribers that have been registered with the configuration database. |
byte[] |
getDBData(java.lang.String dbName,
java.lang.String dbKey)
Retrieves the data associated with the specified key in the given database. |
java.lang.String[] |
getDBKeys(java.lang.String dbName)
Retrieves a list of all the keys in the specified database. |
java.lang.String[] |
getDBNames()
Retrieves the names of the databases contained in the DB environment. |
java.lang.String[] |
getDisabledJobIDs()
Retrieves an array containing the job IDs of the jobs that are currently disabled. |
Job[] |
getDisabledJobs()
Retrieves an array containing the set of jobs that are currently disabled. |
JobFolder |
getFolder(java.lang.String folderName)
Retrieves the specified folder from the configuration database. |
JobFolder[] |
getFolders()
Retrieves a list of all job folders defined in the configuration database. |
Job |
getJob(java.lang.String jobID)
Retrieves the specified job from the configuration database. |
JobClass[] |
getJobClasses()
Retrieves the set of job classes defined in the configuration database. |
JobGroup |
getJobGroup(java.lang.String jobGroupName)
Retrieves the requested job group from the configuration database. |
JobGroup[] |
getJobGroups()
Retrieves a list of all job groups defined in the configuration database. |
Job[] |
getJobs(java.lang.String folderName)
Retrieves the set of jobs contained in the specified folder of the configuration database. |
OptimizingJob |
getOptimizingJob(java.lang.String optimizingJobID)
Retrieves the specified optimizing job from the configuration database. |
OptimizingJob[] |
getOptimizingJobs(java.lang.String folderName)
Retrieves the set of optimizing jobs contained in the specified folder of the configuration database. |
java.lang.String[] |
getPendingJobIDs()
Retrieves an array containing the job IDs of the jobs that are currently pending execution. |
Job[] |
getPendingJobs()
Retrieves an array containing the set of jobs that are currently pending execution. |
java.lang.String[] |
getRunningJobIDs()
Retrieves an array containing the job IDs of the jobs that are currently running. |
Job[] |
getRunningJobs()
Retrieves an array containing the set of jobs that are currently running. |
static java.lang.String |
getSafeName(ConfigSubscriber subscriber)
Retrieves a "safe" name for the provided configuration subscriber, which is suitable for submission in an HTML form. |
Job |
getSummaryJob(java.lang.String jobID)
Retrieves summary information for the specified job from the configuration database. |
JobGroup[] |
getSummaryJobGroups()
Retrieves a list of all job groups defined in the configuration database. |
Job[] |
getSummaryJobs(java.lang.String folderName)
Retrieves summary information for the set of jobs contained in the specified folder of the configuration database. |
OptimizingJob |
getSummaryOptimizingJob(java.lang.String optimizingJobID)
Retrieves summary information for the specified optimizing job from the configuration database. |
OptimizingJob[] |
getSummaryOptimizingJobs(java.lang.String folderName)
Retrieves summary information for the set of optimizing jobs contained in the specified folder of the configuration database. |
Job[] |
getSummaryVirtualJobs(java.lang.String folderName)
Retrieves summary information for the set of jobs contained in the specified virtual folder of the configuration database. |
UploadedFile |
getUploadedFile(java.lang.String folderName,
java.lang.String fileName)
Retrieves the specified uploaded file from the configuration database. |
UploadedFile[] |
getUploadedFiles(java.lang.String folderName)
Retrieves the set of uploaded files associated with the specified folder. |
UploadedFile |
getUploadedFileWithoutData(java.lang.String folderName,
java.lang.String fileName)
Retrieves the specified uploaded file from the configuration database. |
JobFolder |
getVirtualFolder(java.lang.String folderName)
Retrieves the specified virtual folder from the configuration database. |
JobFolder[] |
getVirtualFolders()
Retrieves a list of all virtual job folders defined in the configuration database. |
Job[] |
getVirtualJobs(java.lang.String folderName)
Retrieves the set of jobs contained in the specified virtual folder of the configuration database. |
boolean |
importFolderData(java.io.InputStream inputStream,
java.io.PrintWriter progressWriter,
boolean writeHTML)
Reads import data from the provided input stream and imports it into the database. |
void |
moveJob(java.lang.String jobID,
java.lang.String folderName)
Moves the specified job from its current folder to the new folder. |
void |
moveOptimizingJob(java.lang.String optimizingJobID,
java.lang.String folderName)
Moves the specified optimizing job from its current folder to the new folder. |
void |
openDatabases(boolean createIfNecessary)
Opens all the databases used in the SLAMD database environment. |
void |
putConfigParameter(java.lang.String parameterName,
boolean parameterValue,
boolean notifySubscribers)
Sets the value of the specified parameter in the configuration database. |
void |
putConfigParameter(java.lang.String parameterName,
int parameterValue,
boolean notifySubscribers)
Sets the value of the specified parameter in the configuration database. |
void |
putConfigParameter(java.lang.String parameterName,
java.lang.String parameterValue,
boolean notifySubscribers)
Sets the value of the specified parameter in the configuration database. |
void |
registerAsSubscriber(ConfigSubscriber subscriber)
Registers the provided configuration subscriber to be notified of changes to configuration parameters in the database. |
void |
removeConfigParameter(java.lang.String parameterName)
Removes information about the specified parameter from the configuration database. |
void |
removeFolder(java.lang.String folderName,
boolean deleteContents)
Removes information about the specified job folder from the configuration database. |
void |
removeJob(java.lang.String jobID)
Removes information about the specified job from the configuration database. |
void |
removeJobClass(java.lang.String className)
Removes information about the specified job class from the configuration database. |
void |
removeJobGroup(java.lang.String jobGroupName)
Removes information about the specified job group from the configuration database. |
void |
removeOptimizingJob(java.lang.String optimizingJobID)
Removes information about the specified optimizing job from the configuration database. |
void |
removeUploadedFile(java.lang.String folderName,
java.lang.String fileName)
Removes information about the specified uploaded file from the configuration database. |
void |
removeVirtualFolder(java.lang.String folderName)
Removes information about the specified virtual job folder from the configuration database. |
ConfigSubscriber |
subscriberForSafeName(java.lang.String name)
Retrieves the configuration subscriber that corresponds to the provided "safe" name. |
void |
writeFolder(JobFolder jobFolder)
Writes information about the provided job folder into the configuration database. |
void |
writeJob(Job job)
Writes information about the provided job into the configuration database. |
void |
writeJobGroup(JobGroup jobGroup)
Writes information about the provided job group to the configuration database. |
void |
writeOptimizingJob(OptimizingJob optimizingJob)
Writes information about the provided optimizing job into the configuration database. |
void |
writeUploadedFile(UploadedFile uploadedFile,
java.lang.String folderName)
Writes information about the provided uploaded file into the configuration database. |
void |
writeVirtualFolder(JobFolder jobFolder)
Writes information about the provided virtual job folder into the configuration database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SLAMDDB(SLAMDServer slamdServer,
java.lang.String dbDirectory,
boolean readOnly,
boolean createIfNecessary)
throws com.sleepycat.je.DatabaseException
slamdServer - The SLAMD server instance with which this
database is associated.dbDirectory - The path to the directory in which the database
files should be held.readOnly - Indicates whether the database should be opened
in read-only mode.createIfNecessary - Indicates whether a new database environment
should be created if one does not already
exist.
com.sleepycat.je.DatabaseException - If a problem occurs while initializing the
database environment.| Method Detail |
|---|
public static boolean dbExists(java.lang.String dbDirectory)
throws com.sleepycat.je.DatabaseException
dbDirectory - The path to the directory containing the database
files.
true if the database exists, or false
false if not.
com.sleepycat.je.DatabaseException - If a problem occurs while attempting to make
the determination.
public static void createDB(java.lang.String dbDirectory)
throws com.sleepycat.je.DatabaseException
dbDirectory - The path to the directory in which to create the
database.
com.sleepycat.je.DatabaseException - If a problem occurs while trying to create the
database.
public void openDatabases(boolean createIfNecessary)
throws com.sleepycat.je.DatabaseException
createIfNecessary - Indicates whether any database(s) that do not
exist should be created.
com.sleepycat.je.DatabaseException - If a problem occurs while opening the
databases. Note that if an exception is thrown,
then all databases will be closed but the
environment will still be open.
public void closeDatabases(boolean abortTransactions)
throws com.sleepycat.je.DatabaseException
abortTransactions - Indicates whether any transactions in progress
should be aborted. If not and there are active
transactions, then this method will fail.
com.sleepycat.je.DatabaseException - If there are active transactions and this
method is configured to not abort them.
public void closeEnvironment()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If the databases are still open.
public void exportFolderData(java.lang.String[] realFolderNames,
java.lang.String[] virtualFolderNames,
java.lang.String[] jobGroupNames,
java.io.OutputStream outputStream)
throws com.sleepycat.je.DatabaseException,
java.io.IOException
realFolderNames - The names of the real job folders to include in
the export.virtualFolderNames - The names of the virtual job folders to include
in the export.jobGroupNames - The names of the job groups to include in the
export.outputStream - The output stream to which the export data
should be written.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
database.
java.io.IOException - If a problem occurs while writing to the provided
output stream.
public boolean importFolderData(java.io.InputStream inputStream,
java.io.PrintWriter progressWriter,
boolean writeHTML)
inputStream - The input stream from which to read the data to
import.progressWriter - The print writer that should be used to write
progress about the import to the end user.writeHTML - Indicates whether the progress information should
be written in HTML format. If not, then it will be
plain text.
true if the import was completely successful, or
false if one or more problems were encountered.
public java.lang.String[] getDBNames()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while obtaining the list of
database names.
public java.lang.String[] getDBKeys(java.lang.String dbName)
throws com.sleepycat.je.DatabaseException
dbName - The name of the database for which to retrieve the list of
keys.
com.sleepycat.je.DatabaseException - If a problem occurs while obtaining the list of
database keys.
public byte[] getDBData(java.lang.String dbName,
java.lang.String dbKey)
throws com.sleepycat.je.DatabaseException
dbName - The name of the database from which the data should be
retrieved.dbKey - The key associated with the data to retrieve.
null if there is no such database key.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
database.public java.lang.String getConfigParameter(java.lang.String parameterName)
parameterName - The name of the configuration parameter to
retrieve.
null if there is no such parameter.
public java.lang.String getConfigParameter(java.lang.String parameterName,
java.lang.String defaultValue)
parameterName - The name of the configuration parameter to
retrieve.defaultValue - The value to use for the parameter if the specified
key is not present in the database.
public boolean getConfigParameter(java.lang.String parameterName,
boolean defaultValue)
parameterName - The name of the configuration parameter to
retrieve.defaultValue - The value to use for the parameter if the specified
key is not present in the database.
public int getConfigParameter(java.lang.String parameterName,
int defaultValue)
parameterName - The name of the configuration parameter to
retrieve.defaultValue - The value to use for the parameter if the specified
key is not present in the database.
public void putConfigParameter(java.lang.String parameterName,
java.lang.String parameterValue,
boolean notifySubscribers)
throws com.sleepycat.je.DatabaseException
parameterName - The name of the parameter to set.parameterValue - The value to use for the parameter.notifySubscribers - Indicates whether the configuration subscribers
registered with the SLAMD server should be
notified of the change.
com.sleepycat.je.DatabaseException - If a problem occurs while attempting to store
the configuration parameter.
public void putConfigParameter(java.lang.String parameterName,
boolean parameterValue,
boolean notifySubscribers)
throws com.sleepycat.je.DatabaseException
parameterName - The name of the parameter to set.parameterValue - The value to use for the parameter.notifySubscribers - Indicates whether the configuration subscribers
registered with the SLAMD server should be
notified of the change.
com.sleepycat.je.DatabaseException - If a problem occurs while attempting to store
the configuration parameter.
public void putConfigParameter(java.lang.String parameterName,
int parameterValue,
boolean notifySubscribers)
throws com.sleepycat.je.DatabaseException
parameterName - The name of the parameter to set.parameterValue - The value to use for the parameter.notifySubscribers - Indicates whether the configuration subscribers
registered with the SLAMD server should be
notified of the change.
com.sleepycat.je.DatabaseException - If a problem occurs while attempting to store
the configuration parameter.
public void removeConfigParameter(java.lang.String parameterName)
throws com.sleepycat.je.DatabaseException
parameterName - The name of the configuration parameter to remove
from the configuration database.
com.sleepycat.je.DatabaseException - If problem occurs while interacting with the
configuration database.
public JobFolder getFolder(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder to retrieve.
null if no such folder
exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while trying to decode the
folder from the configuration database.
public JobFolder[] getFolders()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void writeFolder(JobFolder jobFolder)
throws com.sleepycat.je.DatabaseException
jobFolder - The folder to write to the configuration database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void removeFolder(java.lang.String folderName,
boolean deleteContents)
throws com.sleepycat.je.DatabaseException
folderName - The name of the job folder to remove from the
configuration database.deleteContents - Indicates whether to remove the jobs, optimizing
jobs, and uploaded files associated with the
folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public JobFolder getVirtualFolder(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the virtual folder to retrieve.
null if no such
folder exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while trying to decode the
virtual folder from the configuration database.
public JobFolder[] getVirtualFolders()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void writeVirtualFolder(JobFolder jobFolder)
throws com.sleepycat.je.DatabaseException
jobFolder - The virtual folder to write to the configuration
database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void removeVirtualFolder(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException
folderName - The name of the virtual job folder to remove from the
configuration database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public Job getJob(java.lang.String jobID)
throws com.sleepycat.je.DatabaseException,
DecodeException
jobID - The job ID of the job to retrieve from the database.
null if no such job exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while decoding the job
information.
public Job getSummaryJob(java.lang.String jobID)
throws com.sleepycat.je.DatabaseException,
DecodeException
jobID - The job ID of the job to retrieve from the database.
null if no such job exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while decoding the job
information.
public Job[] getJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder for which to retrieve the
associated jobs.
null if there is no such
folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified folder.
public Job[] getCompletedJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder for which to retrieve the
associated jobs.
null if there is no such
folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified folder.
public Job[] getVirtualJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the virtual folder for which to retrieve
the associated jobs.
null if there is no such
folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified virtual folder.
public Job[] getSummaryJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder for which to retrieve the
associated jobs.
null if there is no such folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified folder.
public Job[] getCompletedSummaryJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder for which to retrieve the
associated jobs.
null if there is no such folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified folder.
public Job[] getSummaryVirtualJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the virtual folder for which to retrieve
the associated jobs.
null if there is no such folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified virtual folder.
public void writeJob(Job job)
throws com.sleepycat.je.DatabaseException
job - The job to write to the database.
com.sleepycat.je.DatabaseException - If a problem occurs while attempting to write
the job information.public java.lang.String[] getDisabledJobIDs()
public Job[] getDisabledJobs()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
database.public java.lang.String[] getPendingJobIDs()
public Job[] getPendingJobs()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
database.public java.lang.String[] getRunningJobIDs()
public Job[] getRunningJobs()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
database.
public void removeJob(java.lang.String jobID)
throws com.sleepycat.je.DatabaseException
jobID - The job ID of the job to remove from the configuration
database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void moveJob(java.lang.String jobID,
java.lang.String folderName)
throws com.sleepycat.je.DatabaseException
jobID - The job ID of the job to move.folderName - The name of the new folder in which to place the job.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public OptimizingJob getOptimizingJob(java.lang.String optimizingJobID)
throws com.sleepycat.je.DatabaseException,
DecodeException
optimizingJobID - The ID of the optimizing job to retrieve from the
database.
null if no such job exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while decoding the optimizing
job information.
public OptimizingJob getSummaryOptimizingJob(java.lang.String optimizingJobID)
throws com.sleepycat.je.DatabaseException,
DecodeException
optimizingJobID - The ID of the optimizing job to retrieve from the
database.
null if no such job
exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while decoding the optimizing
job information.
public OptimizingJob[] getOptimizingJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder for which to retrieve the
associated optimizing jobs.
null if there is no
such folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified folder.
public OptimizingJob[] getSummaryOptimizingJobs(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder for which to retrieve the
associated optimizing jobs.
null if there is no such folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while attempting to decode
the specified folder.
public void writeOptimizingJob(OptimizingJob optimizingJob)
throws com.sleepycat.je.DatabaseException
optimizingJob - The optimizing job to write to the database.
com.sleepycat.je.DatabaseException - If a problem occurs while attempting to write
the optimizing job information.
public void removeOptimizingJob(java.lang.String optimizingJobID)
throws com.sleepycat.je.DatabaseException
optimizingJobID - The ID of the optimizing job to remove from the
configuration database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void moveOptimizingJob(java.lang.String optimizingJobID,
java.lang.String folderName)
throws com.sleepycat.je.DatabaseException
optimizingJobID - The job ID of the job to move.folderName - The name of the new folder in which to place the
optimizing job.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public JobGroup[] getJobGroups()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public JobGroup[] getSummaryJobGroups()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public JobGroup getJobGroup(java.lang.String jobGroupName)
throws com.sleepycat.je.DatabaseException,
DecodeException
jobGroupName - The name of the job group to retrieve.
null if no such job group
exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If a problem occurs while trying to decode the
requested job group information.
public void writeJobGroup(JobGroup jobGroup)
throws com.sleepycat.je.DatabaseException
jobGroup - The job group to be written to the configuration
database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void removeJobGroup(java.lang.String jobGroupName)
throws com.sleepycat.je.DatabaseException
jobGroupName - The name of the job group to remove from the
configuration database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public UploadedFile getUploadedFile(java.lang.String folderName,
java.lang.String fileName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder in which the specified file is
located.fileName - The name of the uploaded file to retrieve.
null if no such file
exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If the uploaded file cannot be decoded for some
reason.
public UploadedFile getUploadedFileWithoutData(java.lang.String folderName,
java.lang.String fileName)
throws com.sleepycat.je.DatabaseException,
DecodeException
folderName - The name of the folder in which the specified file is
located.fileName - The name of the uploaded file to retrieve.
null if no such file
exists.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
DecodeException - If the uploaded file cannot be decoded for some
reason.
public UploadedFile[] getUploadedFiles(java.lang.String folderName)
throws com.sleepycat.je.DatabaseException
folderName - The name of the folder for which to retrieve the
uploaded files.
null if there is no such folder.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void writeUploadedFile(UploadedFile uploadedFile,
java.lang.String folderName)
throws com.sleepycat.je.DatabaseException
uploadedFile - The uploaded file to be written to the configuration
database.folderName - The name of the folder in which the specified file
should be placed.
com.sleepycat.je.DatabaseException - If a problem occurs while writing information
about the specified file to the configuration
database.
public void removeUploadedFile(java.lang.String folderName,
java.lang.String fileName)
throws com.sleepycat.je.DatabaseException
folderName - The name of the folder from which to remove the file.fileName - The name of the uploaded file to remove.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public JobClass[] getJobClasses()
throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException - If a problem occurs while obtaining the set of
job classes.
public void addJobClass(java.lang.String className)
throws com.sleepycat.je.DatabaseException
className - The name of the job class to add to the configuration
database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.
public void removeJobClass(java.lang.String className)
throws com.sleepycat.je.DatabaseException
className - The job class to remove from the configuration database.
com.sleepycat.je.DatabaseException - If a problem occurs while interacting with the
configuration database.public ConfigSubscriber[] getConfigSubscribers()
public static java.lang.String getSafeName(ConfigSubscriber subscriber)
subscriber - The configuration subscriber for which to retrieve the
safe name.
public ConfigSubscriber subscriberForSafeName(java.lang.String name)
name - The safe name for which to retrieve the corresponding config
subscriber.
null if there is no such subscriber.public void registerAsSubscriber(ConfigSubscriber subscriber)
subscriber - The configuration subscriber with which to register.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||