Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperNodeReadVector
Source: src/com/multiversesocial/hyperview/HyperNodeReadVector.java
Similar to HyperView - runVector() "PROPER" implementation of this class is thus "DO SOME OPERATION IN function() AND RETURN"
public class HyperNodeReadVector extends Linkable implements HyperNodeVectorConstants
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
byte[] buffer | = new byte[readBufferSize] | La Ring buffer | |
HyperChannel channel | = null | Todo: make into a list. just 1 4 now. | |
IOReply ioReply | = null | No comment in source; assigned in cleanUp(). | |
int iteration | = 0 | No comment in source; assigned in function(), cleanUp(), initialize(). | |
int lastIteration | = -1 | No comment in source; assigned in initialize(). | |
int number | = -1 | No comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize(). | |
HyperConnectionNode parentNode | = null | No comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize(); used in function(). | |
ByteBuffer readBuffer | = null | No comment in source; assigned in HyperNodeReadVector(), cleanUp(); used in function(), initialize(). | |
int readBufferSize | = BufferConstants.DEFAULT_BUFFER_SIZE | ATM this is 512 bytes or IP/MRU | |
int readBytes | = 0 | No comment in source; name appears in 3 other source file(s): HyperChannel, HyperConnectionNode, HyperNBInputHandler. | |
int readVectorFlags | = 0 | No comment in source; assigned in initialize(). | |
SocketChannel socketChannel | = null | No comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize(); used in function(). | |
StateMachine stateMachine | = null | No comment in source; assigned in HyperNodeReadVector(), cleanUp(), initialize(); used in function(). | |
int type | = 0 | No comment in source; not referenced by name in this type’s methods. |
| Signature | Description | Source |
|---|---|---|
HyperNodeReadVector(SocketChannel tChannel, HyperConnectionNode tNode) | 1 statement(s); calls this(). | |
HyperNodeReadVector(SocketChannel tChannel, HyperConnectionNode tNode, ByteBuffer tByteBuffer) | 8 statement(s); calls super(), ByteBuffer.allocate(). | |
HyperNodeReadVector(HyperChannel tChannel, HyperConnectionNode tNode, ByteBuffer tByteBuffer) | 7 statement(s); calls super(), ByteBuffer.allocate(). |
| Signature | Description | Source |
|---|---|---|
public void cleanUp() | 8 statement(s). | |
public int function() | 5 statement(s); calls readBuffer.clear(), socketChannel.read(), readBuffer.flip(), readBuffer.get(), wait(). | |
public void initialize(SocketChannel tChannel, HyperConnectionNode tNode) | 9 statement(s); calls readBuffer.clear(). | |
public void initialize(HyperChannel tChannel, HyperConnectionNode tNode) | 8 statement(s); calls readBuffer.clear(). |
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList(), setName(String)
instantiation — HyperConnectionNode.java, line 605
605 new HyperNodeReadVector(tChannel,this,(ByteBuffer)null);
static call — HyperNBInputHandler.java, line 19
19 Base IO -> HyperNodeReadVector.function();
declaration — HyperChannel.java, line 545
545 HyperNodeReadVector tReadVector = channelNode.getReadVector(this,tReply);