@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()
Returns the protobuf represention of the model
|
List<String> |
getNamespaces()
Returns all namespaces
|
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 API nIOException
public List<String> getNamespaces()
public void setNamespaces(List<String> namespaces)
namespaces
- the namespace name arraypublic byte[] createProtobufOutput()
ProtobufMessageHandler
createProtobufOutput
in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandler
getObjectFromMessage
in interface ProtobufMessageHandler
message
- the raw bytes of the protobuf messageIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.