/*
 *  Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 *  WSO2 Inc. licenses this file to you under the Apache License,
 *  Version 2.0 (the "License"); you may not use this file except
 *  in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 *
 */

/**
 * Bean class that holds the summary details of siddhi applications
 */
package org.wso2.carbon.status.dashboard.core.bean;

import org.wso2.siddhi.core.util.statistics.metrics.Level;

public class SiddhiAppSummaryInfo {
    private String appName;
    private String status;
    private String lastUpdate;
    private Level siddhiStatEnableLevel;
    private String isStatEnabled;
    private String deployedNodeType;
    private String deployedNodeHost;
    private String deployedNodePort;
    private String deploymentMode;

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDeployedNodeType() {
        return deployedNodeType;
    }

    public void setDeployedNodeType(String deployedNodeType) {
        this.deployedNodeType = deployedNodeType;
    }

    public String getDeployedNodeHost() {
        return deployedNodeHost;
    }

    public void setDeployedNodeHost(String deployedNodeHost) {
        this.deployedNodeHost = deployedNodeHost;
    }

    public String getDeployedNodePort() {
        return deployedNodePort;
    }

    public void setDeployedNodePort(String deployedNodePort) {
        this.deployedNodePort = deployedNodePort;
    }

    public String getDeploymentMode() {
        return deploymentMode;
    }

    public void setDeploymentMode(String deploymentMode) {
        this.deploymentMode = deploymentMode;
    }

    public String getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(String lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public String isStatEnabled() {
        return isStatEnabled;
    }

    public Level getSiddhiStatEnableLevel() {
        return siddhiStatEnableLevel;
    }

    public void setStatEnabled(Level statEnabled) {
        isStatEnabled = siddhiStatEnableLevel.toString();
        siddhiStatEnableLevel = statEnabled;
    }
}

@@ -2677,24 +2677,69 @@
 tEnabled) %7B%0A
+        siddhiStatEnableLevel = statEnabled;%0A
         isSt
@@ -2788,53 +2788,8 @@
 ();%0A
-        siddhiStatEnableLevel = statEnabled;%0A
     

Fix NPE when requesting App view in monitoring dashboard