Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.PortInfo
Source: src/com/multiversesocial/hyperview/PortInfo.java
This class saves/loads port configuration info from to the window's registry and somewhere else under unix
public class PortInfo implements PortConstants
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
int cntlFlags | For asynch notification | ||
volatile HyperView currentView | No comment in source; name appears in 1 other source file(s): HyperView. | ||
static volatile boolean isLoaded | = false | No comment in source; name appears in 1 other source file(s): InterProcessMemory. | |
static volatile boolean isSaved | = true | No comment in source; not referenced by name in this type’s methods. | |
static volatile HyperLinkedList listenerList | = new HyperLinkedList("portListenerList") | No comment in source; assigned in addPortListener(); used in remPortListener(), notifyPortListeners(); name appears in 3 other source file(s): HyperProcess, InterProcessMemory, ObjectRegistry. | |
static volatile int maximumPorts | = MAX_PORTS | Just to keep it simple ftm4 | |
static volatile HyperLinkedList portList | = new HyperLinkedList("portNodeList") | No comment in source; name appears in 3 other source file(s): HyperConnectionHandler, PortControlPane, SerialHandler. | |
static volatile int totalPorts | = 0 | No comment in source; name appears in 1 other source file(s): PortControlPane. | |
int x | No comment in source; not referenced by name in this type’s methods. | ||
int y | No comment in source; not referenced by name in this type’s methods. |
| Signature | Description | Source |
|---|---|---|
PortInfo() | 1 statement(s); calls super(). |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public static int addPort(PortNode tPortNode) | 3 statement(s); calls tPortList.dlStore(), PortInfo.savePortList(), tPortList.notifyAll(). | |
public void addPortListener(PortListener tPortListener) | 3 statement(s); calls listenerList.dlStore(), listenerList.notifyAll(); creates HyperLinkedList. | |
public static void close() | 5 statement(s); calls PortInfo.getPortList(), tPortNode.connectionHandler.stop(), tPortList.notifyAll(). | |
public static void close(HyperView tView) | 6 statement(s); calls PortInfo.getPortList(), tPortNode.connectionHandler.stop(), tPortList.notifyAll(). | |
public static int getPortFlags(int tIndex) | 3 statement(s); calls Integer.toHexString(), Integer.parseInt(); creates HyperPreferences. | |
public static HyperLinkedList getPortList() | 12 statement(s); calls Integer.valueOf(), HyperView.getDefaultPort(), PortInfo.addPort(), Integer.parseInt(), tPortList.dlStore() …; creates HyperPreferences, PortNode. | |
public static PortNode getPortNode(int tPortNumber) | 4 statement(s); calls tPortList.notifyAll(); creates PortNode. | |
public static PortNode getPortNodeIndex(int tIndex) | 7 statement(s); calls PortInfo.getPortList(). | |
public static String getPortString() | 14 statement(s); calls PortInfo.getPortList(), stringBuilder.append(), stringBuilder.toString(); creates StringBuilder. | |
static PortNode getViewDefaultPort(HyperView tView) | Returns PortInfo.getPortNode(Integer.parseInt(tView.defaults.listenPort.value)). | |
public static void main(String[] args) | 1 statement(s); calls PortInfo.getPortString(). | |
public static void notifyPortListeners(int tPortNumber, int tNewValue) | 3 statement(s); calls tListener.onPortChange(), any.printStackTrace(), listenerList.notifyAll(). | |
public static void open() | 4 statement(s); calls PortInfo.getPortList(), HyperConnectionHandler.startConnectionHandler(), tPortList.notifyAll(). | |
public static void open(HyperView tView) | 4 statement(s); calls PortInfo.getPortList(), HyperConnectionHandler.startConnectionHandler(), tPortList.notifyAll(). | |
public int removePort(PortNode tPortNode) | 6 statement(s); calls tPortList.dlDelete(), tPortList.notifyAll(). | |
public void remPortListener(PortListener tPortListener) | 2 statement(s); calls listenerList.dlDelete(), listenerList.notifyAll(). | |
public static int savePortFlags(int tIndex, PortNode tPortNodeReference) | 5 statement(s); calls Integer.toHexString(), tPortPreferences.put(); creates HyperPreferences. | |
public static void savePortList() | 10 statement(s); calls tPortNumberPreference.put(), Integer.toString(), tPortPreferences.put(), Integer.toHexString(), tPortList.notifyAll(); creates HyperPreferences. | |
public void setMaximumPorts(int tPortNumber) | 2 statement(s). | |
public static PortNode updatePort(PortNode tPortUpdateNode) | 6 statement(s); calls PortInfo.getPortList(), tPortList.dlStore(), PortInfo.savePortList(), PortInfo.notifyPortListeners(). |
static call — ChannelControlPane.java, line 55
55 currentPortNode = PortInfo.getPortNode(Integer.parseInt(tView.defaults.listenPort.value));
constant — PortControlPane.java, line 20
20 final static String PORT_PREFIX = PortInfo.PORT_PREFIX;
static call — HyperConnectionHandler.java, line 1062
1062 if((tPortList = (HyperLinkedList)PortInfo.getPortList())==null)
1063 {