public class NetAgent extends Agent
accumulatedReadExceptions_, disableDisconnectEvent_, forSqlException_, logWriter_, sectionManager_| Constructor and Description |
|---|
NetAgent(NetConnection netConnection,
LogWriter logWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginReadChain(Statement statement) |
protected void |
beginReadChainOutsideUOW() |
void |
beginWriteChain(Statement statement) |
void |
beginWriteChainOutsideUOW() |
void |
checkForChainBreakingException_() |
protected void |
checkOpen() |
void |
close_() |
String |
convertToStringTcpIpAddress(int tcpIpAddress) |
void |
endReadChain() |
protected void |
endWriteChain() |
void |
flush_() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
int |
getPort() |
String |
getServer() |
String |
getServerLocation() |
protected int |
getTimeout()
Returns the current timeout value that is set on the socket.
|
protected void |
markChainBreakingException_() |
LogWriter |
newLogWriter_(PrintWriter printWriter,
int traceLevel) |
boolean |
reconnectAgent(LogWriter logWriter,
int loginTimeout,
String server,
int port) |
protected void |
resetAgent_(LogWriter netLogWriter,
int loginTimeout,
String server,
int port) |
protected void |
sendRequest() |
protected void |
setTimeout(int timeout)
Specifies the maximum blocking time that should be used when sending
and receiving messages.
|
void |
throwCommunicationsFailure(Throwable cause) |
String |
toString() |
accumulateChainBreakingReadExceptionAndThrow, accumulateDeferredException, accumulateDisconnectException, accumulateReadException, beginBatchedReadChain, beginBatchedWriteChain, checkForExceptions, close, disconnectEvent, endBatchedReadChain, endBatchedWriteChain, flow, flowBatch, flowOutsideUOW, getLogWriter, loggingEnabled, resetAgent, resetAgent, setBatchedExceptionLabelIndex, setLogWriterpublic ConnectionRequestInterface connectionRequest_
public NetConnectionRequest packageRequest_
public StatementRequestInterface statementRequest_
public ResultSetRequestInterface resultSetRequest_
public ConnectionReply connectionReply_
public ConnectionReply packageReply_
public StatementReply statementReply_
public ResultSetReply resultSetReply_
protected Request request_
public NetConnectionRequest netConnectionRequest_
public NetPackageRequest netPackageRequest_
public NetStatementRequest netStatementRequest_
public NetResultSetRequest netResultSetRequest_
protected Reply reply_
public NetConnectionReply netConnectionReply_
public NetPackageReply netPackageReply_
public NetStatementReply netStatementReply_
public NetResultSetReply netResultSetReply_
public CcsidManager sourceCcsidManager_
public CcsidManager targetCcsidManager_
public Typdef typdef_
public Typdef targetTypdef_
public Typdef originalTargetTypdef_
protected int svrcod_
public int orignalTargetSqlam_
public int targetSqlam_
public SqlException exceptionOpeningSocket_
public NetAgent(NetConnection netConnection, LogWriter logWriter) throws SqlException
SqlExceptionprotected void resetAgent_(LogWriter netLogWriter, int loginTimeout, String server, int port) throws SqlException
resetAgent_ in class AgentSqlExceptionpublic boolean reconnectAgent(LogWriter logWriter, int loginTimeout, String server, int port) throws SqlException
SqlExceptionpublic void flush_()
throws DisconnectException
flush_ in class AgentDisconnectExceptionpublic void close_()
throws SqlException
close_ in class AgentSqlExceptionprotected void setTimeout(int timeout)
timeout - The timeout value in seconds. A value of 0 corresponds to
infinite timeout.protected int getTimeout()
protected void sendRequest()
throws DisconnectException
DisconnectExceptionpublic InputStream getInputStream()
public OutputStream getOutputStream()
public void throwCommunicationsFailure(Throwable cause) throws DisconnectException
DisconnectExceptionpublic LogWriter newLogWriter_(PrintWriter printWriter, int traceLevel)
newLogWriter_ in class Agentprotected void markChainBreakingException_()
markChainBreakingException_ in class Agentpublic void checkForChainBreakingException_()
throws SqlException
checkForChainBreakingException_ in class AgentSqlExceptionpublic void beginWriteChainOutsideUOW()
throws SqlException
beginWriteChainOutsideUOW in class AgentSqlExceptionpublic void beginWriteChain(Statement statement) throws SqlException
beginWriteChain in class AgentSqlExceptionprotected void endWriteChain()
endWriteChain in class Agentprotected void beginReadChain(Statement statement) throws SqlException
beginReadChain in class AgentSqlExceptionprotected void beginReadChainOutsideUOW()
throws SqlException
beginReadChainOutsideUOW in class AgentSqlExceptionpublic void endReadChain()
throws SqlException
endReadChain in class AgentSqlExceptionpublic String convertToStringTcpIpAddress(int tcpIpAddress)
public final String getServerLocation()
getServerLocation in class Agentprotected void checkOpen()
throws DisconnectException
DisconnectExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.