|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.Subnode
public class Subnode
This class represents a subnode. A subnode periodically contacts its parent node. The 'contact time' is the time the parent node last had contact from the subnode, expressed in msec since epoch.
| Field Summary | |
|---|---|
protected java.net.InetAddress |
_address
|
protected long |
_contactTimestamp
|
protected long |
_deviceID
|
| Constructor Summary | |
|---|---|
Subnode(java.net.InetAddress address,
long t,
long deviceID)
|
|
| Method Summary | |
|---|---|
java.net.InetAddress |
getAddress()
Get subnode's address |
long |
getContactTime()
Get time of most recent contact from subnode. |
void |
setContactTime(long t)
Set time of most recent contact from subnode. |
java.lang.String |
toString()
Output String representation. |
void |
update(long contactTime,
NodeNotifyMessage info)
Update subnode fields |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.net.InetAddress _address
protected long _contactTimestamp
protected long _deviceID
| Constructor Detail |
|---|
public Subnode(java.net.InetAddress address,
long t,
long deviceID)
| Method Detail |
|---|
public java.net.InetAddress getAddress()
public void setContactTime(long t)
public long getContactTime()
public void update(long contactTime,
NodeNotifyMessage info)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||