/** * View all transfer activity, average number of connections, and number of virtual IPs associated with the load * balancing service. Historical usage data is available for up to 90 days of service activity. */ @Named("report:list") @GET @Consumes(MediaType.APPLICATION_JSON) @Fallback(NullOnNotFoundOr404.class) @Path("/loadbalancers/usage") HistoricalUsage getHistoricalUsage( @ParamParser(DateParser.class) @QueryParam("startTime") Date startTime, @ParamParser(DateParser.class) @QueryParam("endTime") Date endTime);
private Optional<?> getParamValue(Invocation invocation, @Nullable ParamParser extractor, int argIndex, String paramKey) { Object arg = invocation.getArgs().get(argIndex); if (extractor != null && checkPresentOrNullable(invocation, paramKey, argIndex, arg)) { // ParamParsers can deal with nullable parameters arg = injector.getInstance(extractor.value()).apply(arg); } checkPresentOrNullable(invocation, paramKey, argIndex, arg); return Optional.fromNullable(arg); }
private Optional<?> getParamValue(Invocation invocation, @Nullable ParamParser extractor, int argIndex, String paramKey) { Object arg = invocation.getArgs().get(argIndex); if (extractor != null && checkPresentOrNullable(invocation, paramKey, argIndex, arg)) { // ParamParsers can deal with nullable parameters arg = injector.getInstance(extractor.value()).apply(arg); } checkPresentOrNullable(invocation, paramKey, argIndex, arg); return Optional.fromNullable(arg); }
/** * View all transfer activity, average number of connections, and number of virtual IPs associated with the load * balancing service. Historical usage data is available for up to 90 days of service activity. */ @Named("report:list") @GET @Consumes(MediaType.APPLICATION_JSON) @Fallback(NullOnNotFoundOr404.class) @Path("/loadbalancers/usage") HistoricalUsage getHistoricalUsage( @ParamParser(DateParser.class) @QueryParam("startTime") Date startTime, @ParamParser(DateParser.class) @QueryParam("endTime") Date endTime);
private Optional<?> getParamValue(Invocation invocation, @Nullable ParamParser extractor, int argIndex, String paramKey) { Object arg = invocation.getArgs().get(argIndex); if (extractor != null && checkPresentOrNullable(invocation, paramKey, argIndex, arg)) { // ParamParsers can deal with nullable parameters arg = injector.getInstance(extractor.value()).apply(arg); } checkPresentOrNullable(invocation, paramKey, argIndex, arg); return Optional.fromNullable(arg); }
/** * View all transfer activity, average number of connections, and number of virtual IPs associated with the load * balancing service. Historical usage data is available for up to 90 days of service activity. */ @Named("report:list") @GET @Consumes(MediaType.APPLICATION_JSON) @Fallback(NullOnNotFoundOr404.class) @Path("/loadbalancers/usage") HistoricalUsage getHistoricalUsage( @ParamParser(DateParser.class) @QueryParam("startTime") Date startTime, @ParamParser(DateParser.class) @QueryParam("endTime") Date endTime);
private Optional<?> getParamValue(Invocation invocation, @Nullable ParamParser extractor, int argIndex, String paramKey) { Object arg = invocation.getArgs().get(argIndex); if (extractor != null && checkPresentOrNullable(invocation, paramKey, argIndex, arg)) { // ParamParsers can deal with nullable parameters arg = injector.getInstance(extractor.value()).apply(arg); } checkPresentOrNullable(invocation, paramKey, argIndex, arg); return Optional.fromNullable(arg); }
/** * View all transfer activity, average number of connections, and number of virtual IPs associated with the load * balancing service. Historical usage data is available for up to 90 days of service activity. */ @Named("report:list") @GET @Consumes(MediaType.APPLICATION_JSON) @Fallback(NullOnNotFoundOr404.class) @Path("/loadbalancers/usage") HistoricalUsage getHistoricalUsage( @ParamParser(DateParser.class) @QueryParam("startTime") Date startTime, @ParamParser(DateParser.class) @QueryParam("endTime") Date endTime);
private Optional<?> getParamValue(Invocation invocation, @Nullable ParamParser extractor, int argIndex, String paramKey) { Object arg = invocation.getArgs().get(argIndex); if (extractor != null && checkPresentOrNullable(invocation, paramKey, argIndex, arg)) { // ParamParsers can deal with nullable parameters arg = injector.getInstance(extractor.value()).apply(arg); } checkPresentOrNullable(invocation, paramKey, argIndex, arg); return Optional.fromNullable(arg); }
/** * View all transfer activity, average number of connections, and number of virtual IPs associated with the load * balancing service. Historical usage data is available for up to 90 days of service activity. */ @Named("report:list") @GET @Consumes(MediaType.APPLICATION_JSON) @Fallback(NullOnNotFoundOr404.class) @Path("/loadbalancers/usage") HistoricalUsage getHistoricalUsage( @ParamParser(DateParser.class) @QueryParam("startTime") Date startTime, @ParamParser(DateParser.class) @QueryParam("endTime") Date endTime);
private Optional<?> getParamValue(Invocation invocation, @Nullable ParamParser extractor, int argIndex, String paramKey) { Object arg = invocation.getArgs().get(argIndex); if (extractor != null && checkPresentOrNullable(invocation, paramKey, argIndex, arg)) { // ParamParsers can deal with nullable parameters arg = injector.getInstance(extractor.value()).apply(arg); } checkPresentOrNullable(invocation, paramKey, argIndex, arg); return Optional.fromNullable(arg); }
/** * Updates the given role. * * @param role The new details for the role. * @return The details of the updated role. */ @Named("role:update") @PUT @Path("/roles/{rolename}") Role updateRole(@PathParam("rolename") @ParamParser(RoleName.class) @BinderParam(BindToJsonPayload.class) Role role);
/** * Creates or updates (uploads) a role * * @param roleName * @throws HttpResponseException * "409 Conflict" if the role already exists */ @Named("role:update") @PUT @Path("/roles/{rolename}") Role updateRole(@PathParam("rolename") @ParamParser(RoleName.class) @BinderParam(BindToJsonPayload.class) Role role);
/** * Updates an existing node. * * @param node The new details for the node. * @return The details of the updated node. */ @Named("node:update") @PUT @Path("/nodes/{nodename}") Node updateNode(@PathParam("nodename") @ParamParser(NodeName.class) @BinderParam(BindToJsonPayload.class) Node node);
/** * Updates an existing node. * * @param node The new details for the node. * @return The details of the updated node. */ @Named("node:update") @PUT @Path("/nodes/{nodename}") Node updateNode(@PathParam("nodename") @ParamParser(NodeName.class) @BinderParam(BindToJsonPayload.class) Node node);
/** * Creates or updates (uploads) a node * * @param node * updated node * @throws HttpResponseException * "409 Conflict" if the node already exists */ @Named("node:update") @PUT @Path("/nodes/{nodename}") Node updateNode(@PathParam("nodename") @ParamParser(NodeName.class) @BinderParam(BindToJsonPayload.class) Node node);
/** * Updates the given role. * * @param role The new details for the role. * @return The details of the updated role. */ @Named("role:update") @PUT @Path("/roles/{rolename}") Role updateRole(@PathParam("rolename") @ParamParser(RoleName.class) @BinderParam(BindToJsonPayload.class) Role role);
/** * Creates or updates (uploads) a node * * @param node * updated node * @throws HttpResponseException * "409 Conflict" if the node already exists */ @Named("node:update") @PUT @Path("/nodes/{nodename}") Node updateNode(@PathParam("nodename") @ParamParser(NodeName.class) @BinderParam(BindToJsonPayload.class) Node node);
/** * Creates or updates (uploads) a role * * @param roleName * @throws HttpResponseException * "409 Conflict" if the role already exists */ @Named("role:update") @PUT @Path("/roles/{rolename}") Role updateRole(@PathParam("rolename") @ParamParser(RoleName.class) @BinderParam(BindToJsonPayload.class) Role role);
/** * Shows all changes to the specified domain since the specified date/time. */ @Named("domain:list") @GET @Consumes(MediaType.APPLICATION_JSON) @Path("/domains/{id}/changes") @Fallback(NullOnNotFoundOr404.class) @Nullable DomainChange listChanges(@PathParam("id") int id, @ParamParser(DateParser.class) @QueryParam("changes") Date since);