1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.jtm; 27 28 import javax.servlet.http.HttpServletRequest ; 29 30 import org.apache.struts.action.ActionErrors; 31 import org.apache.struts.action.ActionForm; 32 import org.apache.struts.action.ActionMapping; 33 34 38 public final class JtmServiceStatisticForm extends ActionForm { 39 40 private int currentTransactions = 0; 42 private int begunTransactions = 0; 43 private int commitedTransactions = 0; 44 private int rollBackedTransactions = 0; 45 private int expiredTransactions = 0; 46 public int getCurrentTransactions() { 48 return currentTransactions; 49 } 50 public int getBegunTransactions() { 51 return begunTransactions; 52 } 53 public int getCommitedTransactions() { 54 return commitedTransactions; 55 } 56 public int getRollBackedTransactions() { 57 return rollBackedTransactions; 58 } 59 public int getExpiredTransactions() { 60 return expiredTransactions; 61 } 62 public void setCurrentTransactions(int currentTransactions) { 63 this.currentTransactions = currentTransactions; 64 } 65 public void setBegunTransactions(int begunTransactions) { 66 this.begunTransactions = begunTransactions; 67 } 68 public void setCommitedTransactions(int commitedTransactions) { 69 this.commitedTransactions = commitedTransactions; 70 } 71 public void setRollBackedTransactions(int rollBackedTransactions) { 72 this.rollBackedTransactions = rollBackedTransactions; 73 } 74 public void setExpiredTransactions(int expiredTransactions) { 75 this.expiredTransactions = expiredTransactions; 76 } 77 79 85 public void reset(ActionMapping mapping, HttpServletRequest request) { 86 } 87 88 98 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 99 return new ActionErrors(); 100 } 101 } 102 | Popular Tags |