|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RptServer
RptServer is an interface for using JReport Server. This interface
defines methods to initialize an RptServer, to start/restart an RptServer,
to shutdown an RptServer, to get resource information about the RptServer, to run a report,
to submit a scheduled task etc.
This interface starts it's own private JReport Server instance of which there
can only be one active on a system.
This interface is designed to be called from an Java application program. If
you are using a JSP program use the subclass HttpRptServer.
Use the following code to create a new RptServer.
//set report home
System.getProperties().put("reporthome", "C:\\JReport\\Server");
//creates instance of RptServer
HttpUtil.initEnv(System.getProperties());
RptServer server = HttpUtil.getHttpRptServer();
To communicate to an existing JReport Server there are two options.
// Set reporthome and set the RMI security file location in case we connect remotely
System.getProperties().put("reporthome","C:\\JReport\\Server");
System.getProperties().put("jrs.rmi.auth_file", "C:\\JReport\\Server\\bin\\rmi.auth");
// get a RemoteRptServer instance
RemoteRptServer server = RemoteReportServerToolkit.getRemoteRptServer(host, port);
2. Use the JReport Client API, see api/jet/client/api/JRClient.
| Method Summary | |
|---|---|
boolean |
canAutoRefresh(java.lang.String name)
This method is used to determine if the pipeline html page is set to auto-refresh. |
java.lang.String |
copySchedules(java.lang.String[] taskids,
java.lang.String user)
Copies the selected scheduled tasks. |
java.lang.String |
deleteCRDSchedules(java.util.Vector taskids,
java.lang.String user)
Deletes the selected Cached Report Data (CRD) schedules. |
java.lang.String |
deleteCubeSchedules(java.util.Vector taskids,
java.lang.String user)
Deletes the selected cube schedules. |
java.lang.String |
deleteSchedules(java.lang.String[] taskids,
java.lang.String user)
Deletes the selected scheduled tasks. |
void |
delScriptFile(java.lang.String filename)
Deprecated. |
boolean |
disableScheduledTask(java.lang.String taskID)
Disables a scheduled task using the specified task ID. |
java.lang.String |
disableSchedules(java.lang.String[] taskids,
java.lang.String user)
Disables the selected scheduled tasks. |
void |
dumpEnginesInfo()
Invokes this method to dump all currently active engines' instant information (status) |
boolean |
enableScheduledTask(java.lang.String taskID)
Enables a scheduled task using the specified task ID. |
java.lang.String |
enableSchedules(java.lang.String[] taskids,
java.lang.String user)
Enables the selected scheduled tasks. |
ExportedFileList |
exportResult(java.lang.String userID,
java.lang.String resultFileName,
java.util.Properties props)
Exports a report result to RST, HTML, PDF, TEXT, Excel, XML, RTF and PS. |
java.lang.String |
exportResultToOneFormat(java.lang.String userID,
java.lang.String resultFileName,
java.util.Properties props)
Exports a report result to RST, HTML, PDF, TEXT, Excel, XML, RTF or PS. |
java.lang.String |
exportScripts(java.lang.String userID,
java.lang.String[] taskIDs)
Generates run scripts for the specified tasks. |
java.util.Vector |
getActiveTasks()
Gets active tasks. |
java.util.Vector |
getActiveTasksByUser(java.lang.String userId)
Gets active tasks by submitter. |
AdminService |
getAdminService()
Gets the admin service of the report server. |
AliasMappingManager |
getAliasMappingManager()
Gets the alias mapping manager. |
CatalogInfo |
getCatalogInfo(java.lang.String userID,
java.lang.String catalog,
int catVerNumber)
Gets the CatalogInfo of the specific version of the catalog. |
ClusterMonitor |
getClusterMonitor()
Gets the cluster monitor. |
ClusterService |
getClusterService()
Gets the report cluster service. |
CompletedTaskTable |
getCompletedTaskTable()
Gets the CompletedTaskTable. |
CRDManager |
getCRDManager()
Gets the CRD manager. |
java.util.Properties |
getCRDTask(java.lang.String taskID)
Gets the properties of a CRD task using the specified task ID. |
CubeManager |
getCubeManager()
Get the cube manager. |
java.util.Properties |
getCubeTask(java.lang.String taskID)
Gets the properties of a cube task using the specified task ID. |
java.util.GregorianCalendar |
getCurrentCalendar()
Gets the current calendar. |
DashboardListenerManager |
getDashboardListenerManager()
Gets the Dashboard listener Manager. |
DHTMLClientService |
getDHTMLClientService()
Gets the DHTMLClientService. |
DynamicConnectionService |
getDynamicConnectionService()
Gets the DynamicConnection service. |
java.util.List |
getEngineErrors(java.lang.String resultFile)
Gets the engine errors after running a report. |
java.lang.String |
getFilenames(java.lang.String name,
int index)
This method is used to get the order index's html file names. |
GlobalNLSLibrary |
getGlobalNLSLibrary()
Gets the Global NLS Library. |
jet.web.dhtml.HelpAPI |
getHelpService()
Gets the HelpAPI. |
com.jinfonet.ibus.InformationBusManager |
getInformationBusManager()
Gets the Information Bus Manager of JReport Server. |
InteractiveReportTaskService |
getInteractiveReportTaskService()
Gets the InteractiveReport task service. |
LargeReportManager |
getLargeReportManager()
Deprecated. As of v8, replaced by getOndemandReportManager() |
java.lang.String |
getLicenceExpiredDate()
Gets the expiration date of the server license |
java.util.Hashtable |
getMediaTray()
Gets the names of printers' media tray. |
MonitorService |
getMonitorService()
Gets the monitor service of the server. |
NLSLibraryManager |
getNLSLibraryManager()
Gets the NLS Library Manager of JReport Server. |
OndemandReportManager |
getOndemandReportManager()
Gets the OndemandReportManager. |
java.lang.String[] |
getPaperList()
Gets the print paper list. |
ParameterRecorder |
getParameterRecorder()
Gets the report parameter recorder to allow the user to get and set historical parameter value. |
java.util.Vector |
getPrinters()
Gets the names of printers. |
ProfileManager |
getProfileManager()
Gets the function profile manager, which is used to manage the function profiles. |
RemoteFileService |
getRemoteFileService()
Gets RemoteFileService object which running at this RptServer. |
ReportInfo |
getReportInfo(java.lang.String userID,
java.lang.String catalog,
int catVerNumber,
java.lang.String report,
int rptVerNumber)
Gets ReportInfo of specific version of catalog and report. |
ReportInfo |
getReportInfo(java.lang.String userID,
java.lang.String catalog,
int catVerNumber,
java.lang.String report,
int rptVerNumber,
java.util.Hashtable ht)
Gets the ReportInfo of the specific version of the catalog and report. |
ReportInfo |
getReportInfo(java.lang.String userID,
java.lang.String catalog,
java.lang.String report)
Gets the ReportInfo of the specific catalog and report. |
ResourceManager |
getResourceManager()
Gets the ResourceManager. |
ResourceNLSManager |
getResourceNLSManager()
Gets the NLS manager for server resource names |
ResultVersionTable |
getResultVersionTable()
Gets the ResultVersionTable. |
RstResultInfo |
getRstResultInfo(java.lang.String rst)
Gets the RstResultInfo of the specific rst file. |
java.util.Vector |
getSchedCRDTasks()
Gets the scheduled CRD tasks. |
java.util.Vector |
getSchedCRDTasksByUser(java.lang.String userId)
Gets the scheduled CRD tasks by submitter. |
java.util.Vector |
getSchedCubeTasks()
Gets the scheduled cube tasks. |
java.util.Vector |
getSchedCubeTasksByUser(java.lang.String userId)
Gets the scheduled cube tasks by submitter. |
java.util.Properties |
getScheduledTask(java.lang.String taskID)
Gets the properties of a scheduled task using the specified task ID. |
java.util.Vector |
getScheduledTasks()
Gets the scheduled tasks. |
java.util.Vector |
getScheduledTasksByUser(java.lang.String userId)
Gets the scheduled tasks by submitter |
java.lang.String[] |
getScriptsList()
Deprecated. |
SecurityWebAdaptor |
getSecurityWebAdaptor()
Gets the SecurityWebAdaptor. |
ServerEnv |
getServerEnv()
Gets the ServerEnv. |
jet.server.service.ServiceManager |
getServiceManager()
Gets the Service Manager. |
SimpleDHtmlAPI |
getSimpleDHtmlService()
Gets the SimpleDHtmlAPI. |
SystemPerformanceInfo |
getSystemPerformanceInfo()
Gets the System Performance information of which this RptServer instance is running. |
TaskAuditor |
getTaskAuditor()
Get the Task Auditor. |
TempResultOwnerManager |
getTempResultOwnerManager()
Gets the TempResultOwnerManager. |
TriggerManager |
getTriggerManager()
Opens the TriggerManager interface. |
UserPreferenceManager |
getUserDHTMLPreferenceManager()
Gets the preference manager to allow the user to and save his/her dhtml preference. |
UserPreferenceManager |
getUserPreferenceManager()
Gets the preference manager to allow the user to get and save his/her preference. |
UserSessionManager |
getUserSessionManager()
Gets the UserSessionManager. |
VersionAmountLimitTable |
getVersionAmountLimitTable()
Gets the VersionAmountTable. |
WebUIConfig |
getWebUIConfig()
Gets the WebUIConfig. |
void |
init(java.util.Properties svrProps)
Initializes RptServer. |
boolean |
isClusterEnable()
Checks if this server has the cluster feature. |
boolean |
isFreeVirtualAppliance()
Checks if this server is free virtual appliance. |
boolean |
isHtmlPipeLine(java.lang.String name)
This method is used to determine if the temp result is the pipeline html. |
boolean |
isRunningQueue()
Checks if the running report is managed by a running report queue |
boolean |
isScriptFileExist(java.lang.String filename)
Deprecated. |
boolean |
isStarted()
Checks if the server is running. |
boolean |
isTaskQueueFull(int priority)
Returns whether the task queue is full. |
boolean |
isTempResultReady(java.lang.String tempResultName)
Checks if the temporary result is ready. |
java.lang.String |
loadScheduledFromFile(java.lang.String fileName)
Loads scheduled tasks from an exported schedule file. |
java.lang.String |
loadScriptFromFile(java.lang.String filename)
Deprecated. |
java.util.Properties[] |
parseScripts(java.lang.String scripts)
Parses given scripts, and transfers corresponding task into Properties object. |
void |
publishResultToVersion(java.lang.String userid,
java.util.Properties ht)
Publishes report result to version system when viewing report result |
boolean |
removeScheduledTask(java.lang.String taskID)
Removes a scheduled task using the specified task ID. |
void |
restart(java.util.Properties svrProps)
Restarts the RptServer. |
java.lang.String |
runReport(java.lang.String userID,
java.lang.String catalog,
java.lang.String report,
java.util.Properties propParams)
Runs an on-demand report immediately and waits for it. |
java.lang.String |
runReportNotWaitResult(java.lang.String userID,
java.lang.String catalog,
java.lang.String report,
java.util.Properties propParams)
Runs an on-demand report in the background. |
java.lang.String |
runReportWithTimeouts(java.lang.String userID,
java.lang.String catalog,
java.lang.String report,
java.util.Properties propParams,
long timeouts)
Runs an on-demand report immediately with timeouts. |
java.lang.String |
runTask(java.lang.String userID,
java.util.Properties propTask)
Runs a scheduled task immediately and returns the completed task ID. |
long |
runTestReport(java.util.Properties ht)
Runs a test report. |
java.lang.String |
saveScheduledToFile(java.lang.String[] taskid,
java.lang.String fileName,
boolean bOverWrite)
Saves scheduled tasks to a schedule script file. |
java.lang.String |
saveScheduledToScriptFile(java.lang.String[] taskid)
Deprecated. |
boolean |
saveScriptToFile(java.lang.String script,
java.lang.String filename)
Deprecated. |
void |
setJDBCConnection(java.lang.String userID,
java.lang.String catalog,
java.lang.String jdbcURL,
java.lang.String dbUser,
java.lang.String dbPswd,
java.lang.String jdbcDriver)
Deprecated. Replaced by properties jrs.jdbc_url, jrs.jdbc_driver and jrs.jdbc_connection_object for running reports. |
void |
setRefreshed(java.lang.String name,
boolean isRefreshed)
This method is used for setting if the first pipeline html page is refreshed. |
void |
setTempResultOwnerManager(TempResultOwnerManager ownerMan)
Sets the TempResultOwnerManager. |
void |
setUserSessionManager(UserSessionManager ssnMan)
Sets the UserSessionManager. |
void |
shutdown()
Shuts down the RptServer. |
void |
start()
Starts the RptServer. |
boolean |
stopActiveTask(java.lang.String taskID)
Stops a scheduled task using the task ID. |
boolean |
stopActiveTaskByUser(java.lang.String taskID,
java.lang.String userId)
Stops a scheduled task using the task ID and submitter. |
java.lang.String |
submitScheduledTask(java.lang.String userID,
java.util.Properties propScheduledTask)
Submits a scheduled task and returns the task ID. |
java.lang.Object[] |
submitScheduledTasks(java.lang.String userID,
java.util.Properties[] tasks)
Submits a set of scheduled tasks and returns the task IDs. |
java.lang.String |
waitTempResultReady(java.lang.String tempResultName)
Waits for the temporary result to be ready and returns a status message. |
| Method Detail |
|---|
void init(java.util.Properties svrProps)
svrProps - properties of the server. These properties related to the
implementation of the RptServer.
For the jet.server.jrserver.JRRptServer of JReport's implementation,
the property "reporthome" must be set, and
other properties are optional. The properties are:
void start()
boolean isStarted()
void restart(java.util.Properties svrProps)
svrProps - properties of the server. These properties are related to the
implementation of RptServer.void shutdown()
ServerEnv getServerEnv()
ServerEnvResourceManager getResourceManager()
ResourceManagerSecurityWebAdaptor getSecurityWebAdaptor()
SecurityWebAdaptorSimpleDHtmlAPI getSimpleDHtmlService()
SimpleDHtmlAPIDHTMLClientService getDHTMLClientService()
DHTMLClientServiceRemoteFileService getRemoteFileService()
RemoteFileService object which running at this RptServer.
RemoteFileServicejet.web.dhtml.HelpAPI getHelpService()
HelpAPITempResultOwnerManager getTempResultOwnerManager()
TempResultOwnerManagerLargeReportManager getLargeReportManager()
getOndemandReportManager()
LargeReportManagervoid setTempResultOwnerManager(TempResultOwnerManager ownerMan)
ownerMan - the TempResultOwnerManager.TempResultOwnerManagerUserSessionManager getUserSessionManager()
UserSessionManagervoid setUserSessionManager(UserSessionManager ssnMan)
ssnMan - the UserSessionManager.UserSessionManagerRstResultInfo getRstResultInfo(java.lang.String rst)
rst - the real path of the rst file, for example, c:\temp\rst.
RstResultInfo
ReportInfo getReportInfo(java.lang.String userID,
java.lang.String catalog,
java.lang.String report)
userID - the user ID.catalog - the catalog path in JReport Report server, for example, /SampleReports/SampleReports.cat.report - the report name, for example, /SampleReports/CustomerAnalysis.cls.
ReportInfo
CatalogInfo getCatalogInfo(java.lang.String userID,
java.lang.String catalog,
int catVerNumber)
userID - the user ID.catalog - the catalog path in JReport Report server, for example, /SampleReports/SampleReports.cat.catVerNumber - version number of the catalog
CatalogInfo
ReportInfo getReportInfo(java.lang.String userID,
java.lang.String catalog,
int catVerNumber,
java.lang.String report,
int rptVerNumber)
userID - the user ID.catalog - the catalog path in JReport Report server, for example, /SampleReports/SampleReports.cat.catVerNumber - version number of the catalogreport - the report name, for example, /SampleReports/CustomerAnalysis.cls.rptVerNumber - version number of the report
ReportInfo
ReportInfo getReportInfo(java.lang.String userID,
java.lang.String catalog,
int catVerNumber,
java.lang.String report,
int rptVerNumber,
java.util.Hashtable ht)
userID - the user ID.catalog - the catalog path in JReport Report server, for example, /SampleReports/SampleReports.cat.catVerNumber - version number of the catalogreport - the report name, for example, /SampleReports/CustomerAnalysis.cls.rptVerNumber - version number of the reportht - a hashtable containing some additional properties such as catalog DB connection information.
ReportInfo
java.lang.String submitScheduledTask(java.lang.String userID,
java.util.Properties propScheduledTask)
throws RptServerException
userID - the user ID.propScheduledTask - the properties of the scheduled task. Please see the
RptServerException - if an RptServerException occurs.
java.lang.String runTask(java.lang.String userID,
java.util.Properties propTask)
throws RptServerException
userID - the user ID.propTask - the properties of the task. Please see the
RptServerException - if an RptServerException occurs.
java.lang.String runReport(java.lang.String userID,
java.lang.String catalog,
java.lang.String report,
java.util.Properties propParams)
throws RptServerException,
TooManyReportsException
userID - the user ID.catalog - the catalog path in the report server, for example,/SunVMDemo/SunVMDemo.cat.report - the report name, for example, invoice.cls.propParams - the properties that contains APIConst.TAG_WHERE_PORTION, APIConst.TAG_NAMED_WHERE_PORTION,
APIConst.TAG_WHERE_CLAUSE, APIConst.TAG_USE_DEF_DB_USER, APIConst.TAG_USE_NEW_DB_PSWD,
APIConst.TAG_DB_USER, APIConst.TAG_DB_PSWD, APIConst.TAG_JDBC_URL,
APIConst.TAG_JDBC_DRIVER, APIConst.TAG_JDBC_CONNECTION_OBJECT and
the parameter values of the report.
For each report parameter in the properties, the key is APIConst.TAG_PARAM_PREFIX + PARAMETER_NAME,
the value is the value of the parameter. If the parameter supports multiple choices, the roperty value
must be an array consisting of the values of the parameter.
Example: Running a report with user's JDBC connection object (APIConst.TAG_JDBC_CONNECTION_OBJECT).
//creates the java.sql.Connection object.
java.sql.Connection myCon = java.sql.DriverManager.getConnection(dbUrl);
//sets the parameter APIConst.TAG_JDBC_CONNECTION_OBJECT(jrs.jdbc_connection_object) to run a report.
propParams.put(APIConst.TAG_JDBC_CONNECTION_OBJECT, myCon);
//runs the report using this java.sql.Connection object instead of
//the default DB settings in the catalog.
rptServer.runReport(userID, catalog, report, propParams);
RptServerException - if an RptServerException occurs.
TooManyReportsException
java.lang.String runReportNotWaitResult(java.lang.String userID,
java.lang.String catalog,
java.lang.String report,
java.util.Properties propParams)
throws RptServerException,
TooManyReportsException
userID - the user ID.catalog - the catalog path in the report server, for example, /SunVMDemo/SunVMDemo.cat.report - the report name, for example, invoice.cls.propParams - the properties that contain APIConst.TAG_WHERE_PORTION, APIConst.TAG_NAMED_WHERE_PORTION,
APIConst.TAG_WHERE_CLAUSE, APIConst.TAG_USE_DEF_DB_USER, APIConst.TAG_USE_NEW_DB_PSWD,
APIConst.TAG_DB_USER, APIConst.TAG_DB_PSWD, APIConst.TAG_JDBC_URL,
APIConst.TAG_JDBC_DRIVER, APIConst.TAG_JDBC_CONNECTION_OBJECT and the parameter values of the report.
Example: Running a report with user's JDBC connection object (APIConst.TAG_JDBC_CONNECTION_OBJECT).
//creates the java.sql.Connection object.
java.sql.Connection myCon = java.sql.DriverManager.getConnection(dbUrl);
//sets the parameter APIConst.TAG_JDBC_CONNECTION_OBJECT(jrs.jdbc_connection_object) to run a report.
propParams.put(APIConst.TAG_JDBC_CONNECTION_OBJECT, myCon);
//runs the report using this java.sql.Connection object instead of
//the default DB settings in the catalog.
rptServer.runReportNotWaitResult(userID, catalog, report, propParams);
RptServerException - if an RptServerException occurs.
TooManyReportsException
java.lang.String runReportWithTimeouts(java.lang.String userID,
java.lang.String catalog,
java.lang.String report,
java.util.Properties propParams,
long timeouts)
throws RptServerException,
TooManyReportsException
userID - the user ID.catalog - the catalog path in the report server, for example, /SunVMDemo/SunVMDemo.cat.report - the report name, for example, invoice.cls.propParams - the properties that contain APIConst.TAG_WHERE_PORTION, APIConst.TAG_NAMED_WHERE_PORTION,
APIConst.TAG_WHERE_CLAUSE, APIConst.TAG_USE_DEF_DB_USER, APIConst.TAG_USE_NEW_DB_PSWD,
APIConst.TAG_DB_USER, APIConst.TAG_DB_PSWD, APIConst.TAG_JDBC_URL,
APIConst.TAG_JDBC_DRIVER, APIConst.TAG_JDBC_CONNECTION_OBJECT and the parameter values of the report.
Example: Running a report with user's JDBC connection object (APIConst.TAG_JDBC_CONNECTION_OBJECT).
//creates the java.sql.Connection object.
java.sql.Connection myCon = java.sql.DriverManager.getConnection(dbUrl);
//sets the parameter APIConst.TAG_JDBC_CONNECTION_OBJECT(jrs.jdbc_connection_object) to run a report.
propParams.put(APIConst.TAG_JDBC_CONNECTION_OBJECT, myCon);
//runs the report using this java.sql.Connection object instead of
//the default DB settings in the catalog.
rptServer.runReportWithTimeouts(userID, catalog, report, propParams, jet.server.api.http.HttpUtil.getReportWaitTimeouts());
timeouts - the timeouts in milliseconds.
RptServerException - if an RptServerException occurs.
TooManyReportsException - if a TooManyReportsException occurs.
boolean isTempResultReady(java.lang.String tempResultName)
throws RptServerException
tempResultName - the temporary result name.
RptServerException - if an RptServerException occurs.
java.lang.String waitTempResultReady(java.lang.String tempResultName)
throws java.lang.InterruptedException
tempResultName - the temporary result name.
java.lang.InterruptedException - if an InterruptedException occurs.
java.lang.String exportResultToOneFormat(java.lang.String userID,
java.lang.String resultFileName,
java.util.Properties props)
throws RptServerException
userID - the user ID.resultFileName - the real file name of the result, for example, c:\JReport\Server\temp\18238181130.temp.props - the properties that contains APIConst.TAG_RESULT_TYPE. About properties for each result type, see the help document
RptServerException - if an RptServerException occurs.
ExportedFileList exportResult(java.lang.String userID,
java.lang.String resultFileName,
java.util.Properties props)
throws RptServerException
userID - the user ID.resultFileName - the real file name of the result, for example, c:\JReport\Server\temp\18238181130.temp.props - the properties APIConst.TAG_RST, APIConst.TAG_PDF,
APIConst.TAG_TEXT, APIConst.TAG_EXCEL and APIConst.TAG_PS. Value of these properties is true or false.
The properties APIConst.TAG_HTML, APIConst.TAG_XML and APIConst.TAG_RTF. Value of these properties is file name without path (for example, invoice and invoice.rtf).
About properties for each result type,see the help document
RptServerException - if an RptServerException occurs.ResultVersionTable getResultVersionTable()
ResultVersionTablejava.util.Properties getScheduledTask(java.lang.String taskID)
taskID - the task ID.
boolean removeScheduledTask(java.lang.String taskID)
taskID - the task ID.
boolean enableScheduledTask(java.lang.String taskID)
taskID - the task ID.
boolean disableScheduledTask(java.lang.String taskID)
taskID - the task ID.
boolean stopActiveTask(java.lang.String taskID)
taskID - the task ID.
boolean stopActiveTaskByUser(java.lang.String taskID,
java.lang.String userId)
taskID - the task ID.userId - the submitter
java.util.Vector getScheduledTasks()
java.util.Vector getScheduledTasksByUser(java.lang.String userId)
userId - the submitter
java.util.Vector getActiveTasks()
jet.server.api.ActiveTaskRecord objects. Each
ActiveTaskRecord object contains information of an active task in
the report server.ActiveTaskRecordjava.util.Vector getActiveTasksByUser(java.lang.String userId)
userId - the submitter
jet.server.api.ActiveTaskRecord objects. Each
ActiveTaskRecord object contains information of an active task in
the report server.ActiveTaskRecordCompletedTaskTable getCompletedTaskTable()
CompletedTaskTablejava.util.Vector getPrinters()
java.util.Hashtable getMediaTray()
void setJDBCConnection(java.lang.String userID,
java.lang.String catalog,
java.lang.String jdbcURL,
java.lang.String dbUser,
java.lang.String dbPswd,
java.lang.String jdbcDriver)
throws RptServerException
catalog - the full path catalog name on the resource tree.userID - the user ID.jdbcURL - the URL of the JDBC connection. The value null means that the value is not changed.dbUser - the user ID of the JDBC connection. The value null means that the value is not changed.dbPswd - the password of the JDBC connection. The value null means that the value is not changed.jdbcDriver - the JDBC driver of the JDBC connection. The value null means that the value is not changed.
RptServerException - if an RptServerException occurs.
void publishResultToVersion(java.lang.String userid,
java.util.Properties ht)
throws RptServerException
userid - user IDht - properties of the report result, including catalog name,
report name, temp result file name, parameters if this
report has any parameter.
RptServerException - if an RptServerException occurs.VersionAmountLimitTable getVersionAmountLimitTable()
VersionAmountTableboolean isRunningQueue()
boolean isTaskQueueFull(int priority)
java.lang.String saveScheduledToFile(java.lang.String[] taskid,
java.lang.String fileName,
boolean bOverWrite)
taskid - The id of the task which will be saved to filefileName - The saved scheduled task file's namebOverWrite - If to replace the existing Schedule file
java.lang.String loadScheduledFromFile(java.lang.String fileName)
fileName - The schedule task's fileName which will be loaded
java.lang.String saveScheduledToScriptFile(java.lang.String[] taskid)
taskid - The id of the task which will be save to filefileName - The saved scheduled task file's namebOverWrite - If to replace the existing Schedule file
java.lang.String copySchedules(java.lang.String[] taskids,
java.lang.String user)
taskids - All selected schedule task idsuser - the user
java.lang.String deleteSchedules(java.lang.String[] taskids,
java.lang.String user)
taskids - All selected schedule task idsuser - the user
java.lang.String enableSchedules(java.lang.String[] taskids,
java.lang.String user)
taskids - All selected schedule task idsuser - the user
java.lang.String disableSchedules(java.lang.String[] taskids,
java.lang.String user)
taskids - All selected schedule task idsuser - the user
java.lang.String getFilenames(java.lang.String name,
int index)
name - : the key of the html file name, or example, the key of the html file name 32646870_1.html is 32646870.index - : the order of the html file name
boolean canAutoRefresh(java.lang.String name)
name - the key of the html file name, for example, the key of the html filename 32646870_1.html is 32646870.
void setRefreshed(java.lang.String name,
boolean isRefreshed)
name - the key of the html file name, for example, the key of the html filename 32646870_1.html is 32646870.isRefreshed - if the first pipeline html page is refreshedboolean isHtmlPipeLine(java.lang.String name)
name - : the key of the html file name, for example, the key of the html filename 32646870_1.html is 32646870.
ClusterService getClusterService()
AdminService getAdminService()
RptServer instance is a remote wrapped server, which
is gotten by calling RemoteReportServerToolkit, this method will
throw UnsupportedOperationException always, for remote server API does not support administration functions.jet.server.api.MonitorService getMonitorService()
jet.server.api.monitor.ClusterMonitor getClusterMonitor()
boolean isClusterEnable()
ParameterRecorder getParameterRecorder()
UserPreferenceManager getUserPreferenceManager()
UserPreferenceManager getUserDHTMLPreferenceManager()
ProfileManager getProfileManager()
long runTestReport(java.util.Properties ht)
throws RptServerException
ht - run report needed information, such as report, catalog and
submitter, etc.
RptServerExceptionjava.lang.String[] getScriptsList()
java.lang.String loadScriptFromFile(java.lang.String filename)
filename - - A String of the schedule script file name
boolean saveScriptToFile(java.lang.String script,
java.lang.String filename)
script - - A String object of Scheduler's script textfilename - - File name that the script will be stored with.
boolean isScriptFileExist(java.lang.String filename)
filename - - File name that will be tested
void delScriptFile(java.lang.String filename)
filename - - File name that will be deletedOndemandReportManager getOndemandReportManager()
OndemandReportReportManager
java.lang.String exportScripts(java.lang.String userID,
java.lang.String[] taskIDs)
taskIDs: - specifiedspecified tasks' IDuserID: - specifiedspecified user id
java.util.Properties[] parseScripts(java.lang.String scripts)
throws RptServerException
scripts - contents of the scripts
RptServerExceptionTriggerManager getTriggerManager()
TriggerManager interface
java.lang.Object[] submitScheduledTasks(java.lang.String userID,
java.util.Properties[] tasks)
throws RptServerException
userID - the user ID.tasks - An array of Properties. Each Properties object in the array describes a task. Please see the
RptServerExceptionjava.lang.String[] getPaperList()
void dumpEnginesInfo()
java.util.List getEngineErrors(java.lang.String resultFile)
resultFile - the result file
WebUIConfig getWebUIConfig()
WebUIConfigboolean isFreeVirtualAppliance()
java.lang.String getLicenceExpiredDate()
java.util.Properties getCRDTask(java.lang.String taskID)
taskID - the task ID.
java.util.Vector getSchedCRDTasks()
java.util.Vector getSchedCRDTasksByUser(java.lang.String userId)
userId - the submitter
java.lang.String deleteCRDSchedules(java.util.Vector taskids,
java.lang.String user)
taskids - All selected CRD schedule task idsuser - the user
CRDManager getCRDManager()
java.util.Properties getCubeTask(java.lang.String taskID)
taskID - the task ID.
java.util.Vector getSchedCubeTasks()
java.util.Vector getSchedCubeTasksByUser(java.lang.String userId)
userId - the submitter
java.lang.String deleteCubeSchedules(java.util.Vector taskids,
java.lang.String user)
taskids - All selected cube schedule task idsuser - the user
CubeManager getCubeManager()
jet.server.service.ServiceManager getServiceManager()
java.util.GregorianCalendar getCurrentCalendar()
AliasMappingManager getAliasMappingManager()
GlobalNLSLibrary getGlobalNLSLibrary()
ResourceNLSManager getResourceNLSManager()
TaskAuditor getTaskAuditor()
DashboardListenerManager getDashboardListenerManager()
SystemPerformanceInfo getSystemPerformanceInfo()
InteractiveReportTaskService getInteractiveReportTaskService()
DynamicConnectionService getDynamicConnectionService()
com.jinfonet.ibus.InformationBusManager getInformationBusManager()
NLSLibraryManager getNLSLibraryManager()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||