|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.connecterra.ale.reader.DeviceChannel
public abstract class DeviceChannel
This class is the base class for all channels used by the ChannelManager
. A DeviceChannel may only be associated with a
single ChannelManager. Note that creating a channel must not
actually begin communications with the device until the DeviceChannel.open()
method is called.
See ChannelManager
for notes on this class and reentrancy.
Nested Class Summary | |
---|---|
protected class |
DeviceChannel.AbstractOpenChannel
An instance of this class should be instantiated and returned by the channel when the channel is opened. |
protected class |
DeviceChannel.MarkingInputStream
This class wraps another input stream. |
Constructor Summary | |
---|---|
DeviceChannel()
|
Method Summary | |
---|---|
protected abstract void |
close()
Close the channel. |
protected Logger |
getLogger()
|
protected com.connecterra.ale.reader.Reactor |
getReactor()
|
protected void |
markUsed()
This method must be invoked by the channel whenever data is received on the channel. |
protected abstract DeviceChannel.AbstractOpenChannel |
open()
Open the channel. |
protected void |
reactivateChannels()
Delegates to ChannelManager.reactivateChannels() on the
associated ChannelManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeviceChannel()
Method Detail |
---|
protected com.connecterra.ale.reader.Reactor getReactor() throws IOException
Reactor
which can be used to implement
asynchronous listeners.
IOException
- if an I/O error occursprotected Logger getLogger()
Logger
returned by the associated
ChannelManager
's proxy.protected void markUsed()
ChannelManager.getLastUsedTime()
method.
protected void reactivateChannels()
ChannelManager.reactivateChannels()
on the
associated ChannelManager.
protected abstract DeviceChannel.AbstractOpenChannel open() throws IOException
AbstractOpenChannel
value which
represents the open channel.
IOException
- if an I/O error occursprotected abstract void close()
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |