Static Public Member Functions

alma.acs.commandcenter.util.MiscUtils Class Reference

List of all members.

Static Public Member Functions

static AcsLogger getPackageLogger (Object requester)
static AcsLogger getPackageLogger (Class<?> requester)
static int parseInt (String text)
static String convertShortNotationToCorbaloc (String manager)
static String join (String[] text)
static String[] split (String text)

Member Function Documentation

static String alma.acs.commandcenter.util.MiscUtils.convertShortNotationToCorbaloc ( String  manager  )  [static]

This parses the quick notation ("host:instance") of a manager location, and converts it to a corbaloc. Returns a corbaloc, or null if not parsable.

Returns:
a corbaloc from a quick notation, or null.
static AcsLogger alma.acs.commandcenter.util.MiscUtils.getPackageLogger ( Object  requester  )  [static]

Returns a logger for the specified class, based on the requester's package name, e.g. "alma.acs.commandcenter.engine", thus the logger will be shared by all classes in that package.

Parameters:
requester object which needs a package-wide logger
Returns:
a logger
static AcsLogger alma.acs.commandcenter.util.MiscUtils.getPackageLogger ( Class<?>  requester  )  [static]

Returns a logger for the specified class, based on the requester's package name, e.g. "alma.acs.commandcenter.engine", thus the logger will be shared by all classes in that package.

Parameters:
requester class which needs a package-wide logger
Returns:
a logger
static String alma.acs.commandcenter.util.MiscUtils.join ( String[]  text  )  [static]

Returns the specified strings concatenated as one comma-separated string.

Returns:
the specified strings concatenated as one comma-separated string.
static int alma.acs.commandcenter.util.MiscUtils.parseInt ( String  text  )  [static]

Returns the specified string parsed as an int, or 0 if parsing fails.

Returns:
the specified string parsed as an int, or 0 if parsing fails.
static String [] alma.acs.commandcenter.util.MiscUtils.split ( String  text  )  [static]

Returns the specified string parsed into pieces. Commas and semi-colons are accepted as separators, whitespace is tolerated. Thus, the formats recognized are roughly:

  • "abc,def,ghi"
  • "abc, def, ghi"
  • "abc;def;ghi"
  • "abc; def; ghi"
Returns:
the specified string parsed into pieces.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties