|
2008-07-29 1.1.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 | |
|---|---|
MultiplexConnection()
|
|
| 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)
|
int |
read(byte[] bytes,
int offset,
int length)
|
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)
|
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 |
|---|
public MultiplexConnection()
| 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(ChannelService channel,
byte[] bytes)
throws java.io.IOException
channel - The channel (ChannelService) parameter.bytes - The bytes (byte[]) parameter.
java.io.IOException - IOException.public void setConnectionListener(MultiplexConnectionListener connectionListener)
connectionListener - The connection listener (MultiplexConnectionListener) parameter.getConnectionListener()
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.
public void write(byte[] bytes,
int offset,
int count)
throws java.io.IOException
java.io.IOException
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
java.io.IOException
|
2008-07-29 1.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||