|
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.remotebuild.RBSystem
public class RBSystem
Field Summary | |
---|---|
static String |
COPYRIGHT
|
Constructor Summary | |
---|---|
RBSystem(IBMiConnection connection)
Create a new system given its ISeriesConnection. |
Method Summary | |
---|---|
void |
cancelJob(JobTicket ticket)
Cancels the job associated with a particular ticket. |
RBStatus |
checkAuthorities(RBResource resource,
String[] authorities)
Checks the existence and authorities of an object on the system. |
boolean |
checkBinaryObject(RBBinaryObject resource)
Check existence of the binary object on the system |
RBStatus |
checkBinaryObjectContents(RBBinaryObject resource)
Checks the contents of a save file for conflict on the system. |
boolean |
checkFile(RBFile resource)
Checks the existence of a file object on the system. |
boolean |
checkLibrary(RBLibrary resource)
Checks the existence of a library. |
boolean |
checkMember(RBMember resource)
Checks the existence of a member on the system. |
RBStatus |
checkMemberContents(RBMember resource)
Checks the contents of a member for conflict on the system. |
boolean |
checkSaveFile(RBSaveFile resource)
Checks the existence of a save file object on the system. |
RBStatus |
checkSaveFileContents(RBSaveFile resource)
Checks the contents of a save file for conflict on the system. |
RBStatus |
checkSaveFileExistence(RBSaveFile resource)
Checks the existence of a save file object on the system. |
boolean |
checkServer()
Tests to see if the service program QDEVTOOLS/QRBUTIL exists. |
RBStatus |
checkSourceFileProperties(RBSourceFile resource)
Checks the properties of a source file on the target against those stored locally. |
RBStatus |
clearSaveFile(RBSaveFile resource)
Clears a new save file on the target system. |
RBStatus |
copySavfToQTEMP(String saveFileName)
|
RBStatus |
createBinaryObject(RBBinaryObject binaryObject)
|
RBStatus |
createLibrary(RBLibrary resource)
Creates a library on the system. |
RBStatus |
createMember(RBMember resource)
Creates a new member on the system. |
RBStatus |
createSaveFile(RBSaveFile resource)
Creates a new save file on the target system. |
RBStatus |
createSourceFile(RBSourceFile resource)
Creates a new source file if one doesn't already exists. |
IBMiConnection |
getConnection()
|
String |
getMetadataFileName(String tag,
String suffix)
|
String |
getNextTag()
Returns the next tag for naming files. |
RBStatus |
getServerStatus()
Tests to see if the connection exists and the service program QDEVTOOLS/QRBUTIL exists. |
static RBSystem |
getSystemFor(IBMiConnection connection)
Create a new RBSystem object, if necessary, for this connection. |
String |
getSystemName()
|
RBStatus |
modifyMemberProperties(RBMember resource,
Collection<String> properties)
Modifies the properties of a member on the target system. |
RBStatus |
modifyMemberSourceType(RBMember resource)
Modifies the source type of a member on the target system. |
RBStatus |
modifySaveFileProperties(RBSaveFile resource,
Collection<String> properties)
Modifies the properties of a save file. |
RBStatus |
modifySourceFileProperties(RBSourceFile resource,
Collection<String> properties)
Modify the properties of an existing source file. |
void |
refreshJobStatus(Set ticketSet)
Deprecated. The job's status can not be directly set anymore, instead it is pulled from the actual OS/400 job. |
RBStatus |
restoreSavfContents(RBBinaryObject resource)
|
RBStatus |
runCommand(CLCommand command)
Runs a command immediately. |
RBStatus |
runCommand(String command)
Runs a command string immediately. |
RBStatus |
submitCommand(CLCommand command)
Runs a command in batch. |
RBStatus |
submitCommand(String command)
Runs a command string in batch. |
RBStatus |
writeArguments(String tag,
Map arguments)
Writes the argument list contained in the map to the argument metadata file for the tag on the host system. |
RBStatus |
writeBinaryObject(RBBinaryObject resource)
Writes a binary object on the target system. |
RBStatus |
writeMember(RBMember resource)
Writes the contents of a member to the system. |
RBStatus |
writeSaveFile(RBSaveFile resource)
Writes a save file on the target system. |
RBStatus |
writeStreamFile(RBResource resource)
Creates a new stream file on the target system. |
RBStatus |
writeStreamFile(Reader reader,
String ifsName)
Creates a new text stream file on the target system using a reader as the input source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COPYRIGHT
Constructor Detail |
---|
public RBSystem(IBMiConnection connection)
RBSystem#getSystemFor(ISeriesConnection).
Method Detail |
---|
public static RBSystem getSystemFor(IBMiConnection connection)
public boolean checkServer()
public RBStatus getServerStatus()
public String getSystemName()
public IBMiConnection getConnection()
public RBStatus checkAuthorities(RBResource resource, String[] authorities)
public boolean checkLibrary(RBLibrary resource)
public RBStatus createLibrary(RBLibrary resource)
public boolean checkFile(RBFile resource)
public boolean checkBinaryObject(RBBinaryObject resource)
binaryObject
- Binary object to be restored on the system
public boolean checkSaveFile(RBSaveFile resource)
public RBStatus checkSaveFileExistence(RBSaveFile resource)
RBStatus
with one of the following codes:
RBStatus.OK
:
Save file exists on the host with the same name as the resource.RBStatus.CODE_OBJECT_MISSING
:
No file exists on the host with the same name as the resourceRBStatus.CODE_EXISTING_SAVE_FILE_NAME
:
File exists on the host with the same name as the resourcepublic RBStatus createSourceFile(RBSourceFile resource)
public RBStatus checkSourceFileProperties(RBSourceFile resource)
public RBStatus modifySourceFileProperties(RBSourceFile resource, Collection<String> properties)
public RBStatus createSaveFile(RBSaveFile resource)
checkSaveFile(RBSaveFile)
public RBStatus clearSaveFile(RBSaveFile resource)
public RBStatus writeSaveFile(RBSaveFile resource)
public RBStatus writeBinaryObject(RBBinaryObject resource)
resource
-
public RBStatus copySavfToQTEMP(String saveFileName) throws SystemMessageException
SystemMessageException
public RBStatus restoreSavfContents(RBBinaryObject resource) throws SystemMessageException
SystemMessageException
public RBStatus modifySaveFileProperties(RBSaveFile resource, Collection<String> properties)
public boolean checkMember(RBMember resource)
public RBStatus checkMemberContents(RBMember resource)
public RBStatus checkSaveFileContents(RBSaveFile resource)
public RBStatus checkBinaryObjectContents(RBBinaryObject resource)
public RBStatus createMember(RBMember resource)
public RBStatus writeMember(RBMember resource)
public RBStatus modifyMemberProperties(RBMember resource, Collection<String> properties)
public RBStatus modifyMemberSourceType(RBMember resource)
public RBStatus writeStreamFile(RBResource resource)
public RBStatus writeStreamFile(Reader reader, String ifsName)
reader
- The reader on the input that will be written to the ifs file.ifsName
- the name of the ifs file to write.
public RBStatus runCommand(CLCommand command)
public RBStatus runCommand(String command)
public RBStatus submitCommand(CLCommand command)
public RBStatus submitCommand(String command)
public String getNextTag()
public String getMetadataFileName(String tag, String suffix)
tag
- the tag to use to qualify the file.suffix
- the String suffix to add to the tag.
public void refreshJobStatus(Set ticketSet)
public void cancelJob(JobTicket ticket)
public RBStatus writeArguments(String tag, Map arguments)
public RBStatus createBinaryObject(RBBinaryObject binaryObject)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |