Record Class ManagedPartitionProfile
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedPartitionProfile
- Record Components:
consensus- local native transport/storage configuration and immutable original voter seedpartition- stable partition identityinitialEpoch- original bootstrap epoch, zero for an inactive migration targetresourceScope- fixed authenticated scope owning this complete encoded statemaximumRequests- durable receipt capacity,1..10000; no implicit evictionserviceAddress- explicit partition service bind address, port zero permittedprincipals- bounded authenticated service identities; no principal crosses resourceScope- trusted topology authority key of at least32bytesclock- authenticated clock health source required by the native partition serviceserviceTls- mutual TLS context, mandatory outside loopback
public record ManagedPartitionProfile(org.j7m.middleware.consensus.NetworkConsensusConfig consensus, String partition, long initialEpoch, String resourceScope, int maximumRequests, InetSocketAddress serviceAddress, Map<String, org.j7m.middleware.distributed.PartitionServer.Binding> principals, byte[] authorityKey, org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealth clock, SSLContext serviceTls)
extends Record
Trusted local hosting configuration for one encoded partition, never application annotation data.
The native configuration's initialMembers is the immutable ORIGINAL bootstrap seed even after
membership changes. Its groupId is only a bounded operator base; the factory replaces it with
the exact program/bootstrap fingerprint before opening storage. Local identity, addresses and
secrets may differ between members without changing that fingerprint. Credentials are borrowed
configuration values and are defensively copied by their native value types.
Native snapshot capacity is128MiB, covering retained native transfer images and tail, not only
the16MiB resource snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedPartitionProfile(org.j7m.middleware.consensus.NetworkConsensusConfig consensus, String partition, long initialEpoch, String resourceScope, int maximumRequests, InetSocketAddress serviceAddress, Map<String, org.j7m.middleware.distributed.PartitionServer.Binding> principals, byte[] authorityKey, org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealth clock, SSLContext serviceTls) Validates the complete host profile before component construction or storage access. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns independent topology authority material.org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealthclock()Returns the value of theclockrecord component.org.j7m.middleware.consensus.NetworkConsensusConfigReturns the value of theconsensusrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinitialEpochrecord component.intReturns the value of themaximumRequestsrecord component.Returns the value of thepartitionrecord component.Returns the value of theprincipalsrecord component.Returns the value of theresourceScoperecord component.Returns the value of theserviceAddressrecord component.Returns the value of theserviceTlsrecord component.toString()Returns a fixed diagnostic without addresses, configuration or credentials.
-
Constructor Details
-
ManagedPartitionProfile
public ManagedPartitionProfile(org.j7m.middleware.consensus.NetworkConsensusConfig consensus, String partition, long initialEpoch, String resourceScope, int maximumRequests, InetSocketAddress serviceAddress, Map<String, org.j7m.middleware.distributed.PartitionServer.Binding> principals, byte[] authorityKey, org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealth clock, SSLContext serviceTls) Validates the complete host profile before component construction or storage access.- Throws:
IllegalArgumentException- for unbounded, insecure, cross-scope or inconsistent settingsNullPointerException- for missing settings
-
-
Method Details
-
authorityKey
public byte[] authorityKey()Returns independent topology authority material.- Returns:
- copied secret bytes, never intended for application injection
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
consensus
-
partition
-
initialEpoch
public long initialEpoch()Returns the value of theinitialEpochrecord component.- Returns:
- the value of the
initialEpochrecord component
-
resourceScope
Returns the value of theresourceScoperecord component.- Returns:
- the value of the
resourceScoperecord component
-
maximumRequests
public int maximumRequests()Returns the value of themaximumRequestsrecord component.- Returns:
- the value of the
maximumRequestsrecord component
-
serviceAddress
Returns the value of theserviceAddressrecord component.- Returns:
- the value of the
serviceAddressrecord component
-
principals
Returns the value of theprincipalsrecord component.- Returns:
- the value of the
principalsrecord component
-
clock
-
serviceTls
Returns the value of theserviceTlsrecord component.- Returns:
- the value of the
serviceTlsrecord component
-