1 16 17 package org.springframework.jmx.export.metadata; 18 19 30 public class ManagedResource extends AbstractJmxAttribute { 31 32 private String objectName; 33 34 private boolean log = false; 35 36 private String logFile; 37 38 private String persistPolicy; 39 40 private int persistPeriod = -1; 41 42 private String persistName; 43 44 private String persistLocation; 45 46 47 public void setObjectName(String objectName) { 48 this.objectName = objectName; 49 } 50 51 public String getObjectName() { 52 return this.objectName; 53 } 54 55 public void setLog(boolean log) { 56 this.log = log; 57 } 58 59 public boolean isLog() { 60 return log; 61 } 62 63 public void setLogFile(String logFile) { 64 this.logFile = logFile; 65 } 66 67 public String getLogFile() { 68 return logFile; 69 } 70 71 public void setPersistPolicy(String persistPolicy) { 72 this.persistPolicy = persistPolicy; 73 } 74 75 public String getPersistPolicy() { 76 return persistPolicy; 77 } 78 79 public void setPersistPeriod(int persistPeriod) { 80 this.persistPeriod = persistPeriod; 81 } 82 83 public int getPersistPeriod() { 84 return persistPeriod; 85 } 86 87 public void setPersistName(String persistName) { 88 this.persistName = persistName; 89 } 90 91 public String getPersistName() { 92 return persistName; 93 } 94 95 public void setPersistLocation(String persistLocation) { 96 this.persistLocation = persistLocation; 97 } 98 99 public String getPersistLocation() { 100 return persistLocation; 101 } 102 103 } 104 | Popular Tags |