This project has retired. For details please refer to its Attic page.
NetworkConfiguration xref
View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.7,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.archiva.configuration;
7   
8   /**
9    * 
10   *         The network configuration for external http request to
11   * repositories.
12   *       
13   * 
14   * @version $Revision$ $Date$
15   */
16  @SuppressWarnings( "all" )
17  public class NetworkConfiguration
18      implements java.io.Serializable
19  {
20  
21        //--------------------------/
22       //- Class/Member Variables -/
23      //--------------------------/
24  
25      /**
26       * maximum total external http connections.
27       */
28      private int maxTotal = 30;
29  
30      /**
31       * maximum total external http connections per host.
32       */
33      private int maxTotalPerHost = 30;
34  
35      /**
36       * use or not http connection pooling default true.
37       */
38      private boolean usePooling = true;
39  
40  
41        //-----------/
42       //- Methods -/
43      //-----------/
44  
45      /**
46       * Get maximum total external http connections.
47       * 
48       * @return int
49       */
50      public int getMaxTotal()
51      {
52          return this.maxTotal;
53      } //-- int getMaxTotal()
54  
55      /**
56       * Get maximum total external http connections per host.
57       * 
58       * @return int
59       */
60      public int getMaxTotalPerHost()
61      {
62          return this.maxTotalPerHost;
63      } //-- int getMaxTotalPerHost()
64  
65      /**
66       * Get use or not http connection pooling default true.
67       * 
68       * @return boolean
69       */
70      public boolean isUsePooling()
71      {
72          return this.usePooling;
73      } //-- boolean isUsePooling()
74  
75      /**
76       * Set maximum total external http connections.
77       * 
78       * @param maxTotal
79       */
80      public void setMaxTotal( int maxTotal )
81      {
82          this.maxTotal = maxTotal;
83      } //-- void setMaxTotal( int )
84  
85      /**
86       * Set maximum total external http connections per host.
87       * 
88       * @param maxTotalPerHost
89       */
90      public void setMaxTotalPerHost( int maxTotalPerHost )
91      {
92          this.maxTotalPerHost = maxTotalPerHost;
93      } //-- void setMaxTotalPerHost( int )
94  
95      /**
96       * Set use or not http connection pooling default true.
97       * 
98       * @param usePooling
99       */
100     public void setUsePooling( boolean usePooling )
101     {
102         this.usePooling = usePooling;
103     } //-- void setUsePooling( boolean )
104 
105 }