All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.model.AppdynamicsApplication Maven / Gradle / Ivy

package com.capitalone.dashboard.model;


public class AppdynamicsApplication extends CollectorItem {
    protected static final String APP_NAME = "appName";
    protected static final String APP_ID = "appID";
    protected static final String APP_DESC = "appDesc";
    protected static final String APP_DASHBOARD_URL = "dashboardUrl";
    protected static final String APP_INSTANCE_ID = "instanceID"; //used to specify which instance it belongs to



    public int getinstanceID() {
        return (int) getOptions().get(APP_INSTANCE_ID);
    }

    public void setinstanceID(int id) {
        getOptions().put(APP_INSTANCE_ID, id);
    }

    public String getAppName() {
        return (String) getOptions().get(APP_NAME);
    }

    public void setAppName(String name) {
        getOptions().put(APP_NAME, name);
    }

    public String getAppID() {
        return (String) getOptions().get(APP_ID);
    }

    public void setAppID(String id) {
        getOptions().put(APP_ID, id);
    }

    public String getAppDesc() {
        return (String) getOptions().get(APP_DESC);
    }

    public void setAppDesc (String desc) {
        getOptions().put(APP_DESC, desc);
    }

    public String getAppDashboardUrl() {return (String) getOptions().get(APP_DASHBOARD_URL);}

    public void setAppDashboardUrl(String url) {
        getOptions().put(APP_DASHBOARD_URL, url);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        AppdynamicsApplication app = (AppdynamicsApplication) o;

        return getAppID().equals(app.getAppID());
    }

    @Override
    public int hashCode() {
        return getAppID().hashCode();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy