@Path(value="/tenants") @Consumes(value="application/json") @Produces(value="application/json") @ApplicationScoped public class TenantsHandler extends Object
| Constructor and Description |
|---|
TenantsHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTenant(javax.ws.rs.container.AsyncResponse asyncResponse,
org.hawkular.metrics.model.TenantDefinition tenantDefinition,
Boolean overwrite,
javax.ws.rs.core.UriInfo uriInfo) |
void |
deleteTenant(javax.ws.rs.container.AsyncResponse asyncResponse,
String id) |
void |
findTenants(javax.ws.rs.container.AsyncResponse asyncResponse) |
@POST
public void createTenant(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
org.hawkular.metrics.model.TenantDefinition tenantDefinition,
@DefaultValue(value="false") @QueryParam(value="overwrite")
Boolean overwrite,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@GET
public void findTenants(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse)
@DELETE
@Path(value="/{id}")
public void deleteTenant(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="id")
String id)
Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.