Class VirtualNodeUpgradeRequest
-
- 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 VirtualNodeUpgradeRequest extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
VirtualNodeUpgradeRequest.Builder
RecordBuilder for VirtualNodeUpgradeRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
virtualNodeShortHash
public String
cpiFileChecksum
public String
actor
public boolean
forceUpgrade
-
Constructor Summary
Constructors Constructor Description VirtualNodeUpgradeRequest()
Default constructor. VirtualNodeUpgradeRequest(String virtualNodeShortHash, String cpiFileChecksum, String actor, Boolean forceUpgrade)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getVirtualNodeShortHash()
Gets the value of the 'virtualNodeShortHash' field. void
setVirtualNodeShortHash(String value)
Sets the value of the 'virtualNodeShortHash' field. String
getCpiFileChecksum()
Gets the value of the 'cpiFileChecksum' field. void
setCpiFileChecksum(String value)
Sets the value of the 'cpiFileChecksum' field. String
getActor()
Gets the value of the 'actor' field. void
setActor(String value)
Sets the value of the 'actor' field. boolean
getForceUpgrade()
Gets the value of the 'forceUpgrade' field. void
setForceUpgrade(boolean value)
Sets the value of the 'forceUpgrade' field. static Schema
getClassSchema()
static BinaryMessageEncoder<VirtualNodeUpgradeRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<VirtualNodeUpgradeRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<VirtualNodeUpgradeRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this VirtualNodeUpgradeRequest to a ByteBuffer. static VirtualNodeUpgradeRequest
fromByteBuffer(ByteBuffer b)
Deserializes a VirtualNodeUpgradeRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static VirtualNodeUpgradeRequest.Builder
newBuilder()
Creates a new VirtualNodeUpgradeRequest RecordBuilder. static VirtualNodeUpgradeRequest.Builder
newBuilder(VirtualNodeUpgradeRequest.Builder other)
Creates a new VirtualNodeUpgradeRequest RecordBuilder by copying an existing Builder. static VirtualNodeUpgradeRequest.Builder
newBuilder(VirtualNodeUpgradeRequest other)
Creates a new VirtualNodeUpgradeRequest RecordBuilder by copying an existing VirtualNodeUpgradeRequest instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, 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
-
VirtualNodeUpgradeRequest
VirtualNodeUpgradeRequest()
Default constructor.
-
VirtualNodeUpgradeRequest
VirtualNodeUpgradeRequest(String virtualNodeShortHash, String cpiFileChecksum, String actor, Boolean forceUpgrade)
All-args constructor.- Parameters:
virtualNodeShortHash
- Short hash of the virtual node / holding identity.cpiFileChecksum
- The checksum of the CPI file.actor
- ID of RPC user that requested the virtual node creation.forceUpgrade
- Whether this upgrade should be forced regardless of OperationInProgress.
-
-
Method Detail
-
getVirtualNodeShortHash
String getVirtualNodeShortHash()
Gets the value of the 'virtualNodeShortHash' field.
-
setVirtualNodeShortHash
void setVirtualNodeShortHash(String value)
Sets the value of the 'virtualNodeShortHash' field. Short hash of the virtual node / holding identity.
- Parameters:
value
- the value to set.
-
getCpiFileChecksum
String getCpiFileChecksum()
Gets the value of the 'cpiFileChecksum' field.
-
setCpiFileChecksum
void setCpiFileChecksum(String value)
Sets the value of the 'cpiFileChecksum' field. The checksum of the CPI file.
- Parameters:
value
- the value to set.
-
setActor
void setActor(String value)
Sets the value of the 'actor' field. ID of RPC user that requested the virtual node creation.
- Parameters:
value
- the value to set.
-
getForceUpgrade
boolean getForceUpgrade()
Gets the value of the 'forceUpgrade' field.
-
setForceUpgrade
void setForceUpgrade(boolean value)
Sets the value of the 'forceUpgrade' field. Whether this upgrade should be forced regardless of OperationInProgress.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<VirtualNodeUpgradeRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<VirtualNodeUpgradeRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<VirtualNodeUpgradeRequest> 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
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this VirtualNodeUpgradeRequest to a ByteBuffer.
-
fromByteBuffer
static VirtualNodeUpgradeRequest fromByteBuffer(ByteBuffer b)
Deserializes a VirtualNodeUpgradeRequest from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static VirtualNodeUpgradeRequest.Builder newBuilder()
Creates a new VirtualNodeUpgradeRequest RecordBuilder.
-
newBuilder
static VirtualNodeUpgradeRequest.Builder newBuilder(VirtualNodeUpgradeRequest.Builder other)
Creates a new VirtualNodeUpgradeRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static VirtualNodeUpgradeRequest.Builder newBuilder(VirtualNodeUpgradeRequest other)
Creates a new VirtualNodeUpgradeRequest RecordBuilder by copying an existing VirtualNodeUpgradeRequest instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-