Git Product home page Git Product logo

aem-cloud-manager-poke's Introduction

AEM Cloud Manager Poke

A utility that reads in a JSON file in the following format:

{
    [
        {
            "url": "https://....",
            "path": "/content/dam.1.json",
            "interval": 1234,
            "lastInvocation": null,
            "auth": {
                "username": "myname",
                "password" : "mypassword"
            }
        },
        {
            ...
        }

    ],
    "terminate": false,
    "sleep": 10
}

With this will perform a set of GET requests using Java Callable API in order to make sure that the system is being leveraged, preventing it from falling asleep.

Note: This will use Basic Auth to authenticate against the AEMaaCS instance and for that reason it is best to create a local user when using this tool.

Note: The sleep parameter is defined in seconds. This will hault the entire process for x seconds before trying again

Note: The interval parameter is defined in seconds and it will not call an AEM instance until an intervals worth of time has gone between the last invocation and the upcoming one

How to use

java -jar cloudmanager-ping.jar --location <file_path>

file_path is the JSON file path location representing all of the AEMaaCS instances

Note: Internally we go straight to the Author and by pass the CDN which prevents the request from being cached. If you are going through the CDN and/or Dispatcher make sure that the request does not get cached or else you will not be able to keep the environment awake

How to build

mvn clean install

Contributors

aem-cloud-manager-poke's People

Contributors

pat-lego avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.