com.sentilla.host.client.network
Class NetworkNode

java.lang.Object
  extended by com.sentilla.host.client.network.NetworkNode
All Implemented Interfaces:
Serializable

public class NetworkNode
extends Object
implements Serializable

Author:
spence
See Also:
Serialized Form

Field Summary
private  ArrayList<ApplicationYaml> apps
           
private  String name
           
private  Mac64Address nodeId
           
private static long serialVersionUID
           
private  Long updateTime
           
 
Constructor Summary
NetworkNode(String name, Mac64Address nodeId)
           
 
Method Summary
 boolean addApplication(ApplicationYaml binary)
          Add an application to this node.
 ArrayList getApplications()
          Returns the list of app installed on this node.
 Long getLastUpdateTime()
          Returns the last check-in time for this node in milliseconds.
 String getName()
          Returns the name of this node.
 Mac64Address getNodeId()
          Returns the node id of this node.
 boolean removeAplication(ApplicationYaml binary)
          Remove an application from this node.
 void setLastUpdateTime(Long time)
          Sets the last check-in time for this node in milliseconds.
 boolean setName(String name)
          Sets the name of this node.
 boolean setNodeId(Long nodeId)
          Sets the node id of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

name

private String name

nodeId

private Mac64Address nodeId

apps

private ArrayList<ApplicationYaml> apps

updateTime

private Long updateTime
Constructor Detail

NetworkNode

public NetworkNode(String name,
                   Mac64Address nodeId)
Method Detail

getName

public String getName()
Returns the name of this node.

Returns:
the name of this node

setName

public boolean setName(String name)
Sets the name of this node.

Returns:
the name of this node

getNodeId

public Mac64Address getNodeId()
Returns the node id of this node.

Returns:
the node id of this node

setNodeId

public boolean setNodeId(Long nodeId)
Sets the node id of this node.

Returns:
the node id of this node

setLastUpdateTime

public void setLastUpdateTime(Long time)
Sets the last check-in time for this node in milliseconds.

Parameters:
time -

getLastUpdateTime

public Long getLastUpdateTime()
Returns the last check-in time for this node in milliseconds.

See the description of the class Date for a discussion of slight discrepancies that may arise between "computer time" and coordinated universal time (UTC).

Returns:
the difference, measured in milliseconds, between the last check-in time and midnight, January 1, 1970 UTC.
See Also:
Date

getApplications

public ArrayList getApplications()
Returns the list of app installed on this node.

Returns:
the list of apps installed on this node

addApplication

public boolean addApplication(ApplicationYaml binary)
Add an application to this node.

Returns:
true on success

removeAplication

public boolean removeAplication(ApplicationYaml binary)
Remove an application from this node.

Returns:
true on success


Copyright © 2007 Sentilla, Inc. All Rights Reserved.