Coverage Report - org.kuali.maven.wagon.SessionTracker
 
Classes in this File Line Coverage Branch Coverage Complexity
SessionTracker
0%
0/35
0%
0/2
1.105
 
 1  
 package org.kuali.maven.wagon;
 2  
 
 3  
 import java.util.ArrayList;
 4  
 import java.util.List;
 5  
 
 6  
 import org.apache.maven.wagon.events.SessionEvent;
 7  
 
 8  
 /**
 9  
  * Holds timing and byte count information about a transfer operation
 10  
  * 
 11  
  * @author Jeff Caddel
 12  
  * 
 13  
  * @since May 27, 2010 6:51:19 PM
 14  
  */
 15  0
 public class SessionTracker {
 16  0
         SimpleFormatter formatter = new SimpleFormatter();
 17  0
         List<TransferTracker> transfers = new ArrayList<TransferTracker>();
 18  0
         List<SessionEvent> sessionEvents = new ArrayList<SessionEvent>();
 19  
         long opened;
 20  
         long loggedIn;
 21  
         long disconnecting;
 22  
         long loggedOff;
 23  
         long disconnected;
 24  
 
 25  
         public TransferTracker getCurrentTransfer() {
 26  0
                 if (transfers.size() == 0) {
 27  0
                         return null;
 28  
                 } else {
 29  0
                         return transfers.get(transfers.size() - 1);
 30  
                 }
 31  
         }
 32  
 
 33  
         public void addSessionEvent(SessionEvent sessionEvent) {
 34  0
                 sessionEvents.add(sessionEvent);
 35  0
         }
 36  
 
 37  
         public void addTransfer(TransferTracker transfer) {
 38  0
                 transfers.add(transfer);
 39  0
         }
 40  
 
 41  
         public List<TransferTracker> getTransfers() {
 42  0
                 return transfers;
 43  
         }
 44  
 
 45  
         public void setTransfers(List<TransferTracker> transfers) {
 46  0
                 this.transfers = transfers;
 47  0
         }
 48  
 
 49  
         public List<SessionEvent> getSessionEvents() {
 50  0
                 return sessionEvents;
 51  
         }
 52  
 
 53  
         public void setSessionEvents(List<SessionEvent> sessionEvents) {
 54  0
                 this.sessionEvents = sessionEvents;
 55  0
         }
 56  
 
 57  
         public SimpleFormatter getFormatter() {
 58  0
                 return formatter;
 59  
         }
 60  
 
 61  
         public void setFormatter(SimpleFormatter formatter) {
 62  0
                 this.formatter = formatter;
 63  0
         }
 64  
 
 65  
         public long getOpened() {
 66  0
                 return opened;
 67  
         }
 68  
 
 69  
         public void setOpened(long opened) {
 70  0
                 this.opened = opened;
 71  0
         }
 72  
 
 73  
         public long getLoggedIn() {
 74  0
                 return loggedIn;
 75  
         }
 76  
 
 77  
         public void setLoggedIn(long loggedIn) {
 78  0
                 this.loggedIn = loggedIn;
 79  0
         }
 80  
 
 81  
         public long getDisconnecting() {
 82  0
                 return disconnecting;
 83  
         }
 84  
 
 85  
         public void setDisconnecting(long disconnecting) {
 86  0
                 this.disconnecting = disconnecting;
 87  0
         }
 88  
 
 89  
         public long getLoggedOff() {
 90  0
                 return loggedOff;
 91  
         }
 92  
 
 93  
         public void setLoggedOff(long loggedOff) {
 94  0
                 this.loggedOff = loggedOff;
 95  0
         }
 96  
 
 97  
         public long getDisconnected() {
 98  0
                 return disconnected;
 99  
         }
 100  
 
 101  
         public void setDisconnected(long disconnected) {
 102  0
                 this.disconnected = disconnected;
 103  0
         }
 104  
 
 105  
 }