📄 jco$connection.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: JCO.java
package com.sap.mw.jco;
import com.sap.mw.jco.util.Dsr;
import com.sap.mw.jco.util.Jarm;
import java.util.Hashtable;
import java.util.Properties;
// Referenced classes of package com.sap.mw.jco:
// JCO
public static abstract class JCO$Connection
implements Cloneable
{
public long getConnectionHandle()
{
return rfc_handle;
}
public synchronized Object clone()
{
try
{
JCO$Connection conn = (JCO$Connection)super.clone();
conn.properties = (Properties)properties.clone();
conn.rfc_handle = 0L;
if(dsr_monitor != null)
conn.dsr_monitor = new Dsr();
conn.last_active_timestamp = System.currentTimeMillis();
return conn;
}
catch(CloneNotSupportedException ex)
{
return null;
}
}
protected void finalize()
{
try
{
if(!isValid())
return;
disconnect();
}
catch(JCO$Exception ex) { }
}
public final Properties getProperties()
{
return properties;
}
public String[][] getPropertyInfo()
{
return null;
}
public final String getProperty(String key)
{
return properties.getProperty(key);
}
protected void setProperty(String key, String value)
{
if(key != null)
if(value != null)
properties.put(key, value);
else
properties.remove(key);
}
public boolean isValid()
{
return rfc_handle != 0L;
}
protected byte getState()
{
return state;
}
protected void setState(byte state)
{
this.state = state;
}
public boolean getTrace()
{
return false;
}
public void setTrace(boolean flag)
{
}
public final JCO$Throughput getThroughput()
{
return throughput;
}
public final void setThroughput(JCO$Throughput throughput)
{
this.throughput = throughput;
}
public abstract JCO$Attributes getAttributes();
public abstract void disconnect();
public abstract void abort(String s);
public abstract boolean isAlive();
protected abstract void beginCall();
protected abstract void endCall();
protected void checkProperties()
{
try
{
connection_cpc_mode = Integer.parseInt(properties.getProperty("jco.cpc.ignore_icons", "0"));
}
catch(NumberFormatException ex)
{
connection_cpc_mode = 0;
}
if(properties.getProperty("jco.client.idle_timeout", null) != null)
try
{
int idle_timeout = Integer.parseInt(properties.getProperty("jco.client.idle_timeout"));
if(idle_timeout <= 0)
throw new NumberFormatException("only positive values are allowed");
}
catch(NumberFormatException ex)
{
throw new init>(122, "JCO_ERROR_CONVERSION", "Invalid idle timeout [" + properties.getProperty("jco.client.idle_timeout") + "]: " + ex.getMessage());
}
}
protected String conn_params;
protected Object conn_object;
protected Properties properties;
protected JCO$Attributes attributes;
protected com.sap.mw.jco.util.rties jarm_monitor;
protected Dsr dsr_monitor;
protected byte passport_bytes[];
protected long rfc_handle;
protected long codepage_converter;
protected int connection_cpc_mode;
protected byte state;
protected long last_active_timestamp;
protected JCO$Throughput throughput;
protected long start_time;
protected long time_handle_request;
protected long time_total;
protected long num_sent_bytes;
protected long num_received_bytes;
protected long time_middleware;
protected String rfm_name;
protected JCO$Pool pool;
protected JCO$Connection()
{
conn_object = null;
properties = new Properties();
passport_bytes = null;
rfc_handle = 0L;
codepage_converter = 0L;
connection_cpc_mode = 0;
state = 1;
last_active_timestamp = System.currentTimeMillis();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -