@InterfaceAudience.Private public class NamespacesModel extends Object implements Serializable, ProtobufMessageHandler
| Modifier and Type | Field and Description | 
|---|---|
| private List<String> | namespaces | 
| private static long | serialVersionUID | 
| Constructor and Description | 
|---|
| NamespacesModel()Default constructor. | 
| NamespacesModel(Admin admin)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | createProtobufOutput() | 
| List<String> | getNamespaces() | 
| ProtobufMessageHandler | getObjectFromMessage(byte[] message)Initialize the model from a protobuf representation. | 
| void | setNamespaces(List<String> namespaces) | 
| String | toString() | 
private static final long serialVersionUID
private List<String> namespaces
public NamespacesModel()
public NamespacesModel(Admin admin) throws IOException
admin - the administrative APIIOExceptionpublic List<String> getNamespaces()
public void setNamespaces(List<String> namespaces)
namespaces - the namespace name arraypublic byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandlergetObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf messageIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.