Package org.infinispan.cli.resources
Class ContainerResource
- java.lang.Object
-
- org.infinispan.cli.resources.AbstractResource
-
- org.infinispan.cli.resources.ContainerResource
-
- All Implemented Interfaces:
Resource
public class ContainerResource extends AbstractResource
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.cli.resources.Resource
Resource.ListFormat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescribe()Returns a textual representation of this resourcestatic Optional<String>findContainerName(Resource resource)ResourcegetChild(String name)Returns a resource representing the named childIterable<String>getChildrenNames()Returns an iterable over the children of this resource-
Methods inherited from class org.infinispan.cli.resources.AbstractResource
findAncestor, getChild, getName, getParent, getResource, isLeaf, optionalFindAncestor, printChildren
-
-
-
-
Method Detail
-
getChildrenNames
public Iterable<String> getChildrenNames()
Description copied from interface:ResourceReturns an iterable over the children of this resource- Specified by:
getChildrenNamesin interfaceResource- Overrides:
getChildrenNamesin classAbstractResource
-
getChild
public Resource getChild(String name)
Description copied from interface:ResourceReturns a resource representing the named child- Specified by:
getChildin interfaceResource- Overrides:
getChildin classAbstractResource
-
describe
public String describe() throws IOException
Description copied from interface:ResourceReturns a textual representation of this resource- Specified by:
describein interfaceResource- Overrides:
describein classAbstractResource- Throws:
IOException
-
-