|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibi.broker.api.data.schedule.Task
ibi.broker.api.data.schedule.TaskWFServerProcedure
public class TaskWFServerProcedure
The TaskWFServerProcedure class is one of six task types supported by ReportCaster (MyReport, Standard Report, File, FTP and URL are the others). Each task type corresponds to a means of running or accessing a report that can be distributed by ReportCaster. TaskWFServerProcedure enables you to schedule the distribution of reports that reside specifically on a WebFOCUS Reporting Server. A WebFOCUS Server procedure is a FOCUS executable (FOCEXEC) residing on a WebFOCUS Reporting Server which is accessible to the distribution server. The code below illustrates the use of the TaskWFServerProcedure class. It is taken from the samples packaged with the product. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Copyright (c) 2004 Information Builders, Inc. All Rights Reserved. + + + + Information Builders offers sample API programs as a heuristic device. + + They are not intended, as is, for production use. Licensed users are + + welcome to alter and extend these samples and deploy them in other + + environments, or alternate configurations, as they see fit. + + Information Builders will support the documented functionality of + + its API classes and methods. However, Information Builders is not + + responsible for functionality or behavior of products built with + + its API unless the documented behavior of its discrete classes and + + methods is different than the actual results. + + + + Redistributions of IBI source code and documentation must be within + + the scope of the Information Builders Software License Agreement. + + + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ public class S01_Add_Library { public S01_Add_Library(String[] arg) throws Exception { // Example of arg // scheduleDescription car execid execpass // //Example of Report source //TABLE FILE CAR //PRINT CAR WHERE //COUNTRY EQ 'ENGLAND' //END // String scheduleDescription = arg[0]; String fexFileName = arg[1]; String execId = arg[2]; String execPassword = arg[3]; // Create ScheduleManager ScheduleManager manager = Util.createCasterConnection().getScheduleManager(); //create object schedule with default values from config file Schedule schedule = manager.createScheduleInstanceDefault(); //set description schedule.setDescription(scheduleDescription); //set distribution to library Distribution distribution = new StorageLibrary(); schedule.setDistribution(distribution); //create task TaskWFServerProcedure task = new TaskWFServerProcedure(); task.setProcedureName(fexFileName); task.setExecId(execId); task.setExecPassword(execPassword); schedule.setTaskList(new Task[]{task}); //subscribe schedule manager.addSchedule(schedule); } public static void main(String[] arg) { S01_Add_Library sampl = null; if(arg.length < 4) { menu(); return; } try { System.out.println("\n******* " + S01_Add_Library.class.getName() + " *****************"); sampl = new S01_Add_Library(arg); System.out.println("\n" + sampl.getClass().getName() + " OK"); } catch(Exception ce) { ce.printStackTrace(); System.out.println(sampl.getClass().getName() + " FAIL"); } } private static void menu() { System.out.println("Usage: java " + S01_Add_Library.class.getName() + " <scheduleDescription> <fexFileName> <execId> <execPassword>"); } }
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ibi.broker.api.data.schedule.Task |
---|
Task.SystemTask |
Field Summary | |
---|---|
static java.lang.String |
AHTML
String identifier for send format AHTML. |
static java.lang.String |
ALPHA
String identifier for send format ALPHA. |
static java.lang.String |
APDF
|
static java.lang.String |
COM
|
static java.lang.String |
COMMA
String identifier for send format COMMA. |
static java.lang.String |
COMT
String identifier for send format COMT. |
static java.lang.String |
DFIX_DELIMITER
|
static java.lang.String |
DHTML
String identifier for send format DHTML. |
static java.lang.String |
DOC
String identifier for send format DOC. |
static java.lang.String |
EXCEL
String identifier for send format EXCEL. |
static java.lang.String |
EXCEL_TEMPLATE
String identifier for send format EXLEL TEMPLATE. |
static java.lang.String |
EXL07
|
static java.lang.String |
EXL07_TEMPLATE
|
static java.lang.String |
EXL2K
String identifier for send format EXL2K. |
static java.lang.String |
EXL2K_FORMULA
String identifier for send format EXL2K FORMULA. |
static java.lang.String |
EXL2K_PIVOT
String identifier for send format EXL2K PIVOT. |
static java.lang.String |
EXL97
String identifier for send format EXL97. |
static java.lang.String |
FLEX
|
static java.lang.String |
GIF
String identifier for send format GIF. |
static java.lang.String |
HTML
String identifier for send format HTML (Default). |
static java.lang.String |
HTML_ODP
|
static java.lang.String |
JPEG
|
static java.lang.String |
MHT
|
static java.lang.String |
PDF
String identifier for send format PDF. |
static java.lang.String |
PNG
String identifier for send format PNG. |
static java.lang.String |
PPT
String identifier for send format PPT. |
static java.lang.String |
PPT_TEMPLATE
String identifier for send format PPT TEMPLATE. |
static java.lang.String |
PPTX
String identifier for send format PPTX. |
static java.lang.String |
PS
String identifier for send format PS. |
static java.lang.String |
SVG
String identifier for send format SVG. |
static java.lang.String |
TAB
|
static java.lang.String |
TABT
String identifier for send format TABT. |
static java.lang.String |
VISDIS
String identifier for send format VISDIS. |
static java.lang.String |
VISDISAE
|
static java.lang.String |
WK1
String identifier for send format WK1. |
static java.lang.String |
WP
String identifier for send format WP. |
static java.lang.String |
XML
String identifier for send format XML. |
Fields inherited from class ibi.broker.api.data.schedule.Task |
---|
description, enabled, FILE, FTP, id, MAINFRAME_JES_RETRIEVE, MY_REPORT, procedureName, reportName, SCHEDULE, STANDARD_REPORT, taskRetry, URL, WEBFOCUS_SERVER_PROCEDURE |
Constructor Summary | |
---|---|
TaskWFServerProcedure()
|
Method Summary | |
---|---|
void |
addParameter(Parameter parameter)
|
java.lang.String[] |
getAllowFormatList()
|
java.lang.String |
getExecId()
Obtains the user name needed to establish a connection to the WebFOCUS Reporting Server. |
java.lang.String |
getExecPassword()
Obtains the password needed to establish a connection to the WebFOCUS Reporting Server. |
java.lang.String |
getFirstPostProcessingProcedure()
Obtains the name of the first of two possible post-processing procedures that can be associated with this WebFOCUS Server procedure task. |
java.lang.String |
getFirstPreProcessingProcedure()
Obtains the name of the first of two possible pre-processing procedures that can be associated with this WebFOCUS Server procedure task. |
Parameter[] |
getParameterList()
Obtains an array of Parameter objects, with each object representing a name value pair that is matched and then resolved upon the execution of this WebFOCUS Server procedure. |
java.lang.String |
getSecondPostProcessingProcedure()
Obtains the name of the second of two possible post-processing procedures that can be associated with this WebFOCUS Server Procedure task. |
java.lang.String |
getSecondPreProcessingProcedure()
Obtains the name of the second of two possible pre-processing procedures that can be associated with this WebFOCUS Server Procedure task. |
java.lang.String |
getSendFormat()
Obtains the String constant representing the format of the report that will be generated by the WebFOCUS Reporting Server. |
java.lang.String |
getServerName()
Obtains the name of the WebFOCUS Reporting Server housing the FOCUS procedure associated with this task. |
boolean |
isBurst()
Obtains the value of a boolean flag that specifies whether or not report bursting is enabled. |
void |
setAllowFormatList(java.lang.String[] allowFormatList)
|
void |
setBurst(boolean burst)
Assigns the value of a boolean flag that specifies whether or not report bursting is enabled. |
void |
setExecId(java.lang.String execId)
Assigns the user name needed to establish a connection to the WebFOCUS Reporting Server. |
void |
setExecPassword(java.lang.String execPassword)
Assigns the password needed to establish a connection to the WebFOCUS Reporting Server. |
void |
setFirstPostProcessingProcedure(java.lang.String firstPostProcessingProcedure)
Assigns the name of the first of two possible post-processing procedures that can be associated with this WebFOCUS Server Procedure task. |
void |
setFirstPreProcessingProcedure(java.lang.String firstPreProcessingProcedure)
Assigns the name of the first of two possible pre-processing procedures that can be associated with this WebFOCUS Server procedure task. |
void |
setParameterList(Parameter[] parameterList)
Obtains an array of Parameter objects, with each object representing a name value pair, that is matched and then resolved upon the execution of this WebFOCUS Server procedure. |
void |
setSecondPostProcessingProcedure(java.lang.String secondPostProcessingProcedure)
Assigns the name of the second of two possible post-processing procedures that can be associated with this WebFOCUS Server Procedure task. |
void |
setSecondPreProcessingProcedure(java.lang.String secondPreProcessingProcedure)
Assigns the name of the second of two possible pre-processing procedures that can be associated with this WebFOCUS Server Procedure task. |
void |
setSendFormat(java.lang.String sendFormat)
Assigns the String constant representing the format of the report that will be generated by the WebFOCUS Reporting Server. |
void |
setServerName(java.lang.String serverName)
Assigns the name of the WebFOCUS Reporting Server housing the FOCUS procedure associated with this task. |
Methods inherited from class ibi.broker.api.data.schedule.Task |
---|
getDescription, getId, getProcedureName, getReportName, getTaskRetry, isEnabled, setDescription, setEnabled, setId, setProcedureName, setReportName, setTaskRetry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AHTML
public static final java.lang.String HTML
public static final java.lang.String HTML_ODP
public static final java.lang.String PDF
public static final java.lang.String PS
public static final java.lang.String DOC
public static final java.lang.String WP
public static final java.lang.String EXCEL
public static final java.lang.String EXL2K
public static final java.lang.String WK1
public static final java.lang.String ALPHA
public static final java.lang.String GIF
public static final java.lang.String PNG
public static final java.lang.String SVG
public static final java.lang.String XML
public static final java.lang.String TABT
public static final java.lang.String TAB
public static final java.lang.String COMMA
public static final java.lang.String COMT
public static final java.lang.String EXL2K_FORMULA
public static final java.lang.String EXL2K_PIVOT
public static final java.lang.String EXL97
public static final java.lang.String EXCEL_TEMPLATE
public static final java.lang.String PPT
public static final java.lang.String PPTX
public static final java.lang.String PPT_TEMPLATE
public static final java.lang.String DHTML
public static final java.lang.String VISDIS
public static final java.lang.String VISDISAE
public static final java.lang.String COM
public static final java.lang.String JPEG
public static final java.lang.String MHT
public static final java.lang.String FLEX
public static final java.lang.String APDF
public static final java.lang.String EXL07
public static final java.lang.String EXL07_TEMPLATE
public static final java.lang.String DFIX_DELIMITER
Constructor Detail |
---|
public TaskWFServerProcedure()
Method Detail |
---|
public boolean isBurst()
setBurst(boolean)
public void setBurst(boolean burst)
burst
- The boolean burst flag.isBurst()
public java.lang.String getFirstPostProcessingProcedure()
setFirstPostProcessingProcedure(java.lang.String)
public void setFirstPostProcessingProcedure(java.lang.String firstPostProcessingProcedure)
firstPostProcessingProcedure
- The fully qualified path of a reporting server accessible, post-processing FOCUS procedure as a String.getFirstPostProcessingProcedure()
public java.lang.String getFirstPreProcessingProcedure()
setFirstPreProcessingProcedure(java.lang.String)
public void setFirstPreProcessingProcedure(java.lang.String firstPreProcessingProcedure)
getFirstPreProcessingProcedure()
public Parameter[] getParameterList()
setParameterList(ibi.broker.api.data.schedule.Parameter[])
public void setParameterList(Parameter[] parameterList)
parameterList
- An array of Parameter objects.getParameterList()
public java.lang.String getExecPassword()
setExecPassword(String)
public void setExecPassword(java.lang.String execPassword)
execPassword
- The password String.getExecPassword()
public java.lang.String getSecondPostProcessingProcedure()
setSecondPostProcessingProcedure(java.lang.String)
public void setSecondPostProcessingProcedure(java.lang.String secondPostProcessingProcedure)
secondPostProcessingProcedure
- The fully qualified path of a reporting server accessible, post-processing FOCUS procedure as a String.getSecondPostProcessingProcedure()
public java.lang.String getSecondPreProcessingProcedure()
setSecondPreProcessingProcedure(java.lang.String)
public void setSecondPreProcessingProcedure(java.lang.String secondPreProcessingProcedure)
secondPreProcessingProcedure
- The fully qualified path of a reporting server accessible, pre-processing FOCUS procedure as a String.getSecondPreProcessingProcedure()
public java.lang.String getSendFormat()
setSendFormat(java.lang.String)
public void setSendFormat(java.lang.String sendFormat)
sendFormat
- The format of this report as a String constant.getSendFormat()
public java.lang.String getServerName()
setServerName(java.lang.String)
public void setServerName(java.lang.String serverName)
serverName
- The name of the Reporting Server.getServerName()
public java.lang.String getExecId()
setExecId(String)
public void setExecId(java.lang.String execId)
execId
- The user name as a String.getExecId()
public java.lang.String[] getAllowFormatList()
public void setAllowFormatList(java.lang.String[] allowFormatList)
public void addParameter(Parameter parameter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |