Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.ViewMemory
Source: src/com/multiversesocial/hyperview/ViewMemory.java
ViewMemory.class by Tony Swain May 18 2014. This class contains the code necessary for inter process View communication. Default is non alighned memory
Extends: InterProcessMemory
Implements: ViewMemoryConstants, MessagePortConstants, SharedMemoryListener, MemoryInitializer
public class ViewMemory extends InterProcessMemory implements ViewMemoryConstants, MessagePortConstants, SharedMemoryListener, MemoryInitializer
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
volatile byte[] displayBuffer | No comment in source; not referenced by name in this type’s methods. | ||
static volatile HyperLinkedList freedBlockList | = new HyperLinkedList() | No comment in source; not referenced by name in this type’s methods. | |
volatile HyperView parentView | No comment in source; used in toString(), updateViewData(). | ||
static volatile int serverID | No comment in source; not referenced by name in this type’s methods. | ||
static volatile HyperLinkedList viewList | = new HyperLinkedList() | No comment in source; used in getFreeViewBlock(); name appears in 2 other source file(s): AWTEventManager, HyperView. | |
static ViewMemory viewMemoryBase | No comment in source; assigned in ViewMemory(); used in toString(). | ||
static volatile int viewMemoryFlags | No comment in source; used in toString(). |
| Signature | Description | Source |
|---|---|---|
ViewMemory(HyperView tView) | 10 statement(s); calls super(), InterProcessMemory.open(), System.exit(), setResident(), start(). |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public static ViewMemory addLocalView(HyperView tView) | 18 statement(s); calls ViewMemory.viewMemoryBase.lock(), ViewMemory.getFreeViewBlock(), tMappedByteBuffer.putInt(), tView.startServer(), tMappedByteBuffer.position() …; creates IllegalMemoryAccessException. | |
public void addRemoteView(HyperView tView) | 1 statement(s). | |
public void close(HyperView tView) | 1 statement(s); calls stop(). | |
public void erase() | Better be even int boundry or cullabunga! | |
public void flush() | Cont ContDirtySetFullBlit / force mapped buffer to device. | |
public void getAtomicBlock(int[] tInt) | 1 statement(s); calls readInt(). | |
public static int getExternalViewNumber() | 3 statement(s); calls tViewMemory.readInt(). | |
public static int getFreeViewBlock() | volatile static HyperLinkedList viewList = new HyperLinkedList(); //--- | |
String getHexFormat() | Returns "". | |
public static synchronized int getLocalViewNumber() | 4 statement(s); calls tViewMemory.readInt(). | |
public int getViewInfo(HyperView tView, int[] tInt) | 7 statement(s); calls lock(), tFileLock.release(), read(). | |
static InterProcessMemory link(String tName, InterProcessMemory tLinkMemory) throws IllegalAccessException | 6 statement(s); calls tMemory.memName.equals(), tMemoryList.notifyAll(), tMemory.file.getChannel(), tMemory.fileChannel.map(), any.printStackTrace() …; creates IllegalAccessException, HyperLinkedList, RandomAccessFile. | |
public void onMemoryChange(int tInt) | SharedMemoryListener interface | |
public static ViewMemory open(HyperView tView) | Returns new ViewMemory(tView). | |
public void paint(Graphics tGraphics) | 1 statement(s); calls mappedByteBuffer.hasArray(). | |
public boolean passServerBase() | Returns true. | |
public static void removeLocalView(HyperView tView) | 8 statement(s); calls ViewMemory.viewMemoryBase.lock(), tMappedByteBuffer.getInt(), tMappedByteBuffer.putInt(), tView.stopServer(), tMemoryLock.release(). | |
public void removeRemoteView(HyperView tView) | 1 statement(s). | |
public boolean resetServerBase() | Returns true. | |
public boolean serverBaseIsRunning() | Returns true. | |
public boolean setServerBase(HyperView tView) | Returns true. | |
public int signal(int tFlags, int tProcessID) | Returns 1. | |
public String toString() | 12 statement(s); calls stringBuilder.append(), stringBuilder.toString(); creates StringBuilder. | |
public void updateViewData() | Cont ContMemoryWindowRefresh analog: snapshot parent view into shared mem. | |
public int write(byte tByte) | Returns 1. | |
public int write(byte[] tByte) | Returns 1. | |
public int write(char tChar) | Returns 1. | |
public int write(char[] tChar) | Returns 1. | |
public int write(int tInt) | Returns 1. | |
public int write(int[] tInt) | Returns 1. | |
public int writeDirect(byte tByte) | Returns 1. | |
public int writeDirect(byte[] tByte) | Returns 1. | |
public int writeDirect(char tChar) | Returns 1. | |
public int writeDirect(char[] tChar) | Returns 1. | |
public int writeDirect(int tInt) | Returns 1. | |
public int writeDirect(int[] tInt) | Returns 1. |
Fields: fieldList, file, fileChannel, fileName, fp0, fp1, graphics, indeces, index, innerParent, listenerList, listenerThread, mappedByteBuffer, memFlags, memName, memoryInitializer, memoryList, memoryMode, memoryTimer, memoryType, memSize, memSizeLong, processIndex, processNumber, startTime, totalProcesses, updateMillis
Methods: addListener(SharedMemoryListener), appendFieldList(HyperLinkedList), blockingLock(int, int), close(String), close(), disableBackupTimer(int), enableBackupTimer(int), exists(), getBitWidth(), isLoaded(), isResident(), listenerWait(), load(), loadMemoryList(), lock(), lock(int, int, int), lock(int), lockRegion(long, long), main(StringArr), notifyListeners(), open(InterProcessMemory), open(String), open(String, MemoryInitializer), open(String, int), open(String, int, MemoryInitializer), purge(), read(), read(intArr, int), read(byteArr, int, int), readDirect(), readDirect(intArr, int), readDirect(byteArr, int, int), readInt(), readInt(int), readInt(int, intArr), readIntDirect(int), readShort(), readShort(int), remakeFieldList(HyperLinkedList), removeListener(SharedMemoryListener), run(), saveToDevice(), seek(int), setBitWidth(byte), setDataAligned(), setDataUnAligned(), setFieldList(HyperLinkedList), setMemoryInitializer(MemoryInitializer), setResident(), setUpdateMillis(long), start(), stop(), unsetResident(), write(byteArr, int, int), write(String), write(String, int, int), writeDirect(byteArr, int, int), writeDirect(String), writeDirect(String, int, int), writeInt(int), writeInt(int, int), writeInt(int, intArr), writeIntDirect(int), writeIntDirect(int, int), writeRegion(byteArr, int, int), writeRegionDirect(byteArr, int, int), writeShort(int, short)
Fields: attachment, linkFlags, name, next, parentList, prev
Methods: inList(), setName(String)