Package org.apache.bookkeeper.discover
Class BookieServiceInfo
- java.lang.Object
-
- org.apache.bookkeeper.discover.BookieServiceInfo
-
public final class BookieServiceInfo extends java.lang.Object
Information about services exposed by a Bookie.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BookieServiceInfo.Endpoint
Information about an endpoint.
-
Field Summary
Fields Modifier and Type Field Description static BookieServiceInfo
EMPTY
Default empty implementation.static java.util.function.Supplier<BookieServiceInfo>
NO_INFO
Default empty implementation.
-
Constructor Summary
Constructors Constructor Description BookieServiceInfo()
BookieServiceInfo(java.util.Map<java.lang.String,java.lang.String> properties, java.util.List<BookieServiceInfo.Endpoint> endpoints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<BookieServiceInfo.Endpoint>
getEndpoints()
Unmodifieable structure with the list of exposed endpoints.java.util.Map<java.lang.String,java.lang.String>
getProperties()
Unmodifiable map with bookie wide information.void
setEndpoints(java.util.List<BookieServiceInfo.Endpoint> endpoints)
void
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY
public static final BookieServiceInfo EMPTY
Default empty implementation.
-
NO_INFO
public static final java.util.function.Supplier<BookieServiceInfo> NO_INFO
Default empty implementation.
-
-
Constructor Detail
-
BookieServiceInfo
public BookieServiceInfo(java.util.Map<java.lang.String,java.lang.String> properties, java.util.List<BookieServiceInfo.Endpoint> endpoints)
-
BookieServiceInfo
public BookieServiceInfo()
-
-
Method Detail
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
Unmodifiable map with bookie wide information.- Returns:
- the map
-
getEndpoints
public java.util.List<BookieServiceInfo.Endpoint> getEndpoints()
Unmodifieable structure with the list of exposed endpoints.- Returns:
- the list.
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
-
setEndpoints
public void setEndpoints(java.util.List<BookieServiceInfo.Endpoint> endpoints)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-