zoukankan      html  css  js  c++  java
  • jvm gc 日志详细信息的格式化(二)

    一:简单测试实例

        @Test
        public void fullGcStr() {
            String str = "2018-02-01T17:53:13.469+0800: 0.628: [Full GC (Ergonomics) [PSYoungGen: 6383K->0K(9216K)] [ParOldGen: 16370K->1010K(20480K)] 22753K->1010K(29696K), [Metaspace: 2933K->2933K(1056768K)], 0.0084170 secs] [Times: user=0.05 sys=0.00, real=0.01 secs]";
            int index = str.indexOf("Full GC");
    
            String time = null;
            String relativeTime = null;
            String type = null;
            String reason = null;
            Integer youngGarbageBefore = null;
            Integer youngGarbageAfter = null;
            Integer youngSum = null;
            Integer oldGarbageBefore = null;
            Integer oldGarbageAfter = null;
            Integer oldSum = null;
            Integer garbageBefore = null;
            Integer garbageAfter = null;
            Integer metaspace1 = null;
            Integer metaspace2 = null;
            Integer metaspaceSize = null;
            Integer sum = null;
            Double timeConsume = null;
            Double user = null;
            Double sys = null;
            Double real = null;
            JSONObject jsonObject = null;
            if (index != -1) {
                jsonObject = new JSONObject();
                jsonObject.put("str", str);
                //time
                index = str.indexOf(": ");
                time = str.substring(0, index);
                jsonObject.put("time", time);
                str = str.substring(index + 2);
                //relativeTime
                index = str.indexOf(": ");
                relativeTime = str.substring(0, index);
                jsonObject.put("relativeTime", relativeTime);
                str = str.substring(index + 2);
                //type
                index = str.indexOf("Full GC");
                type = str.substring(index, index + 7);
                jsonObject.put("type", type);
                str = str.substring(index + 7 + 2);
                //reason
                index = str.indexOf(")");
                reason = str.substring(0, index);
                jsonObject.put("reason", reason);
                str = str.substring(index + 2);
                //youngGarbageBefore
                index = str.indexOf("PSYoungGen: ");
                str = str.substring(index + "PSYoungGen: ".length());
                index = str.indexOf("K");
                youngGarbageBefore = Integer.parseInt(str.substring(0, index));
                jsonObject.put("youngGarbageBefore", youngGarbageBefore);
                str = str.substring(index + 3);
                //youngGarbageAfter
                index = str.indexOf("K");
                youngGarbageAfter = Integer.parseInt(str.substring(0, index));
                jsonObject.put("youngGarbageAfter", youngGarbageAfter);
                str = str.substring(index + 2);
                //youngGarbageSum
                index = str.indexOf("K");
                youngSum = Integer.parseInt(str.substring(0, index));
                jsonObject.put("youngSum", youngSum);
                //oldGarbageBefore
                index = str.indexOf("ParOldGen: ");
                str = str.substring(index + "ParOldGen: ".length());
                index = str.indexOf("K");
                oldGarbageBefore = Integer.parseInt(str.substring(0, index));
                jsonObject.put("oldGarbageBefore", oldGarbageBefore);
                str = str.substring(index + 3);
                //oldGarbageAfter
                index = str.indexOf("K");
                oldGarbageAfter = Integer.parseInt(str.substring(0, index));
                jsonObject.put("oldGarbageAfter", oldGarbageAfter);
                str = str.substring(index + 2);
                //oldGarbageSum
                index = str.indexOf("K");
                oldSum = Integer.parseInt(str.substring(0, index));
                jsonObject.put("oldSum", oldSum);
                str = str.substring(index + 4);
                //garbageBefore
                index = str.indexOf("K");
                garbageBefore = Integer.parseInt(str.substring(0, index));
                jsonObject.put("garbageBefore", garbageBefore);
                str = str.substring(index + 3);
                //garbageAfter
                index = str.indexOf("K");
                garbageAfter = Integer.parseInt(str.substring(0, index));
                jsonObject.put("garbageAfter", garbageAfter);
                str = str.substring(index + 2);
                //garbageAfter
                index = str.indexOf("K");
                sum = Integer.parseInt(str.substring(0, index));
                jsonObject.put("sum", sum);
                str = str.substring(index + 5);
                //metaspace1
                index = str.indexOf("Metaspace: ");
                str = str.substring(index + "Metaspace: ".length());
                index = str.indexOf("K");
                metaspace1 = Integer.parseInt(str.substring(0, index));
                jsonObject.put("metaspace1", metaspace1);
                str = str.substring(index + 3);
                //metaspace2
                index = str.indexOf("K");
                metaspace2 = Integer.parseInt(str.substring(0, index));
                jsonObject.put("metaspace2", metaspace2);
                str = str.substring(index + 2);
                //metaspaceSize
                index = str.indexOf("K");
                metaspaceSize = Integer.parseInt(str.substring(0, index));
                jsonObject.put("metaspaceSize", metaspaceSize);
                str = str.substring(index + 5);
                //timeConsume
                index = str.indexOf(" secs]");
                timeConsume = Double.parseDouble(str.substring(0, index));
                jsonObject.put("timeConsume", timeConsume);
                //user
                index = str.indexOf("Times: ");
                str = str.substring(index + "Times: ".length());
                index = str.indexOf("user=");
                str = str.substring(index + "user=".length());
                index = str.indexOf(" sys=");
                user = Double.parseDouble(str.substring(0, index));
                jsonObject.put("user", user);
                str = str.substring(index + 5);
                //sys
                index = str.indexOf(", real=");
                sys = Double.parseDouble(str.substring(0, index));
                jsonObject.put("sys", sys);
                str = str.substring(index + 7);
                //real
                index = str.indexOf(" secs]");
                real = Double.parseDouble(str.substring(0, index));
                jsonObject.put("real", real);
                System.out.println("full gc json str: " + jsonObject.toJSONString());
            }
        }

    二:转成JSONObject的时候,需要maven引用如下jar包

    <dependency>
       <groupId>com.alibaba</groupId>
       <artifactId>fastjson</artifactId>
       <version>${fastjson.version}</version>
    </dependency>

    三:转成实体类

    package com.tomato.infrastructure.kafka.util;
    
    import com.tomato.infrastructure.kafka.domain.GcFullData;
    import org.springframework.stereotype.Component;
    
    import java.math.BigDecimal;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    
    /**
     * gc日志格式化帮助类
     * <p>
     * Created by ljp on 2018/1/30.
     */
    @Component
    public class GcLogConvertUtils {
    
        public static GcFullData gcFullDataConvert(String fullGcStr) {
            int index = fullGcStr.indexOf("Full GC");
    
            GcFullData gcFullData = null;
            if (index != -1) {
                gcFullData = new GcFullData();
                gcFullData.setOriginalData(fullGcStr);
                //time
                index = fullGcStr.indexOf(": ");
                gcFullData.setTime(formatTime(fullGcStr.substring(0, 19)));
                fullGcStr = fullGcStr.substring(index + 2);
                //relativeTime
                index = fullGcStr.indexOf(": ");
                gcFullData.setRelativeTime(new BigDecimal(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 2);
                //type
                index = fullGcStr.indexOf("Full GC");
                gcFullData.setType(fullGcStr.substring(index, index + 7));
                fullGcStr = fullGcStr.substring(index + 7 + 2);
                //reason
                index = fullGcStr.indexOf(")");
                gcFullData.setReason(fullGcStr.substring(0, index));
                fullGcStr = fullGcStr.substring(index + 2);
                //youngGarbageBefore
                index = fullGcStr.indexOf("PSYoungGen: ");
                fullGcStr = fullGcStr.substring(index + "PSYoungGen: ".length());
                index = fullGcStr.indexOf("K");
                gcFullData.setYoungGarbageBefore(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 3);
                //youngGarbageAfter
                index = fullGcStr.indexOf("K");
                gcFullData.setYoungGarbageAfter(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 2);
                //youngGarbageSum
                index = fullGcStr.indexOf("K");
                gcFullData.setYoungSum(Integer.parseInt(fullGcStr.substring(0, index)));
                //oldGarbageBefore
                index = fullGcStr.indexOf("ParOldGen: ");
                fullGcStr = fullGcStr.substring(index + "ParOldGen: ".length());
                index = fullGcStr.indexOf("K");
                gcFullData.setOldGarbageBefore(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 3);
                //oldGarbageAfter
                index = fullGcStr.indexOf("K");
                gcFullData.setOldGarbageAfter(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 2);
                //oldGarbageSum
                index = fullGcStr.indexOf("K");
                gcFullData.setOldSum(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 4);
                //garbageBefore
                index = fullGcStr.indexOf("K");
                gcFullData.setGarbageBefore(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 3);
                //garbageAfter
                index = fullGcStr.indexOf("K");
                gcFullData.setGarbageAfter(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 2);
                //sum
                index = fullGcStr.indexOf("K");
                gcFullData.setSum(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 5);
                //metaspace1
                index = fullGcStr.indexOf("Metaspace: ");
                fullGcStr = fullGcStr.substring(index + "Metaspace: ".length());
                index = fullGcStr.indexOf("K");
                gcFullData.setMetaspace1(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 3);
                //metaspace2
                index = fullGcStr.indexOf("K");
                gcFullData.setMetaspace2(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 2);
                //metaspaceSize
                index = fullGcStr.indexOf("K");
                gcFullData.setMetaspacesize(Integer.parseInt(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 5);
                //timeConsume
                index = fullGcStr.indexOf(" secs]");
                gcFullData.setTimeConsume(new BigDecimal(fullGcStr.substring(0, index)));
                //user
                index = fullGcStr.indexOf("Times: ");
                fullGcStr = fullGcStr.substring(index + "Times: ".length());
                index = fullGcStr.indexOf("user=");
                fullGcStr = fullGcStr.substring(index + "user=".length());
                index = fullGcStr.indexOf(" sys=");
                gcFullData.setUser(new BigDecimal(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 5);
                //sys
                index = fullGcStr.indexOf(", real=");
                gcFullData.setSys(new BigDecimal(fullGcStr.substring(0, index)));
                fullGcStr = fullGcStr.substring(index + 7);
                //real
                index = fullGcStr.indexOf(" secs]");
                gcFullData.setReal(new BigDecimal(fullGcStr.substring(0, index)));
            }
            return gcFullData;
        }
    
        /**
         * 日期String to Date
         *
         * @param time
         * @return
         */
        private static Date formatTime(String time) {
            DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
            try {
                return df.parse(time);
            } catch (ParseException e) {
                throw new RuntimeException(e);
            }
        }
    
    }
    package com.tomato.infrastructure.kafka.domain;
    
    import java.math.BigDecimal;
    import java.util.Date;
    
    public class GcFullData {
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.id
         *
         * @mbg.generated
         */
        private Integer id;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.time
         *
         * @mbg.generated
         */
        private Date time;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.reason
         *
         * @mbg.generated
         */
        private String reason;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.user
         *
         * @mbg.generated
         */
        private BigDecimal user;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.sys
         *
         * @mbg.generated
         */
        private BigDecimal sys;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.real
         *
         * @mbg.generated
         */
        private BigDecimal real;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.old_garbage_before
         *
         * @mbg.generated
         */
        private Integer oldGarbageBefore;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.old_garbage_after
         *
         * @mbg.generated
         */
        private Integer oldGarbageAfter;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.old_sum
         *
         * @mbg.generated
         */
        private Integer oldSum;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.young_garbage_before
         *
         * @mbg.generated
         */
        private Integer youngGarbageBefore;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.young_garbage_after
         *
         * @mbg.generated
         */
        private Integer youngGarbageAfter;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.young_sum
         *
         * @mbg.generated
         */
        private Integer youngSum;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.time_consume
         *
         * @mbg.generated
         */
        private BigDecimal timeConsume;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.garbage_before
         *
         * @mbg.generated
         */
        private Integer garbageBefore;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.garbage_after
         *
         * @mbg.generated
         */
        private Integer garbageAfter;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.sum
         *
         * @mbg.generated
         */
        private Integer sum;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.type
         *
         * @mbg.generated
         */
        private String type;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.relative_time
         *
         * @mbg.generated
         */
        private BigDecimal relativeTime;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.metaspace1
         *
         * @mbg.generated
         */
        private Integer metaspace1;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.metaspace2
         *
         * @mbg.generated
         */
        private Integer metaspace2;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.metaspaceSize
         *
         * @mbg.generated
         */
        private Integer metaspacesize;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.original_data
         *
         * @mbg.generated
         */
        private String originalData;
    
        /**
         *
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database column t_gc_full_data.create_time
         *
         * @mbg.generated
         */
        private Date createTime;
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.id
         *
         * @return the value of t_gc_full_data.id
         *
         * @mbg.generated
         */
        public Integer getId() {
            return id;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.id
         *
         * @param id the value for t_gc_full_data.id
         *
         * @mbg.generated
         */
        public void setId(Integer id) {
            this.id = id;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.time
         *
         * @return the value of t_gc_full_data.time
         *
         * @mbg.generated
         */
        public Date getTime() {
            return time;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.time
         *
         * @param time the value for t_gc_full_data.time
         *
         * @mbg.generated
         */
        public void setTime(Date time) {
            this.time = time;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.reason
         *
         * @return the value of t_gc_full_data.reason
         *
         * @mbg.generated
         */
        public String getReason() {
            return reason;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.reason
         *
         * @param reason the value for t_gc_full_data.reason
         *
         * @mbg.generated
         */
        public void setReason(String reason) {
            this.reason = reason == null ? null : reason.trim();
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.user
         *
         * @return the value of t_gc_full_data.user
         *
         * @mbg.generated
         */
        public BigDecimal getUser() {
            return user;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.user
         *
         * @param user the value for t_gc_full_data.user
         *
         * @mbg.generated
         */
        public void setUser(BigDecimal user) {
            this.user = user;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.sys
         *
         * @return the value of t_gc_full_data.sys
         *
         * @mbg.generated
         */
        public BigDecimal getSys() {
            return sys;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.sys
         *
         * @param sys the value for t_gc_full_data.sys
         *
         * @mbg.generated
         */
        public void setSys(BigDecimal sys) {
            this.sys = sys;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.real
         *
         * @return the value of t_gc_full_data.real
         *
         * @mbg.generated
         */
        public BigDecimal getReal() {
            return real;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.real
         *
         * @param real the value for t_gc_full_data.real
         *
         * @mbg.generated
         */
        public void setReal(BigDecimal real) {
            this.real = real;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.old_garbage_before
         *
         * @return the value of t_gc_full_data.old_garbage_before
         *
         * @mbg.generated
         */
        public Integer getOldGarbageBefore() {
            return oldGarbageBefore;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.old_garbage_before
         *
         * @param oldGarbageBefore the value for t_gc_full_data.old_garbage_before
         *
         * @mbg.generated
         */
        public void setOldGarbageBefore(Integer oldGarbageBefore) {
            this.oldGarbageBefore = oldGarbageBefore;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.old_garbage_after
         *
         * @return the value of t_gc_full_data.old_garbage_after
         *
         * @mbg.generated
         */
        public Integer getOldGarbageAfter() {
            return oldGarbageAfter;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.old_garbage_after
         *
         * @param oldGarbageAfter the value for t_gc_full_data.old_garbage_after
         *
         * @mbg.generated
         */
        public void setOldGarbageAfter(Integer oldGarbageAfter) {
            this.oldGarbageAfter = oldGarbageAfter;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.old_sum
         *
         * @return the value of t_gc_full_data.old_sum
         *
         * @mbg.generated
         */
        public Integer getOldSum() {
            return oldSum;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.old_sum
         *
         * @param oldSum the value for t_gc_full_data.old_sum
         *
         * @mbg.generated
         */
        public void setOldSum(Integer oldSum) {
            this.oldSum = oldSum;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.young_garbage_before
         *
         * @return the value of t_gc_full_data.young_garbage_before
         *
         * @mbg.generated
         */
        public Integer getYoungGarbageBefore() {
            return youngGarbageBefore;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.young_garbage_before
         *
         * @param youngGarbageBefore the value for t_gc_full_data.young_garbage_before
         *
         * @mbg.generated
         */
        public void setYoungGarbageBefore(Integer youngGarbageBefore) {
            this.youngGarbageBefore = youngGarbageBefore;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.young_garbage_after
         *
         * @return the value of t_gc_full_data.young_garbage_after
         *
         * @mbg.generated
         */
        public Integer getYoungGarbageAfter() {
            return youngGarbageAfter;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.young_garbage_after
         *
         * @param youngGarbageAfter the value for t_gc_full_data.young_garbage_after
         *
         * @mbg.generated
         */
        public void setYoungGarbageAfter(Integer youngGarbageAfter) {
            this.youngGarbageAfter = youngGarbageAfter;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.young_sum
         *
         * @return the value of t_gc_full_data.young_sum
         *
         * @mbg.generated
         */
        public Integer getYoungSum() {
            return youngSum;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.young_sum
         *
         * @param youngSum the value for t_gc_full_data.young_sum
         *
         * @mbg.generated
         */
        public void setYoungSum(Integer youngSum) {
            this.youngSum = youngSum;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.time_consume
         *
         * @return the value of t_gc_full_data.time_consume
         *
         * @mbg.generated
         */
        public BigDecimal getTimeConsume() {
            return timeConsume;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.time_consume
         *
         * @param timeConsume the value for t_gc_full_data.time_consume
         *
         * @mbg.generated
         */
        public void setTimeConsume(BigDecimal timeConsume) {
            this.timeConsume = timeConsume;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.garbage_before
         *
         * @return the value of t_gc_full_data.garbage_before
         *
         * @mbg.generated
         */
        public Integer getGarbageBefore() {
            return garbageBefore;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.garbage_before
         *
         * @param garbageBefore the value for t_gc_full_data.garbage_before
         *
         * @mbg.generated
         */
        public void setGarbageBefore(Integer garbageBefore) {
            this.garbageBefore = garbageBefore;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.garbage_after
         *
         * @return the value of t_gc_full_data.garbage_after
         *
         * @mbg.generated
         */
        public Integer getGarbageAfter() {
            return garbageAfter;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.garbage_after
         *
         * @param garbageAfter the value for t_gc_full_data.garbage_after
         *
         * @mbg.generated
         */
        public void setGarbageAfter(Integer garbageAfter) {
            this.garbageAfter = garbageAfter;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.sum
         *
         * @return the value of t_gc_full_data.sum
         *
         * @mbg.generated
         */
        public Integer getSum() {
            return sum;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.sum
         *
         * @param sum the value for t_gc_full_data.sum
         *
         * @mbg.generated
         */
        public void setSum(Integer sum) {
            this.sum = sum;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.type
         *
         * @return the value of t_gc_full_data.type
         *
         * @mbg.generated
         */
        public String getType() {
            return type;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.type
         *
         * @param type the value for t_gc_full_data.type
         *
         * @mbg.generated
         */
        public void setType(String type) {
            this.type = type == null ? null : type.trim();
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.relative_time
         *
         * @return the value of t_gc_full_data.relative_time
         *
         * @mbg.generated
         */
        public BigDecimal getRelativeTime() {
            return relativeTime;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.relative_time
         *
         * @param relativeTime the value for t_gc_full_data.relative_time
         *
         * @mbg.generated
         */
        public void setRelativeTime(BigDecimal relativeTime) {
            this.relativeTime = relativeTime;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.metaspace1
         *
         * @return the value of t_gc_full_data.metaspace1
         *
         * @mbg.generated
         */
        public Integer getMetaspace1() {
            return metaspace1;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.metaspace1
         *
         * @param metaspace1 the value for t_gc_full_data.metaspace1
         *
         * @mbg.generated
         */
        public void setMetaspace1(Integer metaspace1) {
            this.metaspace1 = metaspace1;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.metaspace2
         *
         * @return the value of t_gc_full_data.metaspace2
         *
         * @mbg.generated
         */
        public Integer getMetaspace2() {
            return metaspace2;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.metaspace2
         *
         * @param metaspace2 the value for t_gc_full_data.metaspace2
         *
         * @mbg.generated
         */
        public void setMetaspace2(Integer metaspace2) {
            this.metaspace2 = metaspace2;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.metaspaceSize
         *
         * @return the value of t_gc_full_data.metaspaceSize
         *
         * @mbg.generated
         */
        public Integer getMetaspacesize() {
            return metaspacesize;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.metaspaceSize
         *
         * @param metaspacesize the value for t_gc_full_data.metaspaceSize
         *
         * @mbg.generated
         */
        public void setMetaspacesize(Integer metaspacesize) {
            this.metaspacesize = metaspacesize;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.original_data
         *
         * @return the value of t_gc_full_data.original_data
         *
         * @mbg.generated
         */
        public String getOriginalData() {
            return originalData;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.original_data
         *
         * @param originalData the value for t_gc_full_data.original_data
         *
         * @mbg.generated
         */
        public void setOriginalData(String originalData) {
            this.originalData = originalData == null ? null : originalData.trim();
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method returns the value of the database column t_gc_full_data.create_time
         *
         * @return the value of t_gc_full_data.create_time
         *
         * @mbg.generated
         */
        public Date getCreateTime() {
            return createTime;
        }
    
        /**
         * This method was generated by MyBatis Generator.
         * This method sets the value of the database column t_gc_full_data.create_time
         *
         * @param createTime the value for t_gc_full_data.create_time
         *
         * @mbg.generated
         */
        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
        }
    }
    
    
    
     
  • 相关阅读:
    BadUSB 利用
    java 将函数作为参数传递
    odoo12 修行提升篇之 常用的高阶函数 (二)
    odoo12 修行提升篇之 异步定时任务 (一)
    odoo12 修行基础篇之 利用kanban做分析 点击跳转分析模型列表 (九)
    odoo12 修行基础篇之 kanban (八)
    odoo12 修行基础篇之 记录批处理 (七)
    odoo12 修行基础篇之 列表的筛选和分组 (六)
    odoo12 修行基础篇之 添加记录编码 (五)
    odoo12 修行基础篇之 添加工作流和操作记录 (四)
  • 原文地址:https://www.cnblogs.com/blackmanbali/p/8403803.html
Copyright © 2011-2022 走看看