public final class Nodes extends Object
Modifier and Type | Method and Description |
---|---|
static Node |
fromApp(Application app) |
static boolean |
isLocal(Application app1,
Application app2) |
static boolean |
isLocal(Application app1,
Endpoint ep) |
static boolean |
isLocal(Node node1,
Application app) |
static boolean |
isLocal(Node node1,
Endpoint ep) |
static boolean |
isLocal(Node node1,
Node node2) |
static String |
makeHostname(Application app,
Node node) |
static String |
makeName(Node node)
return the name of the node
|
public static Node fromApp(Application app)
public static boolean isLocal(Node node1, Application app)
public static boolean isLocal(Application app1, Endpoint ep)
public static boolean isLocal(Application app1, Application app2)
public static String makeName(Node node)
This is the name or the hostname if a name is not set.
node
- a nodenull
if it could not be
determinedpublic static String makeHostname(Application app, Node node)