@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 APIIOExceptionpublic 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 messageIOException