|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs138.common.Utils
public class Utils
Class containing various utility methods
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static java.lang.String |
getHostName()
Looks up the fully qualified domain name for this host. |
static java.util.Random |
getRandom()
To help deal with Random seed issues, we define a single instance of the Random class to exist in the project and provide an access method for it. |
static java.lang.String |
getRandomNode()
Based on the cs138.service.nodes property, this method will read in a list of nodes and randomly pick one to use. |
static java.lang.String |
prettyType(java.lang.String type)
Translates the full java name for a given node implementation and returns a more user friendly version of the name based on the core interface that is being used by it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static java.lang.String getHostName()
public static java.lang.String prettyType(java.lang.String type)
type
- A string containing the complete java name for the given implementation type
public static java.util.Random getRandom()
public static java.lang.String getRandomNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |