|
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.subsystems.qsys.resources.QSYSRemoteMemberTransfer
public class QSYSRemoteMemberTransfer
Field Summary | |
---|---|
static String |
copyright
|
static int |
EOR
|
static String |
FIRST_RECORD
|
Constructor Summary | |
---|---|
QSYSRemoteMemberTransfer(IQSYSMember member,
String localPath)
Constructor with default encoding UTF-8. |
|
QSYSRemoteMemberTransfer(IQSYSMember member,
String localPath,
boolean leaveVisual)
Constructor. |
|
QSYSRemoteMemberTransfer(IQSYSMember member,
String localPath,
String encoding)
Constructor. |
Method Summary | |
---|---|
static void |
acquireLock(String localPath)
Acquire the lock to download or upload the remote member that maps to the localpath |
void |
changeBidiFormat()
Converts the member from logical to visual or visual to logical as needed. |
void |
download()
Get the member from the server |
void |
download(boolean removeSequenceNumbers,
IProgressMonitor monitor)
Get the member from the server |
void |
download(IProgressMonitor monitor)
Get the member from the server |
String |
getLocalPath()
Gets the localPath where the member is to be downloaded. |
IQSYSMember |
getMember()
Gets the member. |
boolean |
getNoToAll()
Retrieves the no to all value |
boolean |
getYesToAll()
Retrieves the yes to all value |
boolean |
isLogicalTransfer()
indicates whether a logical transfer is being used |
static void |
releaseLock(String localPath)
Releases the lock to download or upload the remote member that maps to the localpath. |
void |
setEncoding(String encoding)
Sets the local encoding to use. |
void |
setLocalPath(String localPath)
Sets the local path where the member should be downloaded. |
void |
setMember(IQSYSMember member)
Sets the member. |
static void |
setRecordFormat(SequentialFile seqFile,
IQSYSMember member)
Set the record format for the sequential file before reading / writing. |
void |
setRecordFormat(Vector recordFormatPoints)
Set the record format to use during conversion. |
void |
setRemoveTrailingBlanks(boolean value)
Sets whether or not trailing blanks should be removed upon download. |
void |
setYesNoToAll(boolean yes,
boolean no,
boolean moreThanOneFile)
Sets the values for the prompting message for auto-detection of sequence numbers |
void |
upload()
Put the member back to the server |
void |
upload(boolean insertSequenceNumbersIfRequired,
int startSeqNum,
int incrSeqNum)
Put the member back to the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
public static final int EOR
public static final String FIRST_RECORD
Constructor Detail |
---|
public QSYSRemoteMemberTransfer(IQSYSMember member, String localPath)
member
- the member.localPath
- the local path to download to.public QSYSRemoteMemberTransfer(IQSYSMember member, String localPath, String encoding)
member
- the member.localPath
- the local path to download to.encoding
- the encoding of the local file.public QSYSRemoteMemberTransfer(IQSYSMember member, String localPath, boolean leaveVisual)
member
- the member.localPath
- the local path to download to.leaveVisual
- true if you want the file to be left in visual formatMethod Detail |
---|
public void setMember(IQSYSMember member)
member
- the member.public IQSYSMember getMember()
public void setLocalPath(String localPath)
localPath
- the local path.public String getLocalPath()
public void setEncoding(String encoding)
encoding
- the local encoding to use.public void download() throws QSYSEncapsulatedReturnCodeException, QSYSEncapsulatedException, SystemMessageException
QSYSEncapsulatedReturnCodeException
QSYSEncapsulatedException
SystemMessageException
public void download(IProgressMonitor monitor) throws QSYSEncapsulatedReturnCodeException, QSYSEncapsulatedException, SystemMessageException
QSYSEncapsulatedReturnCodeException
QSYSEncapsulatedException
SystemMessageException
public void download(boolean removeSequenceNumbers, IProgressMonitor monitor) throws QSYSEncapsulatedReturnCodeException, QSYSEncapsulatedException, SystemMessageException
QSYSEncapsulatedReturnCodeException
QSYSEncapsulatedException
SystemMessageException
public void upload() throws QSYSEncapsulatedReturnCodeException, QSYSEncapsulatedException, SystemMessageException
QSYSEncapsulatedReturnCodeException
QSYSEncapsulatedException
SystemMessageException
public void upload(boolean insertSequenceNumbersIfRequired, int startSeqNum, int incrSeqNum) throws QSYSEncapsulatedReturnCodeException, QSYSEncapsulatedException, SystemMessageException
insertSequenceNumbersIfRequired
- insert sequence numbers if required.
Note that if this is true
, then we first do a check to determine if the first few records
of the member are missing sequence numbers. If so, then we check each line before adding sequence
numbers to it. Otherwise, we assume no line needs sequence numbers. This is for efficiency.
QSYSEncapsulatedReturnCodeException
QSYSEncapsulatedException
SystemMessageException
public void setRecordFormat(Vector recordFormatPoints)
Vector format = new Vector();
format.add(new Point(13, ISeriesMemberTransfer.EOR));
ISeriesMemberTransfer transfer = new ISeriesMemberTransfer(member, location);
transfer.setRecordFormat(format);
transfer.download();
NOTE:No error checking for overlapping or non ascending order of points will be performed. Also,
to indicate to-the-end-of the record, use ISeriesMemberTransfer.EOR
recordFormatPoints
- A vector of points to use when converting from visual to logical and logical to visualpublic static void setRecordFormat(SequentialFile seqFile, IQSYSMember member) throws Exception
Exception
public boolean isLogicalTransfer()
public void changeBidiFormat() throws QSYSEncapsulatedException
QSYSEncapsulatedException
- thrown if an unexpected error is received from the file systempublic void setRemoveTrailingBlanks(boolean value)
value
- True if the trailing blanks should be stripped, false otherwisepublic void setYesNoToAll(boolean yes, boolean no, boolean moreThanOneFile)
yes
- Whether or not yes to all has already been pushedno
- whether or not no to all has already been pushedmoreThanOneFile
- Whether or not more than one file is being transferredpublic boolean getNoToAll()
public boolean getYesToAll()
public static void acquireLock(String localPath)
public static void releaseLock(String localPath)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |