team19hackathon2021 / issues-curriki

0 stars 0 forks source link

to create a new Java class to count the number of API requests are currently being made at the same time for fine tuning memory performance for bulk operations. #24

Closed computate closed 2 years ago

computate commented 3 years ago

Mission to create a new Java class to count the number of API requests are currently being made at the same time for fine tuning memory performance for bulk operations.

Mission

Your mission, should you choose to accept it, is to create a new Java class to count the number of API requests are currently being made at the same time for fine tuning memory performance for bulk operations. .

The day of the operation is October 26th, 2021

You will have 4 hours to complete your mission.

One of the project’s major goals is to establish https://cc.curriki.org as the global authoring and distribution hub and library for openly licensed, next generation, open educational resources (OER+) under the least restrictive Creative Commons license, CC-BY.

You will be joining a team of the boldest

of all Red Hatters for this mission, who will be at your service developing the code and automating the deployment to OpenShift.

How to get started:

Follow the instructions here to setup the project: https://github.com/team19hackathon2021/ActiveLearningStudio-API/tree/master/src

The details of your mission:

package org.curriki.api.enus.vertx;

/**
 **/

public class ApiCounter {
}

Create the totalNum field inside the ApiCounter class

    private Long totalNum;

Create the getTotalNum method inside the ApiCounter class

    public Long getTotalNum() {
        return totalNum;
    }

Create the incrementTotalNum method inside the ApiCounter class

    public void incrementTotalNum(Long num) {
        this.totalNum+=num;
    }

Create the incrementTotalNum method inside the ApiCounter class

    public void incrementTotalNum() {
        this.totalNum++;
    }

Create the setTotalNum method inside the ApiCounter class

    public void setTotalNum(Long totalNum) {
        this.totalNum = totalNum;
    }

Create the queueNum field inside the ApiCounter class

    private Long queueNum;

Create the getQueueNum method inside the ApiCounter class

    public Long getQueueNum() {
        return queueNum;
    }

Create the incrementQueueNum method inside the ApiCounter class

    public void incrementQueueNum(Long num) {
        this.queueNum+=num;
    }

Create the incrementQueueNum method inside the ApiCounter class

    public void incrementQueueNum() {
        this.queueNum++;
    }

Create the decrementQueueNum method inside the ApiCounter class

    public void decrementQueueNum() {
        this.queueNum--;
    }

Create the setQueueNum method inside the ApiCounter class

    public void setQueueNum(Long countNum) {
        this.queueNum = countNum;
    }

Create the totalNumOld field inside the ApiCounter class

    private Long totalNumOld;

Create the getTotalNumOld method inside the ApiCounter class

    public Long getTotalNumOld() {
        return totalNumOld;
    }

Create the setTotalNumOld method inside the ApiCounter class

    public void setTotalNumOld(Long totalNumOld) {
        this.totalNumOld = totalNumOld;
    }

Create the queueNumOld field inside the ApiCounter class

    private Long queueNumOld;

Create the getQueueNumOld method inside the ApiCounter class

    public Long getQueueNumOld() {
        return queueNumOld;
    }

Create the setQueueNumOld method inside the ApiCounter class

    public void setQueueNumOld(Long countNumOld) {
        this.queueNumOld = countNumOld;
    }

This message will not self-destruct.

This message will not self destruct, because this project is open source.