|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fusesource.fabric.commands.support.CommandUtils
public final class CommandUtils
Various utility methods for the commands.
| Method Summary | |
|---|---|
static int |
countContainersByVersion(Container[] containers,
Version version)
Counts the number of containers for the given version |
static Container[] |
filterContainers(Container[] containers,
java.lang.String filter)
Filter the containers by id and profiles, using the given filter. |
static boolean |
matchVersion(Container container,
Version version)
Does the container match the given version. |
static Container[] |
sortContainers(Container[] containers)
Sorts the containers. |
static Profile[] |
sortProfiles(Profile[] profiles)
Sorts the profiles. |
static java.lang.String |
status(Container container)
Lets trim the status to a maximum size of 100 chars (for example when it has an exception it may be long) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Profile[] sortProfiles(Profile[] profiles)
profiles - the profiles
public static Container[] sortContainers(Container[] containers)
containers - the containers
public static Container[] filterContainers(Container[] containers,
java.lang.String filter)
containers - the containersfilter - optional filter to match
public static boolean matchVersion(Container container,
Version version)
container - the containerversion - the version
public static java.lang.String status(Container container)
container - the container
public static int countContainersByVersion(Container[] containers,
Version version)
containers - the containersversion - the version
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||