Package io.vertigo.commons.app
Class AppNode
java.lang.Object
io.vertigo.commons.app.AppNode
A Node in a vertigo node.
A node has :
- an id
- a status
- the timestamp of the last touch
- the timestamp of the startup of the app
- the skills of the node
- an optional endPoint to reach the node
- Author:
- mlaroche
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the appThe optional endPoint of the nodegetId()The id of the nodeThe last status of the nodeThe timestamp of the last touch of the nodeThe protocol of the endpoint (if specified)The skills of the node (for example editing)longThe start date of the node
-
Constructor Details
-
AppNode
public AppNode(String id, String appName, String lastStatus, Instant lastTouch, Instant startDate, Optional<String> endPointOpt, List<String> skills) Constructor.- Parameters:
id- id of the node (must be unique in an entire app)appName- name of the node the node is inlastStatus- last status of the node (OK, KO, etc)lastTouch- the time of the last info about this nodestartDate- the start date of the nodeendPointOpt- an optional endpoint to reach this nodeskills- the list of capabilities of the node
-
-
Method Details
-
getId
The id of the node- Returns:
- the id
-
getAppName
The name of the app- Returns:
- the node name
-
getStartDate
public long getStartDate()The start date of the node- Returns:
- epochMillis
-
getEndPoint
The optional endPoint of the node- Returns:
- the endPoint
-
getProtocol
The protocol of the endpoint (if specified)- Returns:
- the protocol
-
getSkills
The skills of the node (for example editing)- Returns:
- the skills of the node
-
getLastStatus
The last status of the node- Returns:
- the status of the node
-
getLastTouch
The timestamp of the last touch of the node- Returns:
- the timestamp of the last touch of the node
-