|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopenr66.context.R66Session
public class R66Session
The global object session in OpenR66, a session by local channel
Constructor Summary | |
---|---|
R66Session()
Create the session |
Method Summary | |
---|---|
void |
clear()
|
R66Auth |
getAuth()
|
int |
getBlockSize()
|
R66BusinessInterface |
getBusinessObject()
|
R66Dir |
getDir()
|
boolean |
getExtendedProtocol()
|
R66File |
getFile()
|
goldengate.common.file.filesystembased.FilesystemBasedFileParameterImpl |
getFileParameter()
|
SocketAddress |
getLocalAddress()
|
LocalChannelReference |
getLocalChannelReference()
|
SocketAddress |
getRemoteAddress()
|
R66Restart |
getRestart()
|
DbTaskRunner |
getRunner()
|
String |
getUniqueExtension()
|
boolean |
isAuthenticated()
|
boolean |
isReady()
|
void |
newState(R66FiniteDualStates desiredstate)
Propose a new State |
void |
renameReceiverFile(String newFilename)
Rename the current receive file from the very beginning since the sender has a post action that changes its name |
void |
setBadRunner(DbTaskRunner runner,
ErrorCode code)
To be used when a request comes with a bad code so it cannot be set normally |
void |
setBlockSize(int blocksize)
|
void |
setBusinessObject(R66BusinessInterface businessObject)
|
void |
setFileAfterPreRunner(boolean createFile)
Set the File from the runner once PRE operation are done |
void |
setFileBeforePreRunner()
Set the File from the runner before PRE operation are done |
void |
setFinalizeTransfer(boolean status,
R66Result finalValue)
Finalize the transfer step by running the error or post operation according to the status. |
void |
setLocalChannelReference(LocalChannelReference localChannelReference)
|
void |
setNoSessionRunner(DbTaskRunner runner,
LocalChannelReference localChannelReference)
To be called in case of No Session not from a valid LocalChannelHandler |
void |
setReady(boolean isReady)
|
void |
setRunner(DbTaskRunner runner)
Set the runner, START from the PreTask if necessary, and prepare the file |
void |
setStatus(int stat)
Debugging purpose |
String |
toString()
|
void |
tryFinalizeRequest(R66Result errorValue)
Try to finalize the request if possible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public R66Session()
Method Detail |
---|
public boolean getExtendedProtocol()
public R66BusinessInterface getBusinessObject()
public void setBusinessObject(R66BusinessInterface businessObject)
businessObject
- the businessObject to setpublic void newState(R66FiniteDualStates desiredstate)
desiredstate
-
goldengate.common.exception.IllegalFiniteStateException
- if the new status if not okpublic void setStatus(int stat)
stat
- public void clear()
clear
in interface goldengate.common.file.SessionInterface
public R66Auth getAuth()
getAuth
in interface goldengate.common.file.SessionInterface
public int getBlockSize()
getBlockSize
in interface goldengate.common.file.SessionInterface
public void setBlockSize(int blocksize)
blocksize
- the blocksize to setpublic R66Dir getDir()
getDir
in interface goldengate.common.file.SessionInterface
public goldengate.common.file.filesystembased.FilesystemBasedFileParameterImpl getFileParameter()
getFileParameter
in interface goldengate.common.file.SessionInterface
public R66Restart getRestart()
getRestart
in interface goldengate.common.file.SessionInterface
public boolean isAuthenticated()
public boolean isReady()
public void setReady(boolean isReady)
isReady
- the isReady for transfer to setpublic DbTaskRunner getRunner()
public void setLocalChannelReference(LocalChannelReference localChannelReference)
localChannelReference
- the localChannelReference to setpublic SocketAddress getRemoteAddress()
public SocketAddress getLocalAddress()
public LocalChannelReference getLocalChannelReference()
public void setNoSessionRunner(DbTaskRunner runner, LocalChannelReference localChannelReference)
runner
- localChannelReference
- public void setFileBeforePreRunner() throws OpenR66RunnerErrorException
OpenR66RunnerErrorException
public void setFileAfterPreRunner(boolean createFile) throws OpenR66RunnerErrorException
createFile
- When True, the file can be newly created if needed.
If False, no new file will be created, thus having an Exception.
OpenR66RunnerErrorException
public void setBadRunner(DbTaskRunner runner, ErrorCode code)
runner
- code
- public void setRunner(DbTaskRunner runner) throws OpenR66RunnerErrorException
runner
- the runner to set
OpenR66RunnerErrorException
public void renameReceiverFile(String newFilename) throws OpenR66RunnerErrorException
newFilename
-
OpenR66RunnerErrorException
public void setFinalizeTransfer(boolean status, R66Result finalValue) throws OpenR66RunnerErrorException, OpenR66ProtocolSystemException
status
- finalValue
-
OpenR66RunnerErrorException
OpenR66ProtocolSystemException
public void tryFinalizeRequest(R66Result errorValue) throws OpenR66RunnerErrorException, OpenR66ProtocolSystemException
errorValue
-
OpenR66RunnerErrorException
OpenR66ProtocolSystemException
public R66File getFile()
public String toString()
toString
in class Object
public String getUniqueExtension()
getUniqueExtension
in interface goldengate.common.file.SessionInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |