Package org.infinispan.cli.resources
Class CacheResource
java.lang.Object
org.infinispan.cli.resources.AbstractResource
org.infinispan.cli.resources.CacheResource
- All Implemented Interfaces:
Resource
- 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 -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdescribe()Returns a textual representation of this resourcefindCacheName(Resource resource) Returns a resource representing the named childgetChildrenNames(int limit) booleanisLeaf()Returns whether this resource is a leaf resource (i.e.voidprintChildren(Resource.ListFormat format, int limit, PrettyPrinter.PrettyPrintMode prettyPrintMode, org.aesh.command.shell.Shell shell) Methods inherited from class org.infinispan.cli.resources.AbstractResource
findAncestor, getChild, getChildrenNames, getName, getParent, getResource, optionalFindAncestor
-
Constructor Details
-
CacheResource
-
-
Method Details
-
getChildrenNames
- Throws:
IOException
-
printChildren
public void printChildren(Resource.ListFormat format, int limit, PrettyPrinter.PrettyPrintMode prettyPrintMode, org.aesh.command.shell.Shell shell) throws IOException - Specified by:
printChildrenin interfaceResource- Overrides:
printChildrenin classAbstractResource- Throws:
IOException
-
isLeaf
public boolean isLeaf()Description copied from interface:ResourceReturns whether this resource is a leaf resource (i.e. it has no children, or the children are not navigable)- Specified by:
isLeafin interfaceResource- Overrides:
isLeafin classAbstractResource
-
getChild
Description copied from interface:ResourceReturns a resource representing the named child- Specified by:
getChildin interfaceResource- Overrides:
getChildin classAbstractResource
-
describe
Description copied from interface:ResourceReturns a textual representation of this resource- Specified by:
describein interfaceResource- Overrides:
describein classAbstractResource- Throws:
IOException
-
cacheName
-
findCacheName
-