Codota Logo
PutAttributesRequest.withDomainName
Code IndexAdd Codota to your IDE (free)

How to use
withDomainName
method
in
com.amazonaws.services.simpledb.model.PutAttributesRequest

Best Java code snippets using com.amazonaws.services.simpledb.model.PutAttributesRequest.withDomainName (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: airlift/airship

@Override
public void setExpectedState(ExpectedSlotStatus slotStatus)
{
  Preconditions.checkNotNull(slotStatus, "slotStatus is null");
  if (isDomainCreated()) {
    List<ReplaceableAttribute> attributes = newArrayList();
    attributes.add(new ReplaceableAttribute("state", slotStatus.getStatus().toString(), true));
    if (slotStatus.getAssignment() != null) {
      attributes.add(new ReplaceableAttribute("binary", slotStatus.getAssignment().getBinary(), true));
      attributes.add(new ReplaceableAttribute("config", slotStatus.getAssignment().getConfig(), true));
    }
    try {
      simpleDb.putAttributes(new PutAttributesRequest().withDomainName(domainName).withItemName(slotStatus.getId().toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}
origin: com.proofpoint.galaxy/galaxy-coordinator

@Override
public void setExpectedState(ExpectedSlotStatus slotStatus)
{
  Preconditions.checkNotNull(slotStatus, "slotStatus is null");
  if (isDomainCreated()) {
    List<ReplaceableAttribute> attributes = newArrayList();
    attributes.add(new ReplaceableAttribute("state", slotStatus.getStatus().toString(), true));
    if (slotStatus.getAssignment() != null) {
      attributes.add(new ReplaceableAttribute("binary", slotStatus.getAssignment().getBinary(), true));
      attributes.add(new ReplaceableAttribute("config", slotStatus.getAssignment().getConfig(), true));
    }
    try {
      simpleDb.putAttributes(new PutAttributesRequest().withDomainName(domainName).withItemName(slotStatus.getId().toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}
origin: appoxy/simplejpa

private void putAndDelete(String domainName, String oldAttributeName, String newAttributeName, List<Item> items) throws AmazonClientException {
  AmazonSimpleDB db = factory.getSimpleDb();
  for (Item item : items) {
    GetAttributesResult getOldResults = db.getAttributes(new GetAttributesRequest().withDomainName(domainName).withConsistentRead(true).withItemName(
        item.getName()).withAttributeNames(oldAttributeName));
    List<Attribute> oldAtts = getOldResults.getAttributes();
    if (oldAtts.size() > 0) {
      Attribute oldAtt = oldAtts.get(0);
      List<ReplaceableAttribute> atts = new ArrayList<ReplaceableAttribute>();
      atts.add(new ReplaceableAttribute(newAttributeName, oldAtt.getValue(), true));
      db.putAttributes(new PutAttributesRequest().withDomainName(domainName).withItemName(item.getName()).withAttributes(atts));
      db.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(item.getName()).withAttributes(oldAtts));
    }
  }
}
origin: appoxy/simplejpa

if (!attsToPut.isEmpty()) {
  this.em.getSimpleDb().putAttributes(
      new PutAttributesRequest().withDomainName(domainName).withItemName(id).withAttributes(attsToPut)
          .withExpected(expected));
  duration2 = System.currentTimeMillis() - start2;
com.amazonaws.services.simpledb.modelPutAttributesRequestwithDomainName

Javadoc

The name of the domain in which to perform the operation.

Popular methods of PutAttributesRequest

  • <init>
    Constructs a new PutAttributesRequest object. Callers should use the setter or fluent setter (with..
  • setExpected
    The update condition which, if specified, determines whether the specified attributes will be update
  • withAttributes
    The list of attributes.NOTE: This method appends the values to the existing list (if any). Use #setA
  • withItemName
    The name of the item.
  • getAttributes
    The list of attributes.
  • getDomainName
    The name of the domain in which to perform the operation.
  • getExpected
    The update condition which, if specified, determines whether the specified attributes will be update
  • getItemName
    The name of the item.
  • setAttributes
    The list of attributes.
  • setDomainName
    The name of the domain in which to perform the operation.
  • setItemName
    The name of the item.
  • withExpected
    The update condition which, if specified, determines whether the specified attributes will be update
  • setItemName,
  • withExpected

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now