Class StaticNetworkInfo
-
- 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 StaticNetworkInfo extends SpecificRecordBase implements SpecificRecord
Avro representation of static group definition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
StaticNetworkInfo.Builder
RecordBuilder for StaticNetworkInfo instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
groupId
public KeyValuePairList
groupParameters
public ByteBuffer
mgmPublicSigningKey
public ByteBuffer
mgmPrivateSigningKey
public int
version
-
Constructor Summary
Constructors Constructor Description StaticNetworkInfo()
Default constructor. StaticNetworkInfo(String groupId, KeyValuePairList groupParameters, ByteBuffer mgmPublicSigningKey, ByteBuffer mgmPrivateSigningKey, Integer version)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getGroupId()
Gets the value of the 'groupId' field. void
setGroupId(String value)
Sets the value of the 'groupId' field. KeyValuePairList
getGroupParameters()
Gets the value of the 'groupParameters' field. void
setGroupParameters(KeyValuePairList value)
Sets the value of the 'groupParameters' field. ByteBuffer
getMgmPublicSigningKey()
Gets the value of the 'mgmPublicSigningKey' field. void
setMgmPublicSigningKey(ByteBuffer value)
Sets the value of the 'mgmPublicSigningKey' field. ByteBuffer
getMgmPrivateSigningKey()
Gets the value of the 'mgmPrivateSigningKey' field. void
setMgmPrivateSigningKey(ByteBuffer value)
Sets the value of the 'mgmPrivateSigningKey' field. int
getVersion()
Gets the value of the 'version' field. void
setVersion(int value)
Sets the value of the 'version' field. static Schema
getClassSchema()
static BinaryMessageEncoder<StaticNetworkInfo>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<StaticNetworkInfo>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<StaticNetworkInfo>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this StaticNetworkInfo to a ByteBuffer. static StaticNetworkInfo
fromByteBuffer(ByteBuffer b)
Deserializes a StaticNetworkInfo from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static StaticNetworkInfo.Builder
newBuilder()
Creates a new StaticNetworkInfo RecordBuilder. static StaticNetworkInfo.Builder
newBuilder(StaticNetworkInfo.Builder other)
Creates a new StaticNetworkInfo RecordBuilder by copying an existing Builder. static StaticNetworkInfo.Builder
newBuilder(StaticNetworkInfo other)
Creates a new StaticNetworkInfo RecordBuilder by copying an existing StaticNetworkInfo instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, 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
-
StaticNetworkInfo
StaticNetworkInfo()
Default constructor.
-
StaticNetworkInfo
StaticNetworkInfo(String groupId, KeyValuePairList groupParameters, ByteBuffer mgmPublicSigningKey, ByteBuffer mgmPrivateSigningKey, Integer version)
All-args constructor.- Parameters:
groupId
- Group which the group definition belongs to.groupParameters
- Group Parameters for the group.mgmPublicSigningKey
- The MGM's public key encoded as a byte array used for MGM signature verification in a static network.mgmPrivateSigningKey
- The virtual MGM's private key encoded as a byte array used for signing as an MGM in a static network.version
- The persisted static network information version number.
-
-
Method Detail
-
getGroupId
String getGroupId()
Gets the value of the 'groupId' field.
-
setGroupId
void setGroupId(String value)
Sets the value of the 'groupId' field. Group which the group definition belongs to.
- Parameters:
value
- the value to set.
-
getGroupParameters
KeyValuePairList getGroupParameters()
Gets the value of the 'groupParameters' field.
-
setGroupParameters
void setGroupParameters(KeyValuePairList value)
Sets the value of the 'groupParameters' field. Group Parameters for the group.
- Parameters:
value
- the value to set.
-
getMgmPublicSigningKey
ByteBuffer getMgmPublicSigningKey()
Gets the value of the 'mgmPublicSigningKey' field.
-
setMgmPublicSigningKey
void setMgmPublicSigningKey(ByteBuffer value)
Sets the value of the 'mgmPublicSigningKey' field. The MGM's public key encoded as a byte array used for MGM signature verification in a static network.
- Parameters:
value
- the value to set.
-
getMgmPrivateSigningKey
ByteBuffer getMgmPrivateSigningKey()
Gets the value of the 'mgmPrivateSigningKey' field.
-
setMgmPrivateSigningKey
void setMgmPrivateSigningKey(ByteBuffer value)
Sets the value of the 'mgmPrivateSigningKey' field. The virtual MGM's private key encoded as a byte array used for signing as an MGM in a static network.
- Parameters:
value
- the value to set.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
-
setVersion
void setVersion(int value)
Sets the value of the 'version' field. The persisted static network information version number.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<StaticNetworkInfo> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<StaticNetworkInfo> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<StaticNetworkInfo> 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 StaticNetworkInfo to a ByteBuffer.
-
fromByteBuffer
static StaticNetworkInfo fromByteBuffer(ByteBuffer b)
Deserializes a StaticNetworkInfo from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
getConversion
Conversion<out Object> getConversion(int field)
-
newBuilder
static StaticNetworkInfo.Builder newBuilder()
Creates a new StaticNetworkInfo RecordBuilder.
-
newBuilder
static StaticNetworkInfo.Builder newBuilder(StaticNetworkInfo.Builder other)
Creates a new StaticNetworkInfo RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static StaticNetworkInfo.Builder newBuilder(StaticNetworkInfo other)
Creates a new StaticNetworkInfo RecordBuilder by copying an existing StaticNetworkInfo instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-