java.lang.Objectcom.microfocus.cobol.connector.transport.CobolConnection
com.microfocus.cobol.connector.transport.TraceTransport
com.microfocus.cobol.connector.transport.TraceToLog4JTransport
Trace transport messages to log4j adapter
Copyright: Copyright (c) 2002-2003 Company: Micro Focus International Ltd
Field Summary |
Fields inherited from class com.microfocus.cobol.connector.transport.CobolConnection |
OPTYPE_CANCEL, OPTYPE_COBCALL, OPTYPE_COBLOAD, OPTYPE_DISPOSE, OPTYPE_PING, OPTYPE_SETISINITIAL, OPTYPE_TRAN_LOCAL_COMMIT, OPTYPE_TRAN_LOCAL_ROLLBACK, OPTYPE_TRAN_LOCAL_START, OPTYPE_TRAN_XA_COMMIT, OPTYPE_TRAN_XA_END, OPTYPE_TRAN_XA_FORGET, OPTYPE_TRAN_XA_PREPARE, OPTYPE_TRAN_XA_RECOVER, OPTYPE_TRAN_XA_ROLLBACK, OPTYPE_TRAN_XA_START |
Constructor Summary | |
TraceToLog4JTransport()
|
Method Summary | |
void |
Activate()
Activate a remote call |
void |
begin()
Method declaration |
void |
commit()
Method declaration |
void |
connect()
trace method for connect() |
void |
disconnect()
trace method for disconnect() |
Object |
execute(int operation,
String className,
String programName,
Class retCodeType,
Object inParameters,
Object outParameters)
Method declaration |
Object |
getConnectionProperty(String key2property)
Method declaration |
Object |
getConnectionProperty(String key2property,
Object defaultProperty)
Method declaration |
int |
getTraceNumber()
Method declaration |
boolean |
isActive()
trace method for isActive() |
void |
Passivate()
Passivate a remote call |
void |
println(String message)
internal println() |
void |
readMessage(byte[] header,
byte[] message)
Method declaration |
void |
reconnect()
Method declaration |
void |
registerBINPAuditor(BINPAuditor auditor)
|
void |
removeConnectionProperty(String key2property)
Method declaration |
void |
rollback()
Method declaration |
void |
sentMessage(byte[] message,
byte[] header)
Method declaration |
void |
setConnectionProperty(String key2property,
Object property)
Method declaration |
void |
setTraceBINP(boolean tracebinp)
Method declaration |
Methods inherited from class com.microfocus.cobol.connector.transport.CobolConnection |
createConnection, getServerURN, getSessionID, registerConnectionHandler, xa_commit, xa_commit, xa_end, xa_end, xa_forget, xa_forget, xa_prepare, xa_recover, xa_recover, xa_rollback, xa_rollback, xa_start, xa_start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.microfocus.cobol.connector.transport.LocalTransactionConnector |
begin, commit, rollback |
Methods inherited from interface com.microfocus.cobol.connector.transport.XATransactionConnector |
xa_commit, xa_end, xa_forget, xa_prepare, xa_recover, xa_rollback, xa_start |
Constructor Detail |
public TraceToLog4JTransport()
Method Detail |
public void println(String message)
message
- a message to displaypublic void setTraceBINP(boolean tracebinp)
tracebinp
- public int getTraceNumber()
public void disconnect() throws com.microfocus.cobol.CobolException
disconnect
in class CobolConnection
com.microfocus.cobol.CobolException
public void reconnect() throws com.microfocus.cobol.CobolException
reconnect
in class CobolConnection
com.microfocus.cobol.CobolException
public boolean isActive() throws com.microfocus.cobol.CobolException
isActive
in class CobolConnection
com.microfocus.cobol.CobolException
public void connect() throws com.microfocus.cobol.CobolException
connect
in class CobolConnection
com.microfocus.cobol.CobolException
public Object execute(int operation, String className, String programName, Class retCodeType, Object inParameters, Object outParameters) throws com.microfocus.cobol.CobolException, Exception
execute
in class CobolConnection
operation
- className
- programName
- retCodeType
- inParameters
- outParameters
-
com.microfocus.cobol.CobolException
Exception
public void begin() throws com.microfocus.cobol.CobolException
begin
in interface LocalTransactionConnector
begin
in class CobolConnection
com.microfocus.cobol.CobolException
public void commit() throws com.microfocus.cobol.CobolException
commit
in interface LocalTransactionConnector
commit
in class CobolConnection
com.microfocus.cobol.CobolException
public void rollback() throws com.microfocus.cobol.CobolException
rollback
in interface LocalTransactionConnector
rollback
in class CobolConnection
com.microfocus.cobol.CobolException
public void setConnectionProperty(String key2property, Object property)
setConnectionProperty
in class CobolConnection
key2property
- property
- public Object getConnectionProperty(String key2property)
getConnectionProperty
in class CobolConnection
key2property
-
public void removeConnectionProperty(String key2property)
removeConnectionProperty
in class CobolConnection
key2property
- public Object getConnectionProperty(String key2property, Object defaultProperty)
getConnectionProperty
in class CobolConnection
key2property
- defaultProperty
-
public void Activate() throws com.microfocus.cobol.CobolException
Activate
in class CobolConnection
com.microfocus.cobol.CobolException
public void Passivate() throws com.microfocus.cobol.CobolException
Passivate
in class CobolConnection
com.microfocus.cobol.CobolException
public void sentMessage(byte[] message, byte[] header)
sentMessage
in interface BINPAuditor
message
- header
- public void readMessage(byte[] header, byte[] message)
readMessage
in interface BINPAuditor
header
- message
- public void registerBINPAuditor(BINPAuditor auditor)
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.