Class KNetCommon
The generic class which is the base of the KNet Connect SDK classes
public abstract class KNetCommon : IKNetCommon, IKNetConnectLogging
- Inheritance
-
KNetCommon
- Implements
- Derived
- Inherited Members
Properties
IsDebugEnabled
Reports if debug level is enabled
public bool IsDebugEnabled { get; }
Property Value
IsErrorEnabled
Reports if error level is enabled
public bool IsErrorEnabled { get; }
Property Value
IsInfoEnabled
Reports if info level is enabled
public bool IsInfoEnabled { get; }
Property Value
IsTraceEnabled
Reports if trace level is enabled
public bool IsTraceEnabled { get; }
Property Value
IsWarnEnabled
Reports if warning level is enabled
public bool IsWarnEnabled { get; }
Property Value
Name
Reports the name of the logger
public string Name { get; }
Property Value
ReflectedRemoteObjectClassName
The unique name used to map objects between JVM and .NET
protected abstract string ReflectedRemoteObjectClassName { get; }
Property Value
UniqueId
Returns the unique id of this instance
protected string UniqueId { get; }
Property Value
Methods
DataToExchange(object)
An helper function to read the data from Java side
protected void DataToExchange(object data)
Parameters
dataobject
Exceptions
DataToExchange<T>()
An helper function to read the data from Java side
protected T DataToExchange<T>()
Returns
- T
The
T
Type Parameters
TThe expected return Type
Exceptions
ExecuteOnRemote(string, params object[])
An helper function to execute operation in the Java side
public void ExecuteOnRemote(string method, params object[] args)
Parameters
Exceptions
ExecuteOnRemote<T>(string, params object[])
An helper function to read the data from Java side
public T ExecuteOnRemote<T>(string method, params object[] args)
Parameters
Returns
- T
The
T
Type Parameters
TThe expected return Type
Exceptions
LogDebug(string)
Write a debug string into Apache Connect tracing subsystem
public void LogDebug(string var1)
Parameters
var1stringString to write
LogDebug(string, JVMBridgeException)
Write a debug string into Apache Connect tracing subsystem
public void LogDebug(string var1, JVMBridgeException var2)
Parameters
var1stringString to write
var2JVMBridgeExceptionAssociated JVMBridgeException
LogDebug(string, params object[])
Write a debug string into Apache Connect tracing subsystem
public void LogDebug(string var1, params object[] var2)
Parameters
Remarks
Since the counter-part is based on log4j or slf4j the parameters in var2 will be applied on var1 using the rules defined from log4j or slf4j; see https://www.slf4j.org/api/org/slf4j/Logger.html
LogError(string)
Write a error into Apache Connect tracing subsystem
public void LogError(string var1)
Parameters
var1stringString to write
LogError(string, JVMBridgeException)
Write a error into Apache Connect tracing subsystem
public void LogError(string var1, JVMBridgeException var2)
Parameters
var1stringString to write
var2JVMBridgeExceptionAssociated JVMBridgeException
LogError(string, params object[])
Write a error string into Apache Connect tracing subsystem
public void LogError(string var1, params object[] var2)
Parameters
Remarks
Since the counter-part is based on log4j or slf4j the parameters in var2 will be applied on var1 using the rules defined from log4j or slf4j; see https://www.slf4j.org/api/org/slf4j/Logger.html
LogInfo(string)
Write a info string into Apache Connect tracing subsystem
public void LogInfo(string var1)
Parameters
var1stringString to write
LogInfo(string, JVMBridgeException)
Write a info string into Apache Connect tracing subsystem
public void LogInfo(string var1, JVMBridgeException var2)
Parameters
var1stringString to write
var2JVMBridgeExceptionAssociated JVMBridgeException
LogInfo(string, params object[])
Write a info string into Apache Connect tracing subsystem
public void LogInfo(string var1, params object[] var2)
Parameters
Remarks
Since the counter-part is based on log4j or slf4j the parameters in var2 will be applied on var1 using the rules defined from log4j or slf4j; see https://www.slf4j.org/api/org/slf4j/Logger.html
LogTrace(string)
Write a trace string into Apache Connect tracing subsystem
public void LogTrace(string var1)
Parameters
var1stringString to write
LogTrace(string, JVMBridgeException)
Write a trace string log into Apache Connect tracing subsystem
public void LogTrace(string var1, JVMBridgeException var2)
Parameters
var1stringString to write
var2JVMBridgeExceptionAssociated JVMBridgeException
LogTrace(string, params object[])
Write a trace string into Apache Connect tracing subsystem
public void LogTrace(string var1, params object[] var2)
Parameters
Remarks
Since the counter-part is based on log4j or slf4j the parameters in var2 will be applied on var1 using the rules defined from log4j or slf4j; see https://www.slf4j.org/api/org/slf4j/Logger.html
LogWarn(string)
Write a warning string into Apache Connect tracing subsystem
public void LogWarn(string var1)
Parameters
var1stringString to write
LogWarn(string, JVMBridgeException)
Write a warning string into Apache Connect tracing subsystem
public void LogWarn(string var1, JVMBridgeException var2)
Parameters
var1stringString to write
var2JVMBridgeExceptionAssociated JVMBridgeException
LogWarn(string, params object[])
Write a warning string into Apache Connect tracing subsystem
public void LogWarn(string var1, params object[] var2)
Parameters
Remarks
Since the counter-part is based on log4j or slf4j the parameters in var2 will be applied on var1 using the rules defined from log4j or slf4j; see https://www.slf4j.org/api/org/slf4j/Logger.html