Class ResourceHandle
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.resource.v1alpha2.ResourceHandle
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ResourceHandle extends java.lang.Object implements com.marcnuri.yakc.model.Model
ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceHandle.Builder
-
Constructor Summary
Constructors Constructor Description ResourceHandle()
ResourceHandle(java.lang.String data, java.lang.String driverName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceHandle.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getData()
Data contains the opaque data associated with this ResourceHandle.java.lang.String
getDriverName()
DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node.int
hashCode()
void
setData(java.lang.String data)
Data contains the opaque data associated with this ResourceHandle.void
setDriverName(java.lang.String driverName)
DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node.ResourceHandle.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static ResourceHandle.Builder builder()
-
toBuilder
public ResourceHandle.Builder toBuilder()
-
getData
public java.lang.String getData()
Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
-
getDriverName
public java.lang.String getDriverName()
DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
-
setData
public void setData(java.lang.String data)
Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
-
setDriverName
public void setDriverName(java.lang.String driverName)
DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-