|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.comm.ISeriesAbstractHostAPIProcessor com.ibm.etools.iseries.comm.ISeriesListSpoolFiles
public class ISeriesListSpoolFiles
A class for listing SpoolFiles on an iSeries. This is done by calling the system API QUSLSPL. The NAME-ONLY retrieval is not implemented.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.etools.iseries.comm.ISeriesAbstractHostAPIProcessor |
---|
ISeriesAbstractHostAPIProcessor.HostAPIErrorCodeStructure |
Field Summary | |
---|---|
static String |
Copyright
|
static int |
LIST_BASIC
Return list with basic information per SpoolFile ( IISeriesHostSpoolFileBasic ) |
static int |
LIST_NAMES
Return list of names only. |
Constructor Summary | |
---|---|
ISeriesListSpoolFiles()
Constructor used when you do not have an AS400 object already. |
|
ISeriesListSpoolFiles(AS400 system)
Constructor when there is an existing AS400 object. |
Method Summary | |
---|---|
protected void |
buildList(int nbrRows,
int listStartingPosition,
int sizePerRow)
Build the list. |
protected String |
getFilterString()
Return the filter string used for this list request. |
protected ISeriesSplfFilterString |
getFilterStringObject()
Return the filter string object used for this list request. |
List |
getList(ISeriesAbstractFilterString fsObj)
As per the IISeriesListProcessor interface requirements. |
List |
getList(ISeriesAbstractFilterString fsObj,
IISeriesHostListBaseFactory listSpoolFileFactory)
Retrieve a list of SpoolFiles, returning objects created by a supplied object factory. |
List |
getList(ISeriesAbstractFilterString fsObj,
IISeriesHostListBaseFactory listSpoolFileFactory,
IISeriesHostListStatusCallback callback)
Retrieve a list of SpoolFiles, informing the caller when processing starts for each part of a multi-generic list. |
List |
getListBrief(ISeriesAbstractFilterString fsObj)
As per the IISeriesListProcessor interface requirements. |
protected void |
getListFromAS400(String filterString)
Call QUSLRCD on AS/400 to get the list. |
ISeriesListSpoolFilesHeader |
getListHeader()
This method returns the SpoolFile list header information. |
List |
getListNameOnly(ISeriesAbstractFilterString fsObj)
As per the IISeriesListProcessor interface requirements. |
protected IISeriesHostListSpoolFileFactory |
getListSpoolFileFactory()
Get object factory used to create new objects. |
int |
getListType()
Retrieve file override value. |
List |
getSpoolFileList(ISeriesSplfFilterString fsObj)
Retrieve a list of SpoolFiles, returning information common to SpoolFiles of both database and device files. |
List |
getSpoolFileList(ISeriesSplfFilterString fsObj,
IISeriesHostListSpoolFileFactory listSpoolFileFactory)
Retrieve a list of SpoolFiles, returning objects created by a supplied object factory. |
List |
getSpoolFileList(ISeriesSplfFilterString fsObj,
IISeriesHostListSpoolFileFactory listSpoolFileFactory,
IISeriesHostListStatusCallback callback)
Retrieve a list of SpoolFiles, informing the caller when processing starts for each part of a multi-generic list. |
List |
getSpoolFileListNameOnly(ISeriesSplfFilterString fsObj)
Retrieve a list of SpoolFiles, returning only the name per SpoolFile. |
protected void |
populateObj()
Build a return object with information for one SpoolFile object. |
protected void |
setFilterStringObj(ISeriesSplfFilterString fsObj)
Set the filter string used for this list request. |
protected void |
setListSpoolFileFactory(IISeriesHostListSpoolFileFactory factory)
Set list SpoolFile factory used to create new objects. |
void |
setListType(int listType)
Set the list type. |
void |
setSystem(AS400 system)
Set the AS/400 object used for this list processor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesAPIProcessor |
---|
getWarnings |
Field Detail |
---|
public static final String Copyright
public static final int LIST_NAMES
public static final int LIST_BASIC
IISeriesHostSpoolFileBasic
)
Constructor Detail |
---|
public ISeriesListSpoolFiles()
public ISeriesListSpoolFiles(AS400 system)
AS400
- system to use for the connection.Method Detail |
---|
public List getListNameOnly(ISeriesAbstractFilterString fsObj) throws Exception
Same as getListNameOnly(ISeriesAbstractFilterString)
getListNameOnly
in interface IISeriesListProcessor
ISeriesHostSpoolFileNameOnly
objects.
Exception
public List getListBrief(ISeriesAbstractFilterString fsObj) throws Exception
getList(ISeriesAbstractFilterString)
!
getListBrief
in interface IISeriesListProcessor
Exception
public List getList(ISeriesAbstractFilterString fsObj) throws Exception
getList
in interface IISeriesListProcessor
ISeriesHostSpoolFileBasic
objects.
Exception
public List getList(ISeriesAbstractFilterString fsObj, IISeriesHostListBaseFactory listSpoolFileFactory) throws Exception
As per the IISeriesListProcessor interface requirements. Not typesafe.
getList
in interface IISeriesListProcessor
Exception
getSpoolFileList(ISeriesSplfFilterString, IISeriesHostListSpoolFileFactory)
public List getList(ISeriesAbstractFilterString fsObj, IISeriesHostListBaseFactory listSpoolFileFactory, IISeriesHostListStatusCallback callback) throws Exception
As per the IISeriesListProcessor interface requirements. Not typesafe.
getList
in interface IISeriesListProcessor
Exception
getSpoolFileList(ISeriesSplfFilterString, IISeriesHostListSpoolFileFactory, IISeriesHostListStatusCallback)
public List getSpoolFileListNameOnly(ISeriesSplfFilterString fsObj) throws Exception
ISeriesHostSpoolFileNameOnly
objects.
Exception
public List getSpoolFileList(ISeriesSplfFilterString fsObj) throws Exception
ISeriesHostSpoolFileBasic
objects.
Exception
public List getSpoolFileList(ISeriesSplfFilterString fsObj, IISeriesHostListSpoolFileFactory listSpoolFileFactory) throws Exception
A type-safe overload.
This is the API callers use when they want to create each object in the returned list, perhaps optimized for their environment. If you are ok with the default returned objects, then just use one of the other getList variations. All others internally call this method with a default factory object.
Note this supports multi-generic lists, where the library and/or file are generic. In this case, the list of libraries will be retrieved first, then for each library the list of files. Finally, for every resulting file, the SpoolFile list as requested is retrieved. The entire list of all SpoolFiles is concatenated together and returned as a single list.
fsObj
- ISeriesSpoolFileFilterString
filter string
object identify what list to get. To construct one of these, pass a string of the form
library/file RCDNAME(SpoolFile)
to its constructor. The SpoolFile name can simple, * or generic as in A*.listSpoolFileFactory
- An object implementing the
IISeriesHostListSpoolFileFactory
interface. This interface prescribes three methods, and the one called depends on the type of list requested:
LIST_NAMES
calls createNameOnlyObject
.
LIST_BASIC
calls createSpoolFileObject
.
#LIST_DEVICE
calls createDeviceSpoolFileObject
.
Exception
public int getListType()
public void setListType(int listType)
listType
- One of LIST_NAMES
, LIST_BASIC
, #LIST_DEVICE
depending if you want:
public List getSpoolFileList(ISeriesSplfFilterString fsObj, IISeriesHostListSpoolFileFactory listSpoolFileFactory, IISeriesHostListStatusCallback callback) throws Exception
A type-safe overload.
This is the same as the getList(ISeriesAbstractFilterString, IISeriesHostListBaseFactory, IISeriesHostListStatusCallback)
method,
but includes a callback object that is called when processing starts for each part of a multi-generic
list request. A multi-generic SpoolFile list is a request where either the library or the file name are themselves
generic, requiring multiple calls to the host SpoolFile list API.
This version of getList is usually used by GUI code that wishes to update a status dialog.
Exception
public ISeriesListSpoolFilesHeader getListHeader()
ISeriesListSpoolFilesHeader
objectprotected void getListFromAS400(String filterString) throws Exception
Exception
protected void buildList(int nbrRows, int listStartingPosition, int sizePerRow) throws Exception
Exception
protected void populateObj()
lib
- obj to populateint
- index into the String where item starts.param
- intprotected void setListSpoolFileFactory(IISeriesHostListSpoolFileFactory factory)
protected IISeriesHostListSpoolFileFactory getListSpoolFileFactory()
protected void setFilterStringObj(ISeriesSplfFilterString fsObj)
protected ISeriesSplfFilterString getFilterStringObject()
protected String getFilterString()
public void setSystem(AS400 system)
ISeriesAbstractHostAPIProcessor
setSystem
in class ISeriesAbstractHostAPIProcessor
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |