Codota Logo
CouchDbClient.shutdown
Code IndexAdd Codota to your IDE (free)

How to use
shutdown
method
in
org.lightcouch.CouchDbClient

Best Java code snippets using org.lightcouch.CouchDbClient.shutdown (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: lightcouch/LightCouch

  @Override
  public void close() throws IOException {
    shutdown();
  }
}
origin: streampipes/streampipes-ce

@Override
public void storeVisualization(RunningVisualization visualization) {
  CouchDbClient couchDbClient = couchDbClientSupplier.get();
  couchDbClient.save(visualization);
  couchDbClient.shutdown();
}
origin: streampipes/streampipes-ce

@Override
public void storeVirtualSensor(String username, VirtualSensor virtualSensor) {
  CouchDbClient couchDbClient = couchDbClientSupplier.get();
  couchDbClient.save(virtualSensor);
  couchDbClient.shutdown();
}
origin: streampipes/streampipes-ce

 public T execute() {
  CouchDbClient couchDbClient = couchDbClientSupplier.get();
  T result = executeCommand(couchDbClient);
  couchDbClient.shutdown();

  return result;
 }
}
origin: streampipes/streampipes-ce

  @GET
  @Produces(MediaType.APPLICATION_JSON)
  @GsonWithIds
  @Override
  public Response getAllData(@PathParam("table") String table) {
    CouchDbClient couchDbClient = Utils.getCoucbDbClient(table);

    List<JsonObject> result = couchDbClient.view("_all_docs").includeDocs(true).query(JsonObject.class);
    String json = new Gson().toJson(result);

    couchDbClient.shutdown();

    return Response.ok(json).build();

  }
}
origin: streampipes/streampipes-ce

@Override
public List<VirtualSensor> getVirtualSensors(String username) {
  CouchDbClient couchDbClient = couchDbClientSupplier.get();
  List<VirtualSensor> virtualSensors = couchDbClient.view("_all_docs")
      .includeDocs(true)
      .query(VirtualSensor.class);
  couchDbClient.shutdown();
  return virtualSensors;
}
origin: streampipes/streampipes-ce

  @Override
  public void deleteVisualization(String pipelineId) {
    try {
      CouchDbClient couchDbClient = couchDbClientSupplier.get();
      List<RunningVisualization> currentVisualizations = getRunningVisualizations();
      for (RunningVisualization viz : currentVisualizations) {
        if (viz.getPipelineId() != null) {
          if (viz.getPipelineId().equals(pipelineId))
            couchDbClient.remove(viz);
        }
      }
      couchDbClient.shutdown();
    } catch (NoDocumentException e) {
      e.printStackTrace();
    }
  }
}
origin: org.streampipes/streampipes-pipeline-management

public void removeSepaFromFavorites(String username, String elementId)
{
  CouchDbClient dbClient = Utils.getCouchDbUserClient();
  if (!checkUser(username)) return;
  User user = userStorage.getUser(username);
  user.removePreferredSepa(elementId);
  dbClient.update(user);
  dbClient.shutdown();
}

origin: org.streampipes/streampipes-pipeline-management

public void removeSourceFromFavorites(String username, String elementId)
{
  CouchDbClient dbClient = Utils.getCouchDbUserClient();
  if (!checkUser(username)) return;
  User user = userStorage.getUser(username);
  user.removePreferredSource(elementId);
  dbClient.update(user);
  dbClient.shutdown();
}
origin: streampipes/streampipes-ce

public void removeActionFromFavorites(String username, String elementId)
{
  CouchDbClient dbClient = Utils.getCouchDbUserClient();
  if (!checkUser(username)) return;
  User user = userStorage.getUser(username);
  user.removePreferredAction(elementId);
  dbClient.update(user);
  dbClient.shutdown();
}

origin: org.streampipes/streampipes-pipeline-management

public void removeActionFromFavorites(String username, String elementId)
{
  CouchDbClient dbClient = Utils.getCouchDbUserClient();
  if (!checkUser(username)) return;
  User user = userStorage.getUser(username);
  user.removePreferredAction(elementId);
  dbClient.update(user);
  dbClient.shutdown();
}

origin: streampipes/streampipes-ce

public void removeSepaFromFavorites(String username, String elementId)
{
  CouchDbClient dbClient = Utils.getCouchDbUserClient();
  if (!checkUser(username)) return;
  User user = userStorage.getUser(username);
  user.removePreferredSepa(elementId);
  dbClient.update(user);
  dbClient.shutdown();
}

origin: streampipes/streampipes-ce

public void removeSourceFromFavorites(String username, String elementId)
{
  CouchDbClient dbClient = Utils.getCouchDbUserClient();
  if (!checkUser(username)) return;
  User user = userStorage.getUser(username);
  user.removePreferredSource(elementId);
  dbClient.update(user);
  dbClient.shutdown();
}
org.lightcouchCouchDbClientshutdown

Popular methods of CouchDbClient

  • view
  • find
  • remove
  • save
  • update
  • <init>
    Constructs a new instance of this class.
  • changes
  • context
  • createConnectionManager
  • createRegistry
  • design
  • getDBUri
  • design,
  • getDBUri,
  • registerInterceptors,
  • setGsonBuilder,
  • validate

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • ImageIO (javax.imageio)
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