public abstract class AbstractContainerLifecycleAction
extends org.apache.karaf.shell.console.AbstractAction
Modifier and Type | Field and Description |
---|---|
protected FabricService |
fabricService |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<java.lang.String> |
expandGlobNames(java.util.List<java.lang.String> containerNames)
Converts a list of possibly wildcard container names into list of available container names.
|
protected java.util.List<java.lang.String> |
matchedAvailableContainers(java.lang.String pattern)
Returns a list of all available containers matching simple pattern where
* matches any substring
and ? matches single character. |
protected boolean |
matches(java.lang.String globPattern,
java.lang.String name)
Simple "glob" pattern matching
|
protected final FabricService fabricService
protected java.util.List<java.lang.String> matchedAvailableContainers(java.lang.String pattern)
*
matches any substring
and ?
matches single character.protected boolean matches(java.lang.String globPattern, java.lang.String name)
protected java.util.Collection<java.lang.String> expandGlobNames(java.util.List<java.lang.String> containerNames)
Converts a list of possibly wildcard container names into list of available container names.
It also checks if the expanded list has at least one element
Copyright © 2011-2014 Red Hat. All Rights Reserved.