Package org.lightfish.business.servermonitoring.entity

Examples of org.lightfish.business.servermonitoring.entity.OneShot


    ServletContext sc;

    @GET
    public JsonObject info() {
        JsonObjectBuilder builder = Json.createObjectBuilder();
        OneShot info = this.information.fetch();
        String version = "--", uptime = "--";
        if (info != null) {
            version = info.getVersion();
        }
        builder.add("version", version);
        if (info != null) {
            uptime = info.getUptime();
        }
        builder.add("uptime", uptime);
        return builder.build();
    }
View Full Code Here


    public String getLocation() {
        return this.configurator.getValue(LOCATION);
    }
   
    public String getVersion(){
        OneShot info = this.information.fetch();
        if(info != null){
            return info.getVersion();
        }else{
            return "--";
        }
       
    }
View Full Code Here

        }
       
    }

    public String getUptime(){
        OneShot info = this.information.fetch();
        if(info != null){
            return info.getUptime();
        }else{
            return "--";
        }
    }
View Full Code Here

TOP

Related Classes of org.lightfish.business.servermonitoring.entity.OneShot

Copyright © 2018 www.massapicom. 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.