|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SAGApi.Services.FileActClient
It is client component for FileAct. It can do FileAct scenarios like get file, put file, etc. It constructs the requests by use of Configuration. It populates the responses to corresponding Primitives.
Method Summary | |
---|---|
void |
abortFile(java.lang.String transferKey)
Aborts the file transfer which is against the last get/put/fetch. |
void |
abortFile(java.lang.String transferRef,
java.lang.String transferKey)
Aborts the file transfer with the specified transfer reference. |
void |
ackFile(boolean accepted)
Acks the previously-received file. |
java.lang.String |
checkFileStatus()
Checks the state for the file transfer which is against the last get/put/fetch. |
java.lang.String |
checkFileStatus(java.lang.String transferRef)
Checks the state for the file transfer with the specified transfer reference. |
java.lang.String |
checkFinalFileStatus()
Checks the final state for the file transfer which is against the last get/put/fetch. |
java.lang.String |
checkFinalFileStatus(java.lang.String transferRef)
Checks the final state for the file transfer with the specified transfer reference. |
java.lang.String |
checkFinalFileStatus(java.lang.String transferRef,
long interval,
int count)
Checks the final state for the file transfer with the specified transfer reference. |
java.lang.String |
checkSnFStatus()
Checks SnF status for the SnF session which is from the last acquire. |
java.lang.String |
checkSnFStatus(java.lang.String snfSession)
Checks SnF status for the specified SnF session. |
java.lang.String |
computeFileDigest(java.lang.String physicalFileFullName)
Computes File Digest locally using TransferEP from configuration if it exists. |
java.lang.String |
computeFileDigest(java.lang.String physicalFileFullName,
java.lang.String transferEP)
Computes File Digest locally using specified TransferEP. |
java.lang.String |
get()
Gets file up on the e*Way configuration settings. |
java.lang.String |
getRequest()
Returns the current Request message which will be sent out. |
SAGMessage.SAGEnvelope |
getRequestEnvelope()
Returns SAG envelope of the current Request message which will be sent out. |
java.lang.String |
getRequestLetter()
Returns the letter of the current Request message which will be sent out. |
SAGMessage |
getResponse()
Returns the current Response from the previous exchange. |
long |
getToken()
Returns the token number for current transfer. |
boolean |
isRemoteFileHandlerAlive()
Checks whether Remote File Handler process is alive. |
java.lang.String |
listFileStatus()
It allows for several selection criteria. |
java.lang.String |
put()
Puts file up on the e*Way configuration settings. |
void |
snfAck()
Acks the previously-pulled message in current SnF session. |
void |
snfAck(java.lang.String acceptStatus)
Acks the previously-pulled message with specified acceptStatus in current SnF session. |
java.lang.String |
snfAcquire()
Acquires SnF queue and opens a SnF session. |
java.lang.String |
snfFetch()
Fetches the file from SnF central server in current SnF session. |
java.lang.String |
snfPull()
Pulls the next message from queue in current SnF session. |
java.lang.String |
snfPull(java.lang.String sessionId)
Pulls the next message from queue in specified SnF session. |
void |
snfRelease()
Releases SnF queue and closes the SnF session which corresponds to the last acquire. |
void |
snfRelease(java.lang.String sessionId)
Releases SnF queue and closes the specified SnF session. |
java.lang.String |
startRemoteFileHandler()
Starts Remote File Handler process with e*Way interlly assigned Transfer EndPoint. |
void |
startRemoteFileHandler(java.lang.String transferEP)
Starts Remote File Handler process with the specified Transfer EndPoint. |
void |
stopRemoteFileHandler()
Stops the Remote File Handler process which is started from this e*Way instance. |
java.lang.String |
subscribeFileEvent()
Subscribes file transfer event with e*Way assigned event endpoint. |
void |
subscribeFileEvent(java.lang.String eventEP)
Subscribes file transfer event with the specified event endpoint. |
Method Detail |
---|
java.lang.String put() throws SAGApplicationException
String
- Returns Sw:TransferRef.
SAGApplicationException
- upon error.java.lang.String get() throws SAGApplicationException
String
- Returns Sw:TransferRef.
SAGApplicationException
- upon error.void ackFile(boolean accepted) throws SAGApplicationException
accepted
- true or false
SAGApplicationException
- upon error.java.lang.String snfAcquire() throws SAGApplicationException
String
- Returns the SnF session ID.
SAGApplicationException
- upon error.void snfRelease() throws SAGApplicationException
SAGApplicationException
- upon error.void snfRelease(java.lang.String sessionId) throws SAGApplicationException
SnF
- SessionId to release.
SAGApplicationException
- upon error.void snfAck() throws SAGApplicationException
SAGApplicationException
- upon error.void snfAck(java.lang.String acceptStatus) throws SAGApplicationException
acceptStatus
- The accept status.
SAGApplicationException
- upon error.java.lang.String snfPull(java.lang.String sessionId) throws SAGApplicationException
SnF
- SessionId
String
- Returns the SnF reference.
SAGApplicationException
- upon error.java.lang.String snfPull() throws SAGApplicationException
String
- Returns the SnF reference.
SAGApplicationException
- upon error.java.lang.String snfFetch() throws SAGApplicationException
String
- Returns the transfer reference.
SAGApplicationException
- upon error.java.lang.String checkSnFStatus(java.lang.String snfSession) throws SAGApplicationException
snfSession
- SnF session Id
String
- Returns the SnF status.
SAGApplicationException
- upon error.java.lang.String checkSnFStatus() throws SAGApplicationException
String
- Returns the SnF status.
SAGApplicationException
- upon error.java.lang.String checkFileStatus(java.lang.String transferRef) throws SAGApplicationException
In progress: INITIATED ACCEPTED ONGOING Final state: COMPLETED DUPLICATED UNKNOWN ABORTED FAILED REJECTED
transferRef
- File transfer reference.
String
- Returns the file transfer status.
SAGApplicationException
- upon error.java.lang.String checkFileStatus() throws SAGApplicationException
In progress: INITIATED ACCEPTED ONGOING Final state: COMPLETED DUPLICATED UNKNOWN ABORTED FAILED REJECTED
String
- Returns the file transfer status.
SAGApplicationException
- upon error.java.lang.String checkFinalFileStatus(java.lang.String transferRef, long interval, int count) throws SAGApplicationException
The final state is one of following: - COMPLETED - DUPLICATED - UNKNOWN - ABORTED - FAILED - REJECTED
transferRef
- File transfer referenceinterval
- Check intervalcount
- Check maximum count
String
- Returns the file transfer status.
SAGApplicationException
- upon error.java.lang.String checkFinalFileStatus(java.lang.String transferRef) throws SAGApplicationException
The final state is one of following: - COMPLETED - DUPLICATED - UNKNOWN - ABORTED - FAILED - REJECTED
transferRef
- File transfer reference
String
- Returns the file transfer status.
SAGApplicationException
- upon error.java.lang.String checkFinalFileStatus() throws SAGApplicationException
The final state is one of following: - COMPLETED - DUPLICATED - UNKNOWN - ABORTED - FAILED - REJECTED
String
- Returns the file transfer status.
SAGApplicationException
- upon error.java.lang.String listFileStatus() throws SAGApplicationException
String
- Returns Sw:EndOfList. TRUE or FALSE to indicate whether the end of the list has been reached.
SAGApplicationException
- upon error.void abortFile(java.lang.String transferRef, java.lang.String transferKey) throws SAGApplicationException
transferRef
- File transfer reference.transferKey
- File transfer key.
SAGApplicationException
- upon error.void abortFile(java.lang.String transferKey) throws SAGApplicationException
transferKey
- File transfer key.
SAGApplicationException
- upon error.java.lang.String computeFileDigest(java.lang.String physicalFileFullName) throws SAGApplicationException
physicalFileFullName
- The file to be computed
String
- Returns the File Digest.
SAGApplicationException
- upon error.com.stc.connector.sagadapter.sagapi.SAGApi.Services.FileActClient#computeFileDigest()
java.lang.String computeFileDigest(java.lang.String physicalFileFullName, java.lang.String transferEP) throws SAGApplicationException
physicalFileFullName
- The file to be computedtransferEP
- The file transfer endpoint.
String
- Returns the File Digest.
SAGApplicationException
- upon error.com.stc.connector.sagadapter.sagapi.SAGApi.Services.FileActClient#computeFileDigest()
boolean isRemoteFileHandlerAlive()
java.lang.String startRemoteFileHandler() throws SAGApplicationException
SAGApplicationException
- upon error.void startRemoteFileHandler(java.lang.String transferEP) throws SAGApplicationException
SAGApplicationException
- upon error.void stopRemoteFileHandler() throws SAGApplicationException
SAGApplicationException
- upon error.java.lang.String subscribeFileEvent() throws SAGApplicationException
SAGApplicationException
- upon error.void subscribeFileEvent(java.lang.String eventEP) throws SAGApplicationException
eventEP
- The event endpoint
SAGApplicationException
- upon error.java.lang.String getRequest()
SAGMessage.SAGEnvelope getRequestEnvelope()
java.lang.String getRequestLetter()
SAGMessage getResponse()
SAGMessage
- Returns the response message.long getToken()
|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |