congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
StringUtility.getDecimalTimeLengthString
Code IndexAdd Tabnine to your IDE (free)

How to use
getDecimalTimeLengthString
method
in
com.aoindustries.util.StringUtility

Best Java code snippets using com.aoindustries.util.StringUtility.getDecimalTimeLengthString (Showing top 5 results out of 315)

origin: com.aoindustries/aocode-public

public static String getDecimalTimeLengthString(long time) {
  return getDecimalTimeLengthString(time, true);
}
origin: com.aoindustries/aocode-public

public static String toString(long interval) {
  return StringUtility.getDecimalTimeLengthString(interval*1000, false);
}
origin: com.aoindustries/aoserv-client

case HOSTNAME: return value.toString();
case INT: return value.toString();
case INTERVAL: return StringUtility.getDecimalTimeLengthString(((Long)value));
case IP_ADDRESS: return value.toString();
case LONG: return value.toString();
origin: com.aoindustries/aocode-public

out.append("  <tr><td>Max Connection Pool Size:</td><td>").append(Integer.toString(poolSize)).append("</td></tr>\n"
    + "  <tr><td>Connection Clean Interval:</td><td>");
com.aoindustries.util.EncodingUtils.encodeHtml(StringUtility.getDecimalTimeLengthString(delayTime), out);
out.append("</td></tr>\n"
    + "  <tr><td>Max Idle Time:</td><td>");
com.aoindustries.util.EncodingUtils.encodeHtml(StringUtility.getDecimalTimeLengthString(maxIdleTime), out);
out.append("</td></tr>\n"
    + "  <tr><td>Max Connection Age:</td><td>");
com.aoindustries.util.EncodingUtils.encodeHtml(maxConnectionAge==UNLIMITED_MAX_CONNECTION_AGE?"Unlimited":StringUtility.getDecimalTimeLengthString(maxConnectionAge), out);
out.append("</td></tr>\n"
    + "  <tr><td>Is Closed:</td><td>").append(Boolean.toString(myIsClosed)).append("</td></tr>\n"
      + "    <td>").append(isConnected?"Yes":"No").append("</td>\n"
      + "    <td>");
  if(isConnected) com.aoindustries.util.EncodingUtils.encodeHtml(StringUtility.getDecimalTimeLengthString(time-createTimes[c]), out);
  else out.append("&#160;");
  out.append("    <td>").append(Long.toString(connCount)).append("</td>\n"
      + "    <td>").append(Long.toString(useCount)).append("</td>\n"
      + "    <td>");
  com.aoindustries.util.EncodingUtils.encodeHtml(StringUtility.getDecimalTimeLengthString(totalTime), out);
  out.append("</td>\n"
      + "    <td>").append(Float.toString(totalTime*100/(float)timeLen)).append("%</td>\n"
      + "    <td>").append(isBusy?"In Use":isConnected?"Idle":"Closed").append("</td>\n"
      + "    <td>");
  com.aoindustries.util.EncodingUtils.encodeHtml(StringUtility.getDecimalTimeLengthString(stateTime), out);
  out.append("</td>\n"
      + "    <td>").append(Long.toString(totalTime*1000/useCount)).append("&#181;s</td>\n"
    + "    <td>").append(Long.toString(totalUses)).append("</td>\n"
origin: com.aoindustries/aoserv-client

  @Override
  boolean handleCommand(String[] args, Reader in, TerminalWriter out, TerminalWriter err, boolean isInteractive) throws IllegalArgumentException, IOException, SQLException {
    String command=args[0];
    if(command.equalsIgnoreCase(AOSHCommand.GET_FAILOVER_FILE_REPLICATION_ACTIVITY)) {
      if(AOSH.checkParamCount(AOSHCommand.GET_FAILOVER_FILE_REPLICATION_ACTIVITY, args, 3, err)) {
        FailoverFileReplication.Activity activity = connector.getSimpleAOClient().getFailoverFileReplicationActivity(
          args[1],
          args[2],
          args[3]
        );
        long timeSince = activity.getTimeSince();
        if(timeSince == -1) out.println("No activity available");
        else {
          out.println(StringUtility.getDecimalTimeLengthString(timeSince));
          out.println(activity.getMessage());
        }
        out.flush();
      }
      return true;
    }
    return false;
  }
}
com.aoindustries.utilStringUtilitygetDecimalTimeLengthString

Popular methods of StringUtility

  • join
    Joins the string representation of objects on the provided delimiter. The iteration will be performe
  • nullIfEmpty
    Returns null if the string is null or empty.
  • splitString
    Splits a String into a String[].
  • getApproximateSize
    Gets the approximate size (where k=1024) of a file in this format: x byte(s) xx bytes xxx bytes x.x
  • splitStringCommaSpace
    Splits a string into multiple words on either whitespace or commas
  • convertToHex
  • replace
    Replaces all occurrences of a String with a String.
  • splitLines
    Splits a String into lines on any '\n' characters. Also removes any ending '\r' characters if presen
  • compareToDDMMYYYY0
  • compareToIgnoreCaseCarefulEquals
    Compares two strings in a case insensitive manner. However, if they are considered equals in the cas
  • convertStringDateToTime
  • countOccurrences
    Counts how many times a word appears in a line. Case insensitive matching.
  • convertStringDateToTime,
  • countOccurrences,
  • getDateString,
  • getHex,
  • getHexChar,
  • getTimeLengthString,
  • indexOf,
  • leapYear,
  • wordWrap

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now