001 package org.kuali.common.deploy.monitoring;
002
003 import org.kuali.common.deploy.Deployable;
004 import org.kuali.common.util.Assert;
005
006 public class ServerAgent {
007
008 public ServerAgent(String appServerStartupOptions, Deployable controller, String baseDir, String logsDir) {
009 Assert.noBlanks(appServerStartupOptions, baseDir, logsDir);
010 Assert.noNulls(controller);
011 this.appServerStartupOptions = appServerStartupOptions;
012 this.controller = controller;
013 this.baseDir = baseDir;
014 this.logsDir = logsDir;
015 }
016
017 private final String appServerStartupOptions;
018 private final Deployable controller;
019 private final String baseDir;
020 private final String logsDir;
021
022 public String getAppServerStartupOptions() {
023 return appServerStartupOptions;
024 }
025
026 public Deployable getController() {
027 return controller;
028 }
029
030 public String getBaseDir() {
031 return baseDir;
032 }
033
034 public String getLogsDir() {
035 return logsDir;
036 }
037
038 }