public class NodeProxyTCP extends NodeProxy
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowAnswer |
static java.lang.String |
LOCALHOST |
protected int |
port |
static java.lang.String |
PROPERTY_PORT |
static java.lang.String |
PROPERTY_URL |
protected Server_TCP |
serverSocket |
protected java.lang.String |
url |
BUFFER, filter, history, lastSendCount, lastSendTryTime, name, nextPeer, no, online, property, PROPERTY_FILTER, PROPERTY_HISTORY, PROPERTY_ID, PROPERTY_NAME, PROPERTY_NODES, PROPERTY_ONLINE, PROPERTY_RECEIVE, PROPERTY_SEND, PROPERTY_TYP, PROPERTY_VERSION, propertyId, propertyInfo, propertyUpdate, receiveBytes, receivetime, sendBytes, sendtime, space, type, versionlisteners, updateListenerNEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor and Description |
|---|
NodeProxyTCP() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close() |
static NodeProxyTCP |
create(java.lang.String url,
int port) |
static NodeProxyTCP |
createServer(int port) |
java.lang.String |
getKey() |
java.lang.Integer |
getPort() |
NodeProxyTCP |
getSendableInstance(boolean reference)
Gets the sendable instance.
|
java.lang.String |
getUrl() |
java.lang.Object |
getValue(java.lang.Object element,
java.lang.String attrName)
Gets the value.
|
protected boolean |
initProxy() |
boolean |
isAllowAnswer() |
boolean |
isSendable() |
Message |
readFromInputStream(java.net.Socket socket) |
protected boolean |
sending(Message msg) |
boolean |
setValue(java.lang.Object element,
java.lang.String attrName,
java.lang.Object value,
java.lang.String type)
Sets the value.
|
boolean |
start() |
NodeProxyTCP |
withAllowAnswer(boolean value) |
NodeProxyTCP |
withListener(ObjectCondition condition) |
NodeProxyTCP |
withPort(int value) |
NodeProxyTCP |
withUrl(java.lang.String value) |
NodeProxyTCP |
withURLPort(java.lang.String url,
int port) |
compareTo, connectInfo, connectToPeer, getExecutor, getFilter, getHistory, getIDProperties, getInfoProperties, getName, getNewMsgNo, getProperties, getReceiveTime, getSendTime, getSpace, getType, getUpdateProperties, getVersion, initSpace, isOnline, isReconnecting, next, sendMessage, sendMessageToPeers, sendPing, setReceiveTime, setSendTime, updateReceive, with, withFilter, withHistory, withName, withOnline, withType, withVersionaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListenerpublic static final java.lang.String PROPERTY_URL
public static final java.lang.String PROPERTY_PORT
protected int port
protected java.lang.String url
public static final java.lang.String LOCALHOST
protected Server_TCP serverSocket
protected boolean allowAnswer
public java.lang.String getUrl()
public NodeProxyTCP withUrl(java.lang.String value)
public NodeProxyTCP withURLPort(java.lang.String url, int port)
public java.lang.Integer getPort()
public NodeProxyTCP withAllowAnswer(boolean value)
public boolean isAllowAnswer()
public NodeProxyTCP withPort(int value)
public java.lang.Object getValue(java.lang.Object element,
java.lang.String attrName)
SendableEntityCreatorgetValue in interface SendableEntityCreatorgetValue in class NodeProxyelement - the entityattrName - the attributepublic boolean setValue(java.lang.Object element,
java.lang.String attrName,
java.lang.Object value,
java.lang.String type)
SendableEntityCreatorsetValue in interface SendableEntityCreatorsetValue in class NodeProxyelement - the entityattrName - the attributevalue - the valuetype - edit, update or remove operationpublic Message readFromInputStream(java.net.Socket socket) throws java.io.IOException
java.io.IOExceptionpublic boolean start()
public boolean isSendable()
isSendable in class NodeProxypublic static NodeProxyTCP create(java.lang.String url, int port)
public static NodeProxyTCP createServer(int port)
public NodeProxyTCP getSendableInstance(boolean reference)
SendableEntityCreatorreference - the prototyppublic NodeProxyTCP withListener(ObjectCondition condition)