@InterfaceAudience.Private public class NamespacesModel extends Object implements Serializable, ProtobufMessageHandler
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() |
public NamespacesModel()
public NamespacesModel(Admin admin) throws IOException
admin
- the administrative APIIOException
public void setNamespaces(List<String> namespaces)
namespaces
- the namespace name arraypublic byte[] createProtobufOutput()
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–2019 Cloudera. All rights reserved.