public abstract class NodeProxy extends SendableItem implements java.lang.Comparable<NodeProxy>, SendableEntityCreatorNoIndex
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER |
protected ObjectCondition |
filter |
protected java.lang.String |
history |
protected int |
lastSendCount |
protected long |
lastSendTryTime |
protected java.lang.String |
name |
protected NodeProxy |
nextPeer |
protected long |
no |
protected boolean |
online |
protected PropertyList |
property |
static java.lang.String |
PROPERTY_FILTER |
static java.lang.String |
PROPERTY_HISTORY |
static java.lang.String |
PROPERTY_ID |
static java.lang.String |
PROPERTY_NAME |
static java.lang.String |
PROPERTY_NODES |
static java.lang.String |
PROPERTY_ONLINE |
static java.lang.String |
PROPERTY_RECEIVE |
static java.lang.String |
PROPERTY_SEND |
static java.lang.String |
PROPERTY_TYP |
static java.lang.String |
PROPERTY_VERSION |
protected PropertyList |
propertyId |
protected PropertyList |
propertyInfo |
protected PropertyList |
propertyUpdate |
protected long |
receiveBytes |
protected long |
receivetime |
protected long |
sendBytes |
protected long |
sendtime |
protected Space |
space |
protected NodeProxyType |
type |
protected java.lang.String |
version |
listeners, updateListenerNEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor and Description |
|---|
NodeProxy() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
close() |
int |
compareTo(NodeProxy o) |
void |
connectInfo() |
void |
connectToPeer() |
TaskExecutor |
getExecutor() |
ObjectCondition |
getFilter() |
java.lang.String |
getHistory() |
java.lang.String[] |
getIDProperties() |
java.lang.String[] |
getInfoProperties() |
abstract java.lang.String |
getKey() |
java.lang.String |
getName() |
long |
getNewMsgNo() |
java.lang.String[] |
getProperties()
Gets the properties.
|
java.lang.Long |
getReceiveTime() |
long |
getSendTime() |
Space |
getSpace() |
NodeProxyType |
getType() |
java.lang.String[] |
getUpdateProperties() |
java.lang.Object |
getValue(java.lang.Object element,
java.lang.String attrName)
Gets the value.
|
java.lang.String |
getVersion() |
protected abstract boolean |
initProxy() |
NodeProxy |
initSpace(Space value) |
boolean |
isOnline() |
boolean |
isReconnecting(SimpleList<java.lang.Integer> seconds) |
abstract boolean |
isSendable() |
NodeProxy |
next() |
protected boolean |
sending(Message msg) |
boolean |
sendMessage(Message msg) |
boolean |
sendMessageToPeers(Message msg) |
boolean |
sendPing() |
void |
setReceiveTime() |
void |
setSendTime(int bytes) |
boolean |
setValue(java.lang.Object element,
java.lang.String attrName,
java.lang.Object value,
java.lang.String type)
Sets the value.
|
void |
updateReceive(int len,
boolean setOnline) |
NodeProxy |
with(NodeProxy nextPeer) |
NodeProxy |
withFilter(ObjectCondition value) |
NodeProxy |
withHistory(java.lang.String value) |
NodeProxy |
withName(java.lang.String name) |
NodeProxy |
withOnline(boolean value) |
NodeProxy |
withType(NodeProxyType value) |
NodeProxy |
withVersion(java.lang.String value) |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSendableInstancepublic static int BUFFER
public static final java.lang.String PROPERTY_SEND
public static final java.lang.String PROPERTY_RECEIVE
public static final java.lang.String PROPERTY_HISTORY
public static final java.lang.String PROPERTY_NODES
public static final java.lang.String PROPERTY_FILTER
public static final java.lang.String PROPERTY_ONLINE
public static final java.lang.String PROPERTY_VERSION
public static final java.lang.String PROPERTY_TYP
public static final java.lang.String PROPERTY_NAME
public static final java.lang.String PROPERTY_ID
protected PropertyList propertyId
protected PropertyList propertyUpdate
protected PropertyList propertyInfo
protected PropertyList property
protected NodeProxyType type
protected long sendtime
protected long receivetime
protected long lastSendTryTime
protected long receiveBytes
protected long sendBytes
protected int lastSendCount
protected java.lang.String version
protected boolean online
protected java.lang.String history
protected ObjectCondition filter
protected long no
protected Space space
protected java.lang.String name
protected NodeProxy nextPeer
public java.lang.String[] getUpdateProperties()
public java.lang.String[] getInfoProperties()
public java.lang.String[] getProperties()
SendableEntityCreatorgetProperties in interface SendableEntityCreatorpublic java.lang.String[] getIDProperties()
public void connectToPeer()
public void connectInfo()
public boolean sendMessage(Message msg)
public boolean sendPing()
public boolean sendMessageToPeers(Message msg)
protected boolean sending(Message msg)
public NodeProxyType getType()
public void updateReceive(int len,
boolean setOnline)
public NodeProxy withType(NodeProxyType value)
public long getNewMsgNo()
public void setSendTime(int bytes)
public long getSendTime()
public boolean isReconnecting(SimpleList<java.lang.Integer> seconds)
public void setReceiveTime()
public java.lang.Long getReceiveTime()
public NodeProxy withOnline(boolean value)
public boolean isOnline()
public abstract boolean isSendable()
public int compareTo(NodeProxy o)
compareTo in interface java.lang.Comparable<NodeProxy>public java.lang.String getHistory()
public NodeProxy withHistory(java.lang.String value)
public NodeProxy withFilter(ObjectCondition value)
public ObjectCondition getFilter()
public java.lang.String getVersion()
public NodeProxy withVersion(java.lang.String value)
public boolean setValue(java.lang.Object element,
java.lang.String attrName,
java.lang.Object value,
java.lang.String type)
SendableEntityCreatorsetValue in interface SendableEntityCreatorelement - the entityattrName - the attributevalue - the valuetype - edit, update or remove operationpublic java.lang.Object getValue(java.lang.Object element,
java.lang.String attrName)
SendableEntityCreatorgetValue in interface SendableEntityCreatorelement - the entityattrName - the attributepublic abstract boolean close()
public java.lang.String getName()
public NodeProxy withName(java.lang.String name)
public Space getSpace()
protected abstract boolean initProxy()
public NodeProxy next()
public TaskExecutor getExecutor()
public abstract java.lang.String getKey()