Examples of Activity


Examples of com.google.api.ads.dfp.axis.v201308.Activity

    // Get the ActivityService.
    ActivityServiceInterface activityService =
        dfpServices.get(session, ActivityServiceInterface.class);

    // Get the activity.
    Activity activity = activityService.getActivity(activityId);

    // Update the expected URL.
    activity.setExpectedURL("http://google.com");

    // Update the activity on the server.
    Activity[] activities = activityService.updateActivities(new Activity[] {activity});

    for (Activity updatedActivity : activities) {
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201311.Activity

    // Get the ActivityService.
    ActivityServiceInterface activityService =
        dfpServices.get(session, ActivityServiceInterface.class);

    // Get the activity.
    Activity activity = activityService.getActivity(activityId);

    // Update the expected URL.
    activity.setExpectedURL("http://google.com");

    // Update the activity on the server.
    Activity[] activities = activityService.updateActivities(new Activity[] {activity});

    for (Activity updatedActivity : activities) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.Activity

      // Set the ID of the activity to update.
      Integer activityId = Integer.parseInt("INSERT_ACTIVITY_ID_HERE");

      // Get the activity.
      Activity activity = activityService.getActivity(activityId);

      // Update the expected URL.
      activity.setExpectedURL("http://google.com");

      // Update the activity on the server.
      Activity[] activities = activityService.updateActivities(new Activity[] {activity});

      for (Activity updatedActivity : activities) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201306.Activity

      // Set the ID of the activity to update.
      Integer activityId = Integer.parseInt("INSERT_ACTIVITY_ID_HERE");

      // Get the activity.
      Activity activity = activityService.getActivity(activityId);

      // Update the expected URL.
      activity.setExpectedURL("http://google.com");

      // Update the activity on the server.
      Activity[] activities = activityService.updateActivities(new Activity[] {activity});

      for (Activity updatedActivity : activities) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201308.Activity

      // Set the ID of the activity to update.
      Integer activityId = Integer.parseInt("INSERT_ACTIVITY_ID_HERE");

      // Get the activity.
      Activity activity = activityService.getActivity(activityId);

      // Update the expected URL.
      activity.setExpectedURL("http://google.com");

      // Update the activity on the server.
      Activity[] activities = activityService.updateActivities(new Activity[] {activity});

      for (Activity updatedActivity : activities) {
View Full Code Here

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

      // Set the ID of the activity to update.
      Integer activityId = Integer.parseInt("INSERT_ACTIVITY_ID_HERE");

      // Get the activity.
      Activity activity = activityService.getActivity(activityId);

      // Update the expected URL.
      activity.setExpectedURL("http://google.com");

      // Update the activity on the server.
      Activity[] activities = activityService.updateActivities(new Activity[] {activity});

      for (Activity updatedActivity : activities) {
View Full Code Here

Examples of com.google.api.services.plus.model.Activity

            Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential)
            .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
            .build();

            // Re-acquisition of Activity
            Activity activity = null;
            try {
                activity = plus.activities().get(activityModel.getKey().getName()).execute();

            } catch (GoogleJsonResponseException e) {
                // When deleted
                if(e.getStatusCode() == 404) {
//                    logger.info("Activity Delete");
                    delete(userModel, activityModel);

                    return true;
                }
            }


            if(activity != null) {
                Date oldModelUpdateDate = activityModel.getUpdated();
                Date newModelUpdateDate = new Date(activity.getUpdated().getValue());

                // Activity Is Updated
                if(!oldModelUpdateDate.equals(newModelUpdateDate)) {
//                    logger.info("Activity Update!");
                    // Replace Activity And UpdateCheckDate
View Full Code Here

Examples of com.google.gwt.activity.shared.Activity



    @Override
    public Activity getActivity(final Place place) {
        Activity activity = null;

        if(place instanceof LoginPlace) {
            activity = this.loginActivityProvider.get();
        }
        else if (place instanceof HomePlace) {
View Full Code Here

Examples of com.ibm.sbt.services.client.connections.activities.Activity

        ep.setUser(p.get("user"));
        ep.setPassword(p.get("password"));
        ep.setForceTrustSSLCertificate(true);

        final ActivityService svc = new ActivityService(ep);
        Activity c = new Activity();
        c = svc.createActivity(c);
        final String uuid = c.getActivityUuid();
       
       
        //fails even when mutexed
        final Object mutex = new Object();

        Thread t1 = new Thread(new Runnable() {

            @Override
            public void run() {
                Activity a;
                try {
                    a = svc.getActivity(uuid);
                   
                    for (int i = 0; i < 10; i++) {
                        a.setCompleted(a.isCompleted());
                        a.setContent("content " + System.currentTimeMillis());
                        synchronized (mutex) {
                            svc.updateActivity(a);
                        }
                    }
                } catch (ClientServicesException e) {
View Full Code Here

Examples of com.netflix.exhibitor.core.activity.Activity

    private final Exhibitor exhibitor;

    public CleanupManager(final Exhibitor exhibitor)
    {
        this.exhibitor = exhibitor;
        final Activity activity = new Activity()
        {
            @Override
            public void completed(boolean wasSuccessful)
            {
                // NOP
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.