Package com.amazonaws.services.simpledb.model

Examples of com.amazonaws.services.simpledb.model.BatchPutAttributesRequest


          if(sz > doList.size()){
            sz = doList.size();
          }
         
          sdb.batchPutAttributes(
              new BatchPutAttributesRequest(
                  domain,
                  doList.subList(i, sz)));     

        }
       
View Full Code Here


          int sz = i+len;
          if(sz > doList.size()){
            sz = doList.size();
          }
          sdb.batchPutAttributes(
              new BatchPutAttributesRequest(
                  domain,
                  doList.subList(i, sz)));     
        }
      }
    }catch(AmazonClientException ex){
View Full Code Here

        new ReplaceableAttribute("LEVEL", level.getName(), true),
        new ReplaceableAttribute("MESSAGE", message, true),
        new ReplaceableAttribute("DATE", Calendar.getInstance().
            getTime().toString(), true)
        ));
    Constants.getSDB().batchPutAttributes(new
        BatchPutAttributesRequest(Constants.DOMAINSDB, erros));
   
  }
View Full Code Here

    public BatchPutAttributesCommand(AmazonSimpleDB sdbClient, SdbConfiguration configuration, Exchange exchange) {
        super(sdbClient, configuration, exchange);
    }

    public void execute() {
        BatchPutAttributesRequest request = new BatchPutAttributesRequest()
            .withDomainName(determineDomainName())
            .withItems(determineReplaceableItems());
        log.trace("Sending request [{}] for exchange [{}]...", request, exchange);
       
        this.sdbClient.batchPutAttributes(request);
View Full Code Here

        attributes.add(new ReplaceableAttribute(JOB_DATA_MAP, mapper
            .writeValueAsString(newJob.getJobDataMap()), true));
      }
      item = new ReplaceableItem(JobWrapper.getJobNameKey(newJob),
          attributes);
      amazonSimpleDb.batchPutAttributes(new BatchPutAttributesRequest(
          jobDomain, Collections.singletonList(item)));
    } catch (Exception e) {
      log.error("Could not store Job: " + newJob.getFullName(), e);
    }
View Full Code Here

        int end = Math.min((i + 1) * MAX_ATTR_LENGTH, json.length());
        attributes.add(new ReplaceableAttribute(TRIGGER_JSON
            + String.valueOf(i), json.substring(
            i * MAX_ATTR_LENGTH, end), true));
      }
      amazonSimpleDb.batchPutAttributes(new BatchPutAttributesRequest(
          triggerDomain, Collections.singletonList(item)));
    } catch (Exception e) {
      log.error("Could not store Trigger: " + newTrigger.getFullName(), e);
    }

View Full Code Here

        String  table = jsoda.getModelTable(modelName);

        while (offset < dataObjs.size()) {
            List<ReplaceableItem>   items = buildPutItems(dataObjs, modelName, offset);
            offset += items.size();
            sdbClient.batchPutAttributes(new BatchPutAttributesRequest(table, items));
        }
    }
View Full Code Here

            id = UUID.randomUUID().toString();
        }
        List<ReplaceableItem> data = new ArrayList<ReplaceableItem>();
        data.add(this.getReplaceableItem(attributes, id));
        this.connection.getSimpleDB().batchPutAttributes(
                new BatchPutAttributesRequest(domain, data));
        return 1;
    }
View Full Code Here

                this.getReplaceableItem(attributes, item.getName()));
            returnval++;
        }

        this.connection.getSimpleDB().batchPutAttributes(
                new BatchPutAttributesRequest(domain, data));
        this.updateCount = returnval;
        return returnval;

    }
View Full Code Here

            }
            System.out.println();

            // Put data into a domain
            System.out.println("Putting data into " + myDomain + " domain.\n");
            sdb.batchPutAttributes(new BatchPutAttributesRequest(myDomain, createSampleData()));

            // Select data from a domain
            // Notice the use of backticks around the domain name in our select expression.
            String selectExpression = "select * from `" + myDomain + "` where Category = 'Clothes'";
            System.out.println("Selecting: " + selectExpression + "\n");
View Full Code Here

TOP

Related Classes of com.amazonaws.services.simpledb.model.BatchPutAttributesRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.