pub struct BookieInfo {
pub rack: String,
pub hostname: String,
}Expand description
Java BookieInfo — a single bookie’s rack assignment, as stored in
the racks-info metadata path and shipped on
AdminClient::bookies_set_rack. Field names are camelCase on the
wire (matching org.apache.pulsar.common.policies.data.BookieInfo,
which carries only rack and hostname).
The placement group is not part of this body — Pulsar’s
BookiesBase#updateBookieRackInfo exposes group as a
@QueryParam, and the JSON body Jackson-binds only to
{rack, hostname}. Treating it as a body field silently drops the
operator’s group choice on the wire.
Fields§
§rack: StringRack identifier within the group — opaque to the broker, only the placement policy cares about it.
hostname: StringResolved hostname for the bookie. The broker uses it for log lines; it does not have to match DNS.
Trait Implementations§
Source§impl Clone for BookieInfo
impl Clone for BookieInfo
Source§fn clone(&self) -> BookieInfo
fn clone(&self) -> BookieInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BookieInfo
impl Debug for BookieInfo
Source§impl Default for BookieInfo
impl Default for BookieInfo
Source§fn default() -> BookieInfo
fn default() -> BookieInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BookieInfowhere
BookieInfo: Default,
impl<'de> Deserialize<'de> for BookieInfowhere
BookieInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BookieInfo
impl RefUnwindSafe for BookieInfo
impl Send for BookieInfo
impl Sync for BookieInfo
impl Unpin for BookieInfo
impl UnsafeUnpin for BookieInfo
impl UnwindSafe for BookieInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more