Class VirtualNodeStateChangeRequest
-
- 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 VirtualNodeStateChangeRequest extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
VirtualNodeStateChangeRequest.Builder
RecordBuilder for VirtualNodeStateChangeRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
holdingIdentityShortHash
public VirtualNodeOperationalState
newState
public String
updateActor
-
Constructor Summary
Constructors Constructor Description VirtualNodeStateChangeRequest()
Default constructor. VirtualNodeStateChangeRequest(String holdingIdentityShortHash, VirtualNodeOperationalState newState, String updateActor)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getHoldingIdentityShortHash()
Gets the value of the 'holdingIdentityShortHash' field. void
setHoldingIdentityShortHash(String value)
Sets the value of the 'holdingIdentityShortHash' field. VirtualNodeOperationalState
getNewState()
Gets the value of the 'newState' field. void
setNewState(VirtualNodeOperationalState value)
Sets the value of the 'newState' field. String
getUpdateActor()
Gets the value of the 'updateActor' field. void
setUpdateActor(String value)
Sets the value of the 'updateActor' field. static Schema
getClassSchema()
static BinaryMessageEncoder<VirtualNodeStateChangeRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<VirtualNodeStateChangeRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<VirtualNodeStateChangeRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this VirtualNodeStateChangeRequest to a ByteBuffer. static VirtualNodeStateChangeRequest
fromByteBuffer(ByteBuffer b)
Deserializes a VirtualNodeStateChangeRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static VirtualNodeStateChangeRequest.Builder
newBuilder()
Creates a new VirtualNodeStateChangeRequest RecordBuilder. static VirtualNodeStateChangeRequest.Builder
newBuilder(VirtualNodeStateChangeRequest.Builder other)
Creates a new VirtualNodeStateChangeRequest RecordBuilder by copying an existing Builder. static VirtualNodeStateChangeRequest.Builder
newBuilder(VirtualNodeStateChangeRequest other)
Creates a new VirtualNodeStateChangeRequest RecordBuilder by copying an existing VirtualNodeStateChangeRequest 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
-
VirtualNodeStateChangeRequest
VirtualNodeStateChangeRequest()
Default constructor.
-
VirtualNodeStateChangeRequest
VirtualNodeStateChangeRequest(String holdingIdentityShortHash, VirtualNodeOperationalState newState, String updateActor)
All-args constructor.- Parameters:
holdingIdentityShortHash
- The new value for holdingIdentityShortHashnewState
- The new value for newStateupdateActor
- ID of RPC user that requested the virtual node state update..
-
-
Method Detail
-
getHoldingIdentityShortHash
String getHoldingIdentityShortHash()
Gets the value of the 'holdingIdentityShortHash' field.
-
setHoldingIdentityShortHash
void setHoldingIdentityShortHash(String value)
Sets the value of the 'holdingIdentityShortHash' field.
- Parameters:
value
- the value to set.
-
getNewState
VirtualNodeOperationalState getNewState()
Gets the value of the 'newState' field.
-
setNewState
void setNewState(VirtualNodeOperationalState value)
Sets the value of the 'newState' field.
- Parameters:
value
- the value to set.
-
getUpdateActor
String getUpdateActor()
Gets the value of the 'updateActor' field.
-
setUpdateActor
void setUpdateActor(String value)
Sets the value of the 'updateActor' field. ID of RPC user that requested the virtual node state update..
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<VirtualNodeStateChangeRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<VirtualNodeStateChangeRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<VirtualNodeStateChangeRequest> 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 VirtualNodeStateChangeRequest to a ByteBuffer.
-
fromByteBuffer
static VirtualNodeStateChangeRequest fromByteBuffer(ByteBuffer b)
Deserializes a VirtualNodeStateChangeRequest 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 VirtualNodeStateChangeRequest.Builder newBuilder()
Creates a new VirtualNodeStateChangeRequest RecordBuilder.
-
newBuilder
static VirtualNodeStateChangeRequest.Builder newBuilder(VirtualNodeStateChangeRequest.Builder other)
Creates a new VirtualNodeStateChangeRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static VirtualNodeStateChangeRequest.Builder newBuilder(VirtualNodeStateChangeRequest other)
Creates a new VirtualNodeStateChangeRequest RecordBuilder by copying an existing VirtualNodeStateChangeRequest 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)
-
-
-
-