Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperChannel
Source: src/com/multiversesocial/hyperview/HyperChannel.java
Main methods sendIO(byte[] byteReference,int tLength) throws ClosedChannelException public int sendIO(byte byteReference) throws ClosedChannelException
Extends: Linkable
Implements: Channel, BufferConstants, HyperChannelConstants, ChannelIOReply
public class HyperChannel extends Linkable implements Channel, BufferConstants, HyperChannelConstants, ChannelIOReply
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
HyperChannel[] channel | No comment in source; used in close(). | ||
int channelFlags | name is Linkable.name (fixed 2026-09-24: duplicate removed) | ||
HyperLinkedList[] channelIOList | No comment in source; name appears in 5 other source file(s): ChannelControlPane, HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler …. | ||
ChannelIOReply channelIOReply | No comment in source; assigned in HyperChannel(). | ||
static HyperConnectionNode channelNode | No comment in source; assigned in HyperChannel(); used in sendIO(), getIO(). | ||
ChannelTempLink[] channelTempLink | No comment in source; name appears in 5 other source file(s): ChannelControlPane, HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler …. | ||
volatile ChannelView channelView | No comment in source; assigned in setChannelView(), removeChannelView(); used in processChannelOutput(). | ||
volatile Graphics graphics | No comment in source; assigned in setChannelView(), removeChannelView(), setGraphics(); used in processChannelOutput(). | ||
static Object graphicsLock | = new Object() | No comment in source; used in setChannelView(), setGraphics(). | |
static HyperChannelRegistry hyperChannelRegistry | No comment in source; assigned in HyperChannel(), open(); used in print(); name appears in 3 other source file(s): HyperConnectionHandler, HyperNBInputHandler, HyperNBOutputHandler. | ||
public HyperInputStream hyperInputStream | No comment in source; assigned in HyperChannel(), channelCleanup(); used in getInputStream(). | ||
public HyperOutputStream hyperOutputStream | No comment in source; assigned in HyperChannel(), channelCleanup(); used in getOutputStream(). | ||
int id | No comment in source; assigned in HyperChannel(); used in join(), leave(), print(). | ||
boolean[] impendingI0 | No comment in source; name appears in 3 other source file(s): HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler. | ||
int iteration | No comment in source; assigned in HyperChannel(), processChannelInput(); used in print(). | ||
long now | No comment in source; assigned in HyperChannel(); used in print(). | ||
HyperConnectionHandler parentConnectionHandler | No comment in source; assigned in HyperChannel(); used in sendIO(). | ||
HyperNBInputHandler parentInputHandler | No comment in source; assigned in HyperChannel(); used in getIO(). | ||
HyperNBOutputHandler parentOutputHandler | No comment in source; assigned in HyperChannel(); used in sendIO(). | ||
HyperView parentView | No comment in source; assigned in HyperChannel(); used in print(). | ||
int securityLevel | No comment in source; assigned in HyperChannel(); used in print(). | ||
volatile HyperLinkedList serverChannelJoinedList | No comment in source; assigned in HyperChannel(), join(), leave(); used in sendIO(), isJoined(), channelCleanup(), processChannelOutput(), processChannelInput(). | ||
static boolean serverRunning | = false | No comment in source; not referenced by name in this type’s methods. | |
long startTime | No comment in source; assigned in HyperChannel(); used in print(). | ||
Thread task | No comment in source; used in print(). | ||
public int totalChannels | No comment in source; assigned in HyperChannel(). | ||
long totalInBytes | No comment in source; assigned in HyperChannel(), processChannelInput(); used in print(). | ||
long totalOutBytes | No comment in source; assigned in HyperChannel(), processChannelOutput(), processChannelInput(); used in print(). | ||
int waitTime | No comment in source; assigned in HyperChannel(); used in print(). |
| Signature | Description | Source |
|---|---|---|
HyperChannel() | 12 statement(s); calls super(), System.currentTimeMillis(). | |
HyperChannel(String tName, HyperConnectionHandler tHandler) | 1 statement(s); calls this(). | |
HyperChannel(String tName, HyperConnectionHandler tHandler, HyperConnectionNode tNode) | 22 statement(s); calls super(), System.currentTimeMillis(), HyperChannelRegistry.getRegistry(), parentConnectionHandler.getNode(), any.printStackTrace() …; creates HyperLinkedList, HyperInputStream, HyperOutputStream. | |
HyperChannel(String tName, HyperConnectionHandler tHandler, HyperView tView) | 22 statement(s); calls super(), System.currentTimeMillis(), HyperChannelRegistry.getRegistry(), HyperConnectionHandler.getHandlerList(), System.exit() …; creates HyperLinkedList, HyperInputStream, HyperOutputStream. |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public void channelCleanup() | Release stream views and clear joined-list IO state for this channel. | |
public void close() throws ClosedChannelException | 1 statement(s); creates ClosedChannelException. | |
public byte getByte() | Returns 1. | |
public byte[] getData() | Returns new byte[1]. | |
public byte[] getData(int tLength) | Returns new byte[tLength]. | |
public InputStream getInputStream() | Returns hyperInputStream. | |
public int getInt() | Returns 1. | |
int getIO(IOReply tReply) | 4 statement(s); calls channelNode.getReadVector(), parentInputHandler.readAddList.dlStore(), parentInputHandler.readAddList.notifyAll(), tReply.notify(), tReply.wait(). | |
public long getLong() | Returns 1L. | |
public OutputStream getOutputStream() | Returns hyperOutputStream. | |
public short getShort() | Returns 1. | |
public boolean isJoined(HyperChannelNodeLink tNode) | 1 statement(s); calls notifyAll(). | |
public boolean isOpen() | Returns ((channelFlags & IS_OPEN) != 0 ? true : false). | |
public void join(STDInputHandler tSTDIN) | 4 statement(s); calls tSTDIN.parentConnectionHandler.getBlankNode(), join(). | |
public void join(HyperConnectionNode tNode) | 1 statement(s); calls serverChannelJoinedList.dlStore(), notifyAll(); creates HyperChannelNodeLink. | |
public void join(ServerChannelPane tPane) | Join for ChannelView interface | |
public void leave(ServerChannelPane tPane) | 1 statement(s); calls serverChannelJoinedList.dlDelete(); creates HyperPop. | |
public void leave(HyperConnectionNode tNode) | 1 statement(s); calls notifyAll(); creates HyperChannelNodeLink. | |
public static HyperChannel open(String tName) throws Exception | 3 statement(s); calls HyperChannelRegistry.getRegistry(), HyperChannelRegistry.getChannel(). | |
public void print() | 13 statement(s); calls Integer.toHexString(). | |
public long processChannelInput(HyperLinkedList tReadList) | 16 statement(s); calls readBuffer.clear(), readVector.socketChannel.read(), readBuffer.flip(), readVector.ioReply.processInput(), tNode.socketChannel.write(). | |
public long processChannelOutput(HyperLinkedList tWriteList) | 16 statement(s); calls tNode.socketChannel.write(), writeBuffer.array(), any.printStackTrace(), channelView.updateChannelView(), removeChannelView(). | |
public void removeChannelView() | 2 statement(s). | |
public void runAsynchronous() | 1 statement(s); calls notifyAll(). | |
public void runSynchronous() | 1 statement(s); calls notifyAll(). | |
public int sendIO(byte byteReference) | Returns 1. | |
public int sendIO(byte[] byteReference, int tLength) throws ClosedChannelException | Returns sendIO(byteReference, 0, tLength). | |
public int sendIO(byte[] byteReference, int tStart, int tLength) throws ClosedChannelException | 8 statement(s); calls tNode.getWriteVector(), tWriteVector.writeBuffer.clear(), tWriteVector.writeBuffer.put(), tWriteVector.writeBuffer.limit(), tWriteVector.writeBuffer.position() …. | |
public void setChannelView(ChannelView tChannelView, Graphics tGraphics) | 1 statement(s); calls graphicsLock.notifyAll(). | |
public void setGraphics(Graphics tGraphics) | 1 statement(s); calls graphicsLock.notifyAll(). |
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList(), setName(String)
instantiation — HyperChannelRegistry.java, line 81
81 tChannel = new HyperChannel(tName, 82 (HyperConnectionHandler)HyperConnectionHandler.connectionHandlerList.listBase);
declaration — ChannelControlPane.java, line 241
241 public synchronized boolean inChannel(HyperChannel tChannel)
242 {