|
2010-01-22 1.2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectConnection
org.eclipse.soda.dk.multiplex.connection.MultiplexConnection
public abstract class MultiplexConnection
The MultiplexConnection class implements the MultiplexConnectionService interface.
org.eclipse.soda.dk.multiplex.connection.service.MultiplexConnectionService| Field Summary | |
|---|---|
protected static int[] |
CHANNEL_STATE_RESOURCE_TABLE
Define the channel state resource table (int[]) constant. |
| Constructor Summary | |
|---|---|
protected |
MultiplexConnection()
Constructs an instance of this class. |
protected |
MultiplexConnection(ConfigurationService configuration)
Constructs an instance of this class from the specified configuration parameter. |
| Method Summary | |
|---|---|
void |
channelChanged(ChannelService channel,
int newState,
int oldState)
Channel changed with the specified channel, new state and old state parameters. |
protected java.lang.String |
createChannelId()
Create channel id and return the String result. |
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 connection listener (MultiplexConnectionListener) value. |
protected int |
getErrorSeverity(int errorNumber,
java.lang.Throwable error)
Get error severity with the specified error number and error parameters 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 bytes. |
void |
setConnectionListener(MultiplexConnectionListener connectionListener)
Sets the connection listener value. |
void |
write(byte[] bytes,
int offset,
int count)
Write with the specified bytes, offset and count parameters. |
void |
write(ChannelService channel,
byte[] bytes)
Writes count bytes from the byte array buffer starting at offset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int[] CHANNEL_STATE_RESOURCE_TABLE
| Constructor Detail |
|---|
protected MultiplexConnection()
MultiplexConnection(ConfigurationService),
#MultiplexConnection(Dictionary)protected MultiplexConnection(ConfigurationService configuration)
configuration - The configuration (ConfigurationService) parameter.MultiplexConnection(),
#MultiplexConnection(Dictionary)| Method Detail |
|---|
public void channelChanged(ChannelService channel,
int newState,
int oldState)
channel - The channel (ChannelService) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.protected java.lang.String createChannelId()
String) value.public ChannelService getChannel(java.lang.String channelId)
channelId - The channel ID (String) parameter.
ChannelService) value.public java.util.Map getChannels()
Map) value.public MultiplexConnectionListener getConnectionListener()
MultiplexConnectionListener) value.setConnectionListener(MultiplexConnectionListener)
protected int getErrorSeverity(int errorNumber,
java.lang.Throwable error)
errorNumber - The error number (int) parameter.error - The error (Throwable) parameter.
int) value.
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
java.io.IOException - IOException.read(ChannelService,byte[])
public int read(ChannelService channel,
byte[] bytes)
throws java.io.IOException
channel - The channel (ChannelService) parameter.bytes - The bytes (byte[]) parameter.
java.io.IOException - IOException.read(byte[],int,int)public void setConnectionListener(MultiplexConnectionListener connectionListener)
connectionListener - The connection listener (MultiplexConnectionListener) parameter.getConnectionListener()
public void write(byte[] bytes,
int offset,
int count)
throws java.io.IOException
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.count - The count (int) parameter.
java.io.IOException - IOException.write(ChannelService,byte[])
public void write(ChannelService channel,
byte[] bytes)
throws java.io.IOException
count bytes from the byte array buffer starting at offset.
channel - The channel (ChannelService) parameter.bytes - The bytes (byte[]) parameter.
java.io.IOException - IOException.write(byte[],int,int)
|
2010-01-22 1.2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||