Examples of UpdateResult


Examples of com.google.api.ads.dfp.v201311.UpdateResult

      // Create action.
      DeactivatePlacements action = new DeactivatePlacements();

      // Perform action.
      UpdateResult result = placementService.performPlacementAction(action, filterStatement);

      // Display results.
      if (result != null && result.getNumChanges() > 0) {
        System.out.println("Number of placements deactivated: " + result.getNumChanges());
      } else {
        System.out.println("No placements were deactivated.");
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of com.google.api.ads.dfp.v201311.UpdateResult

        // Create action.
        DeactivateUsers action = new DeactivateUsers();

        // Perform action.
        UpdateResult result = userService.performUserAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of users deactivated: " + result.getNumChanges());
        } else {
          System.out.println("No users were deactivated.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201311.UpdateResult

        // Create action.
        ApproveAndOverbookOrders action = new ApproveAndOverbookOrders();

        // Perform action.
        UpdateResult result = orderService.performOrderAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of orders approved: " + result.getNumChanges());
        } else {
          System.out.println("No orders were approved.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201311.UpdateResult

        // Create action.
        ActivateLineItems action = new ActivateLineItems();

        // Perform action.
        UpdateResult result = lineItemService.performLineItemAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of line items activated: " + result.getNumChanges());
        } else {
          System.out.println("No line items were activated.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201311.UpdateResult

        // Create action.
        DeactivateLineItemCreativeAssociations action =
            new DeactivateLineItemCreativeAssociations();

        // Perform action.
        UpdateResult result =
            licaService.performLineItemCreativeAssociationAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of LICAs deactivated: " + result.getNumChanges());
        } else {
          System.out.println("No LICAs were deactivated.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.gwt.dev.shell.CheckForUpdates.UpdateResult

  }

  public static void logUpdateAvailable(TreeLogger logger,
      FutureTask<UpdateResult> updater) {
    if (updater != null && updater.isDone()) {
      UpdateResult result = null;
      try {
        result = updater.get(0, TimeUnit.MILLISECONDS);
      } catch (InterruptedException e) {
        // Silently ignore exception
      } catch (ExecutionException e) {
View Full Code Here

Examples of com.lishid.openinv.utils.Updater.UpdateResult

        plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() {
            @Override
            public void run() {
                // Check for updates
                if (OpenInv.GetCheckForUpdates()) {
                    UpdateResult result = updater.update();
                    if (result != UpdateResult.NO_UPDATE) {
                        if (result == UpdateResult.SUCCESS) {
                            OpenInv.log("Update found! Downloaded new version.");
                            OpenInv.log("This behaviour can be disabled in the config.yml");
                        }
                        else {
                            OpenInv.log("Update failed, reason: " + result.toString());
                        }
                    }
                }
            }
        }, 0, 20 * 60 * 1000); // Update every once a while
View Full Code Here

Examples of org.apache.sling.installer.api.UpdateResult

        logger.debug("Removal of {}", path);
        final File file = new File(path);
        if ( file.exists() ) {
            file.delete();
        }
        return new UpdateResult(url);
    }
View Full Code Here

Examples of org.apache.sling.installer.api.UpdateResult

                try {
                    fos.close();
                } catch (final IOException ignore) {}
            }

            final UpdateResult result = new UpdateResult(prefix + ':' + path);
            result.setResourceIsMoved(true);
            return result;
        } catch (final IOException e) {
            logger.error("Unable to add/update resource " + resourceType + ':' + id, e);
            return null;
        }
View Full Code Here

Examples of org.apache.sling.installer.api.UpdateResult

            } finally {
                if ( session != null ) {
                    session.logout();
                }
            }
            return new UpdateResult(url);
        }
        // not provisioned by us
        logger.debug("Not removing unmanaged artifact from repository at {}", path);
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.