Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperChannel
Source: src/com/multiversesocial/hyperview/HyperChannel.java

HyperChannel

HyperView V3.2 — class
version V3.2 class

Summary

Main methods sendIO(byte[] byteReference,int tLength) throws ClosedChannelException public int sendIO(byte byteReference) throws ClosedChannelException

Source file: HyperChannel.java

Hierarchy

Extends: Linkable

Implements: Channel, BufferConstants, HyperChannelConstants, ChannelIOReply

Referenced HyperView classes

Media files used

Declaration & members

public class HyperChannel extends Linkable implements Channel, BufferConstants, HyperChannelConstants, ChannelIOReply

Declared in src/com/multiversesocial/hyperview/HyperChannel.java, lines 19–944. 29 field(s), 4 constructor(s), 31 method(s). Every member has an anchor you can link to (e.g. HyperChannel.html#<id>).

Fields (29)

DeclarationValue / initializerDescriptionSource
HyperChannel[] channelNo comment in source; used in close().line 43
int channelFlagsname is Linkable.name (fixed 2026-09-24: duplicate removed)line 38
HyperLinkedList[] channelIOListNo comment in source; name appears in 5 other source file(s): ChannelControlPane, HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler ….line 48
ChannelIOReply channelIOReplyNo comment in source; assigned in HyperChannel().line 26
static HyperConnectionNode channelNodeNo comment in source; assigned in HyperChannel(); used in sendIO(), getIO().line 24
volatile ChannelView channelViewNo comment in source; assigned in setChannelView(), removeChannelView(); used in processChannelOutput().line 25
volatile Graphics graphicsNo comment in source; assigned in setChannelView(), removeChannelView(), setGraphics(); used in processChannelOutput().line 23
static Object graphicsLock= new Object()No comment in source; used in setChannelView(), setGraphics().line 22
static HyperChannelRegistry hyperChannelRegistryNo comment in source; assigned in HyperChannel(), open(); used in print(); name appears in 3 other source file(s): HyperConnectionHandler, HyperNBInputHandler, HyperNBOutputHandler.line 40
public HyperInputStream hyperInputStreamNo comment in source; assigned in HyperChannel(), channelCleanup(); used in getInputStream().line 42
public HyperOutputStream hyperOutputStreamNo comment in source; assigned in HyperChannel(), channelCleanup(); used in getOutputStream().line 41
int idNo comment in source; assigned in HyperChannel(); used in join(), leave(), print().line 27
boolean[] impendingI0No comment in source; name appears in 3 other source file(s): HyperChannelRegistry, HyperNBInputHandler, HyperNBOutputHandler.line 44
int iterationNo comment in source; assigned in HyperChannel(), processChannelInput(); used in print().line 33
long nowNo comment in source; assigned in HyperChannel(); used in print().line 29
HyperConnectionHandler parentConnectionHandlerNo comment in source; assigned in HyperChannel(); used in sendIO().line 50
HyperNBInputHandler parentInputHandlerNo comment in source; assigned in HyperChannel(); used in getIO().line 52
HyperNBOutputHandler parentOutputHandlerNo comment in source; assigned in HyperChannel(); used in sendIO().line 51
HyperView parentViewNo comment in source; assigned in HyperChannel(); used in print().line 35
int securityLevelNo comment in source; assigned in HyperChannel(); used in print().line 39
volatile HyperLinkedList serverChannelJoinedListNo comment in source; assigned in HyperChannel(), join(), leave(); used in sendIO(), isJoined(), channelCleanup(), processChannelOutput(), processChannelInput().line 53
static boolean serverRunning= falseNo comment in source; not referenced by name in this type’s methods.line 45
long startTimeNo comment in source; assigned in HyperChannel(); used in print().line 30
Thread taskNo comment in source; used in print().line 34
public int totalChannelsNo comment in source; assigned in HyperChannel().line 46
long totalInBytesNo comment in source; assigned in HyperChannel(), processChannelInput(); used in print().line 32
long totalOutBytesNo comment in source; assigned in HyperChannel(), processChannelOutput(), processChannelInput(); used in print().line 31
int waitTimeNo comment in source; assigned in HyperChannel(); used in print().line 28

Constructors (4)

SignatureDescriptionSource
HyperChannel()12 statement(s); calls super(), System.currentTimeMillis().line 57
HyperChannel(String tName, HyperConnectionHandler tHandler)1 statement(s); calls this().line 81
HyperChannel(String tName, HyperConnectionHandler tHandler, HyperConnectionNode tNode)22 statement(s); calls super(), System.currentTimeMillis(), HyperChannelRegistry.getRegistry(), parentConnectionHandler.getNode(), any.printStackTrace() …; creates HyperLinkedList, HyperInputStream, HyperOutputStream.line 88
HyperChannel(String tName, HyperConnectionHandler tHandler, HyperView tView)22 statement(s); calls super(), System.currentTimeMillis(), HyperChannelRegistry.getRegistry(), HyperConnectionHandler.getHandlerList(), System.exit() …; creates HyperLinkedList, HyperInputStream, HyperOutputStream.line 142

Methods (31)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
public void channelCleanup()Release stream views and clear joined-list IO state for this channel.
Implements ChannelIOReply.channelCleanup()
line 579
public void close() throws ClosedChannelException1 statement(s); creates ClosedChannelException.
Implements Channel.close()
line 207
public byte getByte()Returns 1.line 285
public byte[] getData()Returns new byte[1].line 309
public byte[] getData(int tLength)Returns new byte[tLength].line 305
public InputStream getInputStream()Returns hyperInputStream.line 574
public int getInt()Returns 1.line 295
int getIO(IOReply tReply)4 statement(s); calls channelNode.getReadVector(), parentInputHandler.readAddList.dlStore(), parentInputHandler.readAddList.notifyAll(), tReply.notify(), tReply.wait().line 543
public long getLong()Returns 1L.line 300
public OutputStream getOutputStream()Returns hyperOutputStream.line 569
public short getShort()Returns 1.line 290
public boolean isOpen()Returns ((channelFlags & IS_OPEN) != 0 ? true : false).
Implements Channel.isOpen()
line 224
public void join(STDInputHandler tSTDIN)4 statement(s); calls tSTDIN.parentConnectionHandler.getBlankNode(), join().line 373
public void join(HyperConnectionNode tNode)1 statement(s); calls serverChannelJoinedList.dlStore(), notifyAll(); creates HyperChannelNodeLink.line 384
public void join(ServerChannelPane tPane)Join for ChannelView interfaceline 405
public void leave(ServerChannelPane tPane)1 statement(s); calls serverChannelJoinedList.dlDelete(); creates HyperPop.line 441
public void leave(HyperConnectionNode tNode)1 statement(s); calls notifyAll(); creates HyperChannelNodeLink.line 474
public static HyperChannel open(String tName) throws Exception3 statement(s); calls HyperChannelRegistry.getRegistry(), HyperChannelRegistry.getChannel().line 196
public void print()13 statement(s); calls Integer.toHexString().line 905
public long processChannelInput(HyperLinkedList tReadList)16 statement(s); calls readBuffer.clear(), readVector.socketChannel.read(), readBuffer.flip(), readVector.ioReply.processInput(), tNode.socketChannel.write().
Implements ChannelIOReply.processChannelInput()
line 722
public long processChannelOutput(HyperLinkedList tWriteList)16 statement(s); calls tNode.socketChannel.write(), writeBuffer.array(), any.printStackTrace(), channelView.updateChannelView(), removeChannelView().
Implements ChannelIOReply.processChannelOutput()
line 617
public void removeChannelView()2 statement(s).line 890
public void runAsynchronous()1 statement(s); calls notifyAll().line 534
public void runSynchronous()1 statement(s); calls notifyAll().line 525
public int sendIO(byte byteReference)Returns 1.line 314
public int sendIO(byte[] byteReference, int tLength) throws ClosedChannelExceptionReturns sendIO(byteReference, 0, tLength).line 228
public int sendIO(byte[] byteReference, int tStart, int tLength) throws ClosedChannelException8 statement(s); calls tNode.getWriteVector(), tWriteVector.writeBuffer.clear(), tWriteVector.writeBuffer.put(), tWriteVector.writeBuffer.limit(), tWriteVector.writeBuffer.position() ….line 233
public void setChannelView(ChannelView tChannelView, Graphics tGraphics)1 statement(s); calls graphicsLock.notifyAll().line 880
public void setGraphics(Graphics tGraphics)1 statement(s); calls graphicsLock.notifyAll().line 896

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From Linkable (7 fields, 2 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList(), setName(String)

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

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  {
Hits--