ApplicationSetting.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. package com.leanwo.management.model;
  2. import org.apache.commons.exec.ExecuteWatchdog;
  3. /**
  4. * 应用程序实体类.
  5. *
  6. * @author YangZhiJie
  7. */
  8. public class ApplicationSetting {
  9. /**
  10. * 应用程序名称.
  11. */
  12. private String name;
  13. /**
  14. * 安装路径.
  15. */
  16. private String installPath;
  17. /**
  18. * 应用程序状态.
  19. */
  20. private String status;
  21. /**
  22. * 启动程序BAT文件路径.
  23. */
  24. private String startBatFile;
  25. /**
  26. * 停止程序BAT文件路径.
  27. */
  28. private String stopBatFile;
  29. /** The execute watchdog. */
  30. private ExecuteWatchdog executeWatchdog;
  31. /** 监控地址. */
  32. private String monitorUrl;
  33. /** token. */
  34. private String token;
  35. /**
  36. * Gets the token.
  37. *
  38. * @return the token
  39. */
  40. public String getToken() {
  41. return token;
  42. }
  43. /**
  44. * Sets the token.
  45. *
  46. * @param token the new token
  47. */
  48. public void setToken(String token) {
  49. this.token = token;
  50. }
  51. /**
  52. * Gets the 监控地址.
  53. *
  54. * @return the 监控地址
  55. */
  56. public String getMonitorUrl() {
  57. return monitorUrl;
  58. }
  59. /**
  60. * Sets the 监控地址.
  61. *
  62. * @param monitorUrl the new 监控地址
  63. */
  64. public void setMonitorUrl(String monitorUrl) {
  65. this.monitorUrl = monitorUrl;
  66. }
  67. /**
  68. * Gets the 应用程序名称.
  69. *
  70. * @return the 应用程序名称
  71. */
  72. public String getName() {
  73. return name;
  74. }
  75. /**
  76. * Sets the 应用程序名称.
  77. *
  78. * @param name the new 应用程序名称
  79. */
  80. public void setName(String name) {
  81. this.name = name;
  82. }
  83. /**
  84. * Gets the 应用程序状态.
  85. *
  86. * @return the 应用程序状态
  87. */
  88. public String getStatus() {
  89. return status;
  90. }
  91. /**
  92. * Sets the 应用程序状态.
  93. *
  94. * @param status the new 应用程序状态
  95. */
  96. public void setStatus(String status) {
  97. this.status = status;
  98. }
  99. /**
  100. * Gets the 启动程序BAT文件路径.
  101. *
  102. * @return the 启动程序BAT文件路径
  103. */
  104. public String getStartBatFile() {
  105. return startBatFile;
  106. }
  107. /**
  108. * Sets the 启动程序BAT文件路径.
  109. *
  110. * @param startBatFile the new 启动程序BAT文件路径
  111. */
  112. public void setStartBatFile(String startBatFile) {
  113. this.startBatFile = startBatFile;
  114. }
  115. /**
  116. * Gets the 停止程序BAT文件路径.
  117. *
  118. * @return the 停止程序BAT文件路径
  119. */
  120. public String getStopBatFile() {
  121. return stopBatFile;
  122. }
  123. /**
  124. * Sets the 停止程序BAT文件路径.
  125. *
  126. * @param stopBatFile the new 停止程序BAT文件路径
  127. */
  128. public void setStopBatFile(String stopBatFile) {
  129. this.stopBatFile = stopBatFile;
  130. }
  131. /**
  132. * Gets the execute watchdog.
  133. *
  134. * @return the execute watchdog
  135. */
  136. public ExecuteWatchdog getExecuteWatchdog() {
  137. return executeWatchdog;
  138. }
  139. /**
  140. * Sets the execute watchdog.
  141. *
  142. * @param executeWatchdog the new execute watchdog
  143. */
  144. public void setExecuteWatchdog(ExecuteWatchdog executeWatchdog) {
  145. this.executeWatchdog = executeWatchdog;
  146. }
  147. /**
  148. * Gets the 安装路径.
  149. *
  150. * @return the 安装路径
  151. */
  152. public String getInstallPath() {
  153. return installPath;
  154. }
  155. /**
  156. * Sets the 安装路径.
  157. *
  158. * @param installPath the new 安装路径
  159. */
  160. public void setInstallPath(String installPath) {
  161. this.installPath = installPath;
  162. }
  163. }