public abstract class Channel extends Object
Every channel has an index (at the corresponding gate), ID, and type. The connected channel is given by the ID of destination channel.
| Modifier and Type | Field and Description |
|---|---|
protected EnvelopeDispatcher |
envelopeDispatcher |
| Modifier | Constructor and Description |
|---|---|
protected |
Channel(int index,
ChannelID id,
ChannelID connectedId,
ChannelType type)
Auxiliary constructor for channels
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
destroy() |
ChannelType |
getChannelType() |
ChannelID |
getConnectedId() |
ChannelID |
getID() |
int |
getIndex() |
abstract JobID |
getJobID() |
abstract boolean |
isClosed() |
abstract boolean |
isInputChannel() |
abstract void |
queueEnvelope(Envelope envelope) |
void |
registerEnvelopeDispatcher(EnvelopeDispatcher envelopeDispatcher)
Registers an EnvelopeDispatcher with this channel at runtime.
|
abstract void |
releaseAllResources() |
abstract void |
transferEvent(AbstractEvent event) |
protected EnvelopeDispatcher envelopeDispatcher
protected Channel(int index,
ChannelID id,
ChannelID connectedId,
ChannelType type)
index - the index of the channel in either the output or input gateid - the ID of the channelconnectedId - the ID of the channel this channel is connected topublic int getIndex()
public ChannelID getID()
public ChannelID getConnectedId()
public ChannelType getChannelType()
public void registerEnvelopeDispatcher(EnvelopeDispatcher envelopeDispatcher)
envelopeDispatcher - the envelope dispatcher to use for data transferspublic abstract JobID getJobID()
public abstract boolean isInputChannel()
public abstract boolean isClosed()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract void transferEvent(AbstractEvent event) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract void queueEnvelope(Envelope envelope)
public abstract void releaseAllResources()
public abstract void destroy()
Copyright © 2014 The Apache Software Foundation. All rights reserved.