Class CassandraqlResource


  • @Path("/cassandraql")
    @ApplicationScoped
    public class CassandraqlResource
    extends Object
    • Field Detail

      • camelContext

        @Inject
        org.apache.camel.CamelContext camelContext
      • producerTemplate

        @Inject
        org.apache.camel.FluentProducerTemplate producerTemplate
      • consumerTemplate

        @Inject
        org.apache.camel.ConsumerTemplate consumerTemplate
    • Constructor Detail

      • CassandraqlResource

        public CassandraqlResource()
    • Method Detail

      • insertEmployee

        @Path("/insertEmployee")
        @POST
        public void insertEmployee​(@QueryParam("name")
                                   String name,
                                   @QueryParam("address")
                                   String address,
                                   @QueryParam("id")
                                   int id,
                                   @QueryParam("endpointUri")
                                   String endpointUri)
      • getEmployee

        @Path("/getEmployee")
        @GET
        @Produces("text/plain")
        public String getEmployee​(@QueryParam("id")
                                  int id)
      • cqlHeaderQuery

        @Path("/cqlHeaderQuery")
        @GET
        @Produces("text/plain")
        public String cqlHeaderQuery​(@QueryParam("id")
                                     int id,
                                     @QueryParam("cql")
                                     String cql,
                                     @QueryParam("queryAsSimpleStatement")
                                     boolean queryAsSimpleStatement)
      • getEmployeeWithStrategy

        @Path("/getEmployeeWithStrategy")
        @GET
        @Produces("text/plain")
        public String getEmployeeWithStrategy​(@QueryParam("id")
                                              int id)
      • getAllEmployees

        @Path("/getAllEmployees")
        @GET
        @Produces("text/plain")
        public String getAllEmployees()
                               throws Exception
        Throws:
        Exception
      • updateEmployee

        @Path("/updateEmployee")
        @PATCH
        @Produces("text/plain")
        public boolean updateEmployee​(@QueryParam("name")
                                      String name,
                                      @QueryParam("address")
                                      String address,
                                      @QueryParam("id")
                                      int id)
      • deleteEmployeeById

        @Path("/deleteEmployeeById")
        @DELETE
        public void deleteEmployeeById​(@QueryParam("id")
                                       int id)
      • aggregate

        @Path("/aggregate")
        @POST
        public void aggregate​(@QueryParam("name")
                              String name,
                              @QueryParam("address")
                              String address,
                              @QueryParam("id")
                              int id)
      • checkLoadBalancingPolicy

        @Path("/checkLoadBalancingPolicy")
        @GET
        @Produces("text/plain")
        public boolean checkLoadBalancingPolicy()
                                         throws Exception
        Throws:
        Exception