|
2009-01-09 1.2.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 interface org.eclipse.soda.dk.multiplex.connection.service.MultiplexConnectionService |
|---|
SERVICE_NAME |
| Fields inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
CONNECTION_DEFAULT, CONNECTION_KEY, CONNECTION_TYPE, DEFAULT_CONNECTION |
| 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. |
ChannelService |
getChannel(java.lang.String channelId)
Get channel with the specified channel id parameter and return the ChannelService result. |
java.util.Map |
getChannels()
Gets the channels (Map) value. |
MultiplexConnectionListener |
getConnectionListener()
Gets the channel listener value. |
ConnectionService |
getConnectionService()
Gets the connection service value. |
MultiplexConnectionService |
getMultiplexConnectionService()
Gets the channel service value. |
boolean |
isOpen()
Gets the open (boolean) value. |
void |
open()
Open. |
ChannelService |
openChannel(java.util.Map parameters)
Open channel with the specified channel spec parameter and return the ChannelService result. |
void |
processEvents()
Process events. |
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. |
int |
read(ChannelService channel,
byte[] bytes)
Read with the specified channel and bytes parameters and return the int result. |
int |
read(ChannelService channel,
byte[] bytes,
int offset,
int length)
Read with the specified channel, bytes, offset and length parameters and return the int result. |
void |
setConnectionListener(MultiplexConnectionListener listener)
Sets the channel listener value. |
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. |
void |
write(ChannelService channel,
byte[] bytes)
Write with the specified channel and bytes parameters. |
void |
write(ChannelService channel,
byte[] bytes,
int offset,
int count)
Write with the specified channel, bytes, offset and count parameters. |
| Methods inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
attemptRecoveryFromError, finalize, getConfigurationService, getDefaultResource, getErrorSeverity, getLogDetails4, getLogDetails5, getLogLevel, getReadByteCount, getResource, getWriteByteCount, setConfigurationInformation, setConfigurationService, setLogLevel, setOpen, setReadByteCount, setWriteByteCount, toStringInfo, updateReadByteCount, updateWriteByteCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
setConfigurationInformation |
| 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 Connectionjava.io.IOException - IOException.ConnectionService.close()
public void exit()
throws java.io.IOException
exit in interface ConnectionServiceexit in class Connectionjava.io.IOException - IOException.
public void flush()
throws java.io.IOException
flush in interface ConnectionServiceflush in class Connectionjava.io.IOException - IOException.public ChannelService getChannel(java.lang.String channelId)
getChannel in interface MultiplexConnectionServicechannelId - The channel ID (String) parameter.
ChannelService) value.openChannel(Map)public java.util.Map getChannels()
getChannels in interface MultiplexConnectionServiceMap) value.public MultiplexConnectionListener getConnectionListener()
getConnectionListener in interface MultiplexConnectionServiceMultiplexConnectionListener) value.setConnectionListener(MultiplexConnectionListener)public ConnectionService getConnectionService()
ConnectionService)
value.getMultiplexConnectionService(),
setConnectionService(ConnectionService)public MultiplexConnectionService getMultiplexConnectionService()
MultiplexConnectionService) value.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 Connectionjava.io.IOException - IOException.ConnectionService.open()
public ChannelService openChannel(java.util.Map parameters)
throws java.io.IOException
openChannel in interface MultiplexConnectionServiceparameters - The parameters (Map) parameter.
ChannelService) value.
java.io.IOException - IOException.getChannel(String)
public void processEvents()
throws java.lang.Exception
processEvents in interface MultiplexConnectionServicejava.lang.Exception - Exception.
public int read(byte[] bytes)
throws java.io.IOException
read in interface ConnectionServiceread in class Connectionbytes - The bytes (byte[]) parameter.
int) value.
java.io.IOException - IOException.read(byte[],int,int),
read(ChannelService,byte[]),
read(ChannelService,byte[],int,int)
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
read in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
java.io.IOException - IOException.read(byte[]),
read(ChannelService,byte[]),
read(ChannelService,byte[],int,int)
public int read(ChannelService channel,
byte[] bytes)
throws java.io.IOException
read in interface MultiplexConnectionServicechannel - The channel (ChannelService) parameter.bytes - The bytes (byte[]) parameter.
int) value.
java.io.IOException - IOException.read(byte[]),
read(byte[],int,int),
read(ChannelService,byte[],int,int)
public int read(ChannelService channel,
byte[] bytes,
int offset,
int length)
throws java.io.IOException
read in interface MultiplexConnectionServicechannel - The channel (ChannelService) parameter.bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
java.io.IOException - IOException.read(byte[]),
read(byte[],int,int),
read(ChannelService,byte[])public void setConnectionListener(MultiplexConnectionListener listener)
setConnectionListener in interface MultiplexConnectionServicelistener - The listener (MultiplexConnectionListener) parameter.getConnectionListener()
public void setConnectionService(ConnectionService connectionService)
throws java.lang.IllegalArgumentException
connectionService - The connection service (ConnectionService) parameter.
java.lang.IllegalArgumentException - Illegal Argument Exception.getConnectionService(),
getMultiplexConnectionService()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
write in interface ConnectionServicewrite in class Connectionbytes - The bytes (byte[]) parameter.
java.io.IOException - IOException.write(byte[],int,int),
write(ChannelService,byte[]),
write(ChannelService,byte[],int,int)
public void write(byte[] bytes,
int offset,
int count)
throws java.io.IOException
write in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.count - The count (int) parameter.
java.io.IOException - IOException.write(byte[]),
write(ChannelService,byte[]),
write(ChannelService,byte[],int,int)
public void write(ChannelService channel,
byte[] bytes)
throws java.io.IOException
write in interface MultiplexConnectionServicechannel - The channel (ChannelService) parameter.bytes - The bytes (byte[]) parameter.
java.io.IOException - IOException.write(byte[]),
write(byte[],int,int),
write(ChannelService,byte[],int,int)
public void write(ChannelService channel,
byte[] bytes,
int offset,
int count)
throws java.io.IOException
write in interface MultiplexConnectionServicechannel - The channel (ChannelService) parameter.bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.count - The count (int) parameter.
java.io.IOException - IOException.write(byte[]),
write(byte[],int,int),
write(ChannelService,byte[])
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||