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_TOTAL_BYTES_COUNTstatic StringPROPERTY_LAST_PINGstatic 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfreeNode()intgetAdditionalFillBytesCount()intgetAdditionalTotalBytesCount()intgetData()longgetLastPing()byte[]getNextIncData()org.bidib.wizard.api.model.NodeInterfacegetNode()StringgetNodeLabel()NodePingStategetNodePingState()IntegergetPingInterval()inthashCode()StringprepareNodeLabel()voidregisterNode()voidsetAdditionalFillBytesCount(int additionalFillBytesCount)voidsetAdditionalTotalBytesCount(int additionalTotalBytesCount)voidsetData(int data)voidsetLastPing(long lastPing)voidsetNodeLabel(String nodeLabel)voidsetNodePingState(NodePingState nodePingState)voidsetPingInterval(Integer pingInterval)StringtoString()-
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
public static final String PROPERTY_LAST_PING
- 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
-
-
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
-
getLastPing
public long getLastPing()
- Returns:
- the lastPing
-
setLastPing
public void setLastPing(long lastPing)
- Parameters:
lastPing- the lastPing 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
-
setData
public void setData(int data)
-
getData
public int getData()
-
getNextIncData
public byte[] getNextIncData()
-
prepareNodeLabel
public String prepareNodeLabel()
-
-