|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.connection.Connection
org.eclipse.soda.dk.connection.TraceConnection
public class TraceConnection
| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
CLIENT_WAIT_RESOURCE, CLOSE_RESOURCE, CLOSED_RESOURCE, configurationService, OPEN_RESOURCE, OPENFAILED_RESOURCE, READ_BYTES_RESOURCE, WRITE_BYTES_RESOURCE |
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Fields inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
CONNECTION_KEY, DEFAULT_CONNECTION, SERVICE_NAME |
| Constructor Summary | |
|---|---|
TraceConnection(ConnectionService connectionService)
Constructs an instance of this class from the specified connection service parameter. |
|
| Method Summary | |
|---|---|
void |
close()
Close. |
void |
exit()
Exit. |
void |
flush()
Flush. |
ConnectionService |
getConnectionService()
Gets the connection service value. |
boolean |
isOpen()
Gets the open (boolean) value. |
void |
open()
Open. |
int |
read(byte[] bytes)
Read with the specified bytes parameter and return the int result. |
int |
read(byte[] bytes,
int offset,
int length)
Read with the specified bytes, offset and length parameters and return the int result. |
void |
setConnectionService(ConnectionService connectionService)
Sets the connection service value. |
java.lang.String |
toString()
Returns the string value. |
void |
write(byte[] bytes)
Write with the specified bytes parameter. |
void |
write(byte[] bytes,
int offset,
int count)
Write with the specified bytes, offset and count parameters. |
| Methods inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
attemptRecoveryFromError, finalize, getConfigurationService, getDefaultResource, getErrorSeverity, getResource, setConfigurationService, setOpen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TraceConnection(ConnectionService connectionService)
ConnectionService)
parameter.
connectionService - The connection service (ConnectionService) parameter.| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface ConnectionServiceclose in class ConnectionIOException.
java.io.IOExceptionConnectionService.close()
public void exit()
throws java.io.IOException
exit in interface ConnectionServiceexit in class ConnectionIOException.
java.io.IOException
public void flush()
throws java.io.IOException
flush in interface ConnectionServiceflush in class ConnectionIOException.
java.io.IOExceptionpublic ConnectionService getConnectionService()
ConnectionService)
value.setConnectionService(ConnectionService)public boolean isOpen()
isOpen in interface ConnectionServiceisOpen in class Connectionboolean) value.ConnectionService.isOpen(),
Connection.setOpen(boolean)
public void open()
throws java.io.IOException
open in interface ConnectionServiceopen in class ConnectionIOException.
java.io.IOExceptionConnectionService.open()
public int read(byte[] bytes)
throws java.io.IOException
byte[]) parameter.
read in interface ConnectionServiceread in class Connectionbytes - The bytes (byte[]) parameter.
int) value.
IOException.
java.io.IOExceptionread(byte[],int,int)
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
byte[]) parameter.
The offset (int) parameter.
The length (int) parameter.
read in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
IOException.
java.io.IOExceptionread(byte[])
public void setConnectionService(ConnectionService connectionService)
throws java.lang.IllegalArgumentException
ConnectionService)
parameter.
Illegal Argument Exception if connectionService is null.
connectionService - The connection service (ConnectionService) parameter.
java.lang.IllegalArgumentException - Illegal Argument Exception.getConnectionService()public java.lang.String toString()
toString in class EscObjectString) value.EscObject.getStaticString(String,String),
EscObject.getString(String,String)
public void write(byte[] bytes)
throws java.io.IOException
byte[]) parameter.
write in interface ConnectionServicewrite in class Connectionbytes - The bytes (byte[]) parameter.
IOException.
java.io.IOExceptionwrite(byte[],int,int)
public void write(byte[] bytes,
int offset,
int count)
throws java.io.IOException
byte[]) parameter.
The offset (int) parameter.
The count (int) parameter.
write in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.count - The count (int) parameter.
IOException.
java.io.IOExceptionwrite(byte[])
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||