public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
humanBytes(double bytes,
boolean si)
humanBytes formats bytes as a human readable string.
|
static List<Integer> |
msgsPerClient(int numMsgs,
int numClients)
MsgsPerClient divides the number of messages by the number of clients and tries to distribute
them as evenly as possible.
|
public static String humanBytes(double bytes, boolean si)
bytes - the number of bytessi - whether to use SI unitspublic static List<Integer> msgsPerClient(int numMsgs, int numClients)
numMsgs - the total number of messagesnumClients - the total number of clientsCopyright © 2015–2016 Apcera, Inc.. All rights reserved.