public class DatasetInstanceHandler
extends co.cask.http.AbstractHttpHandler
| Constructor and Description |
|---|
DatasetInstanceHandler(DatasetInstanceService instanceService) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name)
Creates a new dataset instance.
|
void |
drop(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name)
Deletes a dataset instance, which also deletes the data owned by it.
|
void |
executeAdmin(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name,
String method)
Executes an admin operation on a dataset instance.
|
void |
executeDataOp(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name,
String method)
Executes a data operation on a dataset instance.
|
void |
get(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name,
List<String> owners)
Gets the
DatasetMeta for a dataset instance. |
void |
list(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId) |
void |
update(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name)
Updates an existing dataset specification properties.
|
@Inject public DatasetInstanceHandler(DatasetInstanceService instanceService)
public void list(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId)
throws Exception
Exceptionpublic void get(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name,
List<String> owners)
throws Exception
DatasetMeta for a dataset instance.namespaceId - namespace of the dataset instancename - name of the dataset instanceowners - a list of owners of the dataset instance, in the form @{code Exception - if the dataset instance was not foundpublic void create(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name)
throws Exception
namespaceId - namespace of the new dataset instancename - name of the new dataset instanceExceptionpublic void update(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name)
throws Exception
namespaceId - namespace of the dataset instancename - name of the dataset instanceExceptionpublic void drop(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name)
throws Exception
namespaceId - namespace of the dataset instancename - name of the dataset instanceExceptionpublic void executeAdmin(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name,
String method)
throws Exception
namespaceId - namespace of the dataset instancename - name of the dataset instancemethod - the admin operation to execute (e.g. "exists", "truncate", "upgrade")Exceptionpublic void executeDataOp(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String name,
String method)
namespaceId - namespace of the dataset instancename - name of the dataset instancemethod - the data operation to executeCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.