Package org.apache.kafka.common.resource
Class Resource
- java.lang.Object
 - 
- org.apache.kafka.common.resource.Resource
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static ResourceCLUSTERA resource representing the whole cluster.static StringCLUSTER_NAMEThe name of the CLUSTER resource. 
- 
Constructor Summary
Constructors Constructor Description Resource(ResourceType resourceType, String name)Create an instance of this class with the provided parameters. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()booleanisUnknown()Return true if this Resource has any UNKNOWN components.Stringname()Return the resource name.ResourceTyperesourceType()Return the resource type.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
CLUSTER_NAME
public static final String CLUSTER_NAME
The name of the CLUSTER resource.- See Also:
 - Constant Field Values
 
 
- 
CLUSTER
public static final Resource CLUSTER
A resource representing the whole cluster. 
 - 
 
- 
Constructor Detail
- 
Resource
public Resource(ResourceType resourceType, String name)
Create an instance of this class with the provided parameters.- Parameters:
 resourceType- non-null resource typename- non-null resource name
 
 - 
 
- 
Method Detail
- 
resourceType
public ResourceType resourceType()
Return the resource type. 
- 
name
public String name()
Return the resource name. 
- 
isUnknown
public boolean isUnknown()
Return true if this Resource has any UNKNOWN components. 
 - 
 
 -