Class CertificateRpcRequest
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class CertificateRpcRequest extends SpecificRecordBase implements SpecificRecord
RPC request regarding certificates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CertificateRpcRequest.Builder
RecordBuilder for CertificateRpcRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public CertificateUsage
usage
public String
holdingIdentity
public Object
request
-
Constructor Summary
Constructors Constructor Description CertificateRpcRequest()
Default constructor. CertificateRpcRequest(CertificateUsage usage, String holdingIdentity, Object request)
All-args constructor.
-
Method Summary
Modifier and Type Method Description CertificateUsage
getUsage()
Gets the value of the 'usage' field. void
setUsage(CertificateUsage value)
Sets the value of the 'usage' field. String
getHoldingIdentity()
Gets the value of the 'holdingIdentity' field. void
setHoldingIdentity(String value)
Sets the value of the 'holdingIdentity' field. Object
getRequest()
Gets the value of the 'request' field. void
setRequest(Object value)
Sets the value of the 'request' field. static Schema
getClassSchema()
static BinaryMessageEncoder<CertificateRpcRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<CertificateRpcRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<CertificateRpcRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this CertificateRpcRequest to a ByteBuffer. static CertificateRpcRequest
fromByteBuffer(ByteBuffer b)
Deserializes a CertificateRpcRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static CertificateRpcRequest.Builder
newBuilder()
Creates a new CertificateRpcRequest RecordBuilder. static CertificateRpcRequest.Builder
newBuilder(CertificateRpcRequest.Builder other)
Creates a new CertificateRpcRequest RecordBuilder by copying an existing Builder. static CertificateRpcRequest.Builder
newBuilder(CertificateRpcRequest other)
Creates a new CertificateRpcRequest RecordBuilder by copying an existing CertificateRpcRequest instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CertificateRpcRequest
CertificateRpcRequest()
Default constructor.
-
CertificateRpcRequest
CertificateRpcRequest(CertificateUsage usage, String holdingIdentity, Object request)
All-args constructor.- Parameters:
usage
- The certificate usage.holdingIdentity
- The holding identity (null for cluster certificate).request
- The request type.
-
-
Method Detail
-
getUsage
CertificateUsage getUsage()
Gets the value of the 'usage' field.
- Returns:
The certificate usage.
-
setUsage
void setUsage(CertificateUsage value)
Sets the value of the 'usage' field. The certificate usage.
- Parameters:
value
- the value to set.
-
getHoldingIdentity
String getHoldingIdentity()
Gets the value of the 'holdingIdentity' field.
- Returns:
The holding identity (null for cluster certificate).
-
setHoldingIdentity
void setHoldingIdentity(String value)
Sets the value of the 'holdingIdentity' field. The holding identity (null for cluster certificate).
- Parameters:
value
- the value to set.
-
getRequest
Object getRequest()
Gets the value of the 'request' field.
- Returns:
The request type.
-
setRequest
void setRequest(Object value)
Sets the value of the 'request' field. The request type.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<CertificateRpcRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
- Returns:
the message encoder used by this class
-
getDecoder
static BinaryMessageDecoder<CertificateRpcRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
- Returns:
the message decoder used by this class
-
createDecoder
static BinaryMessageDecoder<CertificateRpcRequest> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint- Returns:
a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this CertificateRpcRequest to a ByteBuffer.
- Returns:
a buffer holding the serialized data for this instance
-
fromByteBuffer
static CertificateRpcRequest fromByteBuffer(ByteBuffer b)
Deserializes a CertificateRpcRequest from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class- Returns:
a CertificateRpcRequest instance decoded from the given buffer
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static CertificateRpcRequest.Builder newBuilder()
Creates a new CertificateRpcRequest RecordBuilder.
- Returns:
A new CertificateRpcRequest RecordBuilder
-
newBuilder
static CertificateRpcRequest.Builder newBuilder(CertificateRpcRequest.Builder other)
Creates a new CertificateRpcRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.- Returns:
A new CertificateRpcRequest RecordBuilder
-
newBuilder
static CertificateRpcRequest.Builder newBuilder(CertificateRpcRequest other)
Creates a new CertificateRpcRequest RecordBuilder by copying an existing CertificateRpcRequest instance.
- Parameters:
other
- The existing instance to copy.- Returns:
A new CertificateRpcRequest RecordBuilder
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-