Package org.bidib.wizard.mvc.ping.model
Class NodePingModel
- java.lang.Object
-
- com.jgoodies.common.bean.Bean
-
- com.jgoodies.binding.beans.Model
-
- org.bidib.wizard.mvc.ping.model.NodePingModel
-
- All Implemented Interfaces:
com.jgoodies.common.bean.ObservableBean,com.jgoodies.common.bean.ObservableBean2,Serializable
public class NodePingModel extends com.jgoodies.binding.beans.Model- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_ADDITIONAL_FILL_BYTES_COUNTstatic StringPROPERTY_ADDITIONAL_PAYLOAD_START_VALUEstatic StringPROPERTY_ADDITIONAL_TOTAL_BYTES_COUNTstatic StringPROPERTY_IDENTIFY_PROCESSING_WAIT_DURATIONstatic StringPROPERTY_LAST_PING_TIMESTAMPstatic StringPROPERTY_LAST_PONG_MARKERstatic StringPROPERTY_NODE_LABELstatic StringPROPERTY_NODE_PING_STATUSstatic StringPROPERTY_PING_INTERVAL
-
Constructor Summary
Constructors Constructor Description NodePingModel(org.bidib.wizard.api.model.NodeInterface node)
-
Method Summary
-
Methods inherited from class com.jgoodies.binding.beans.Model
createPropertyChangeSupport, firePropertyChange
-
Methods inherited from class com.jgoodies.common.bean.Bean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Field Detail
-
PROPERTY_NODE_PING_STATUS
public static final String PROPERTY_NODE_PING_STATUS
- See Also:
- Constant Field Values
-
PROPERTY_PING_INTERVAL
public static final String PROPERTY_PING_INTERVAL
- See Also:
- Constant Field Values
-
PROPERTY_LAST_PING_TIMESTAMP
public static final String PROPERTY_LAST_PING_TIMESTAMP
- See Also:
- Constant Field Values
-
PROPERTY_LAST_PONG_MARKER
public static final String PROPERTY_LAST_PONG_MARKER
- See Also:
- Constant Field Values
-
PROPERTY_NODE_LABEL
public static final String PROPERTY_NODE_LABEL
- See Also:
- Constant Field Values
-
PROPERTY_ADDITIONAL_FILL_BYTES_COUNT
public static final String PROPERTY_ADDITIONAL_FILL_BYTES_COUNT
- See Also:
- Constant Field Values
-
PROPERTY_ADDITIONAL_TOTAL_BYTES_COUNT
public static final String PROPERTY_ADDITIONAL_TOTAL_BYTES_COUNT
- See Also:
- Constant Field Values
-
PROPERTY_ADDITIONAL_PAYLOAD_START_VALUE
public static final String PROPERTY_ADDITIONAL_PAYLOAD_START_VALUE
- See Also:
- Constant Field Values
-
PROPERTY_IDENTIFY_PROCESSING_WAIT_DURATION
public static final String PROPERTY_IDENTIFY_PROCESSING_WAIT_DURATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerNode
public void registerNode()
-
freeNode
public void freeNode()
-
getNode
public org.bidib.wizard.api.model.NodeInterface getNode()
- Returns:
- the node
-
getNodePingState
public NodePingState getNodePingState()
- Returns:
- the nodePingState
-
setNodePingState
public void setNodePingState(NodePingState nodePingState)
- Parameters:
nodePingState- the nodePingState to set
-
setNodeLabel
public void setNodeLabel(String nodeLabel)
- Parameters:
nodeLabel- the node label to set
-
getNodeLabel
public String getNodeLabel()
- Returns:
- the node label
-
getPingInterval
public Integer getPingInterval()
- Returns:
- the pingInterval in milliseconds
-
setPingInterval
public void setPingInterval(Integer pingInterval)
- Parameters:
pingInterval- the pingInterval in milliseconds to set
-
getLastPingTimestamp
public long getLastPingTimestamp()
- Returns:
- the lastPing timestamp
-
setLastPingTimestamp
public void setLastPingTimestamp(long lastPingTimestamp)
- Parameters:
lastPingTimestamp- the lastPing timestamp to set
-
getLastPongMarker
public int getLastPongMarker()
- Returns:
- the last pong marker
-
setLastPongMarker
public void setLastPongMarker(int lastPongMarker)
- Parameters:
lastPongMarker- the last pong marker to set
-
getAdditionalFillBytesCount
public int getAdditionalFillBytesCount()
- Returns:
- the additionalFillBytesCount
-
setAdditionalFillBytesCount
public void setAdditionalFillBytesCount(int additionalFillBytesCount)
- Parameters:
additionalFillBytesCount- the additionalFillBytesCount to set
-
getAdditionalTotalBytesCount
public int getAdditionalTotalBytesCount()
- Returns:
- the additionalTotalBytesCount
-
setAdditionalTotalBytesCount
public void setAdditionalTotalBytesCount(int additionalTotalBytesCount)
- Parameters:
additionalTotalBytesCount- the additionalTotalBytesCount to set
-
setAdditionalPayloadStartValue
public void setAdditionalPayloadStartValue(int additionalPayloadStartValue)
- Parameters:
additionalPayloadStartValue- the start value of the additional payload bytes
-
getAdditionalPayloadStartValue
public int getAdditionalPayloadStartValue()
- Returns:
- the start value of the additional payload bytes
-
setData
public void setData(int data)
-
getData
public int getData()
-
getNextIncData
public byte[] getNextIncData()
-
getIdentifyProcessingWaitDuration
public int getIdentifyProcessingWaitDuration()
- Returns:
- the identifyProcessingWaitDuration
-
setIdentifyProcessingWaitDuration
public void setIdentifyProcessingWaitDuration(int identifyProcessingWaitDuration)
- Parameters:
identifyProcessingWaitDuration- the identifyProcessingWaitDuration to set
-
prepareNodeLabel
public String prepareNodeLabel()
-
-