1 /*
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 =================== DO NOT EDIT THIS FILE ====================
19 Generated by Modello 2.5.1,
20 any modifications will be overwritten.
21 ==============================================================
22 */
23
24 package org.apache.maven.buildcache.xml.config;
25
26 /**
27 * Class Local.
28 *
29 * @version $Revision$ $Date$
30 */
31 @SuppressWarnings( "all" )
32 public class Local
33 implements java.io.Serializable
34 {
35
36 //--------------------------/
37 //- Class/Member Variables -/
38 //--------------------------/
39
40 /**
41 * The base directory where the local cache is located.
42 * Defaults to {@code
43 * ~/.m2/build-cache/}.
44 */
45 private String location;
46
47 /**
48 * Maximum number of cached build per artifact in local cache.
49 * First created cache (the
50 * oldest) is evicted if breached.
51 */
52 private int maxBuildsCached = 3;
53
54
55 //-----------/
56 //- Methods -/
57 //-----------/
58
59 /**
60 * Get the base directory where the local cache is located.
61 * Defaults to {@code
62 * ~/.m2/build-cache/}.
63 *
64 * @return String
65 */
66 public String getLocation()
67 {
68 return this.location;
69 } //-- String getLocation()
70
71 /**
72 * Get maximum number of cached build per artifact in local
73 * cache. First created cache (the
74 * oldest) is evicted if breached.
75 *
76 * @return int
77 */
78 public int getMaxBuildsCached()
79 {
80 return this.maxBuildsCached;
81 } //-- int getMaxBuildsCached()
82
83 /**
84 * Set the base directory where the local cache is located.
85 * Defaults to {@code
86 * ~/.m2/build-cache/}.
87 *
88 * @param location a location object.
89 */
90 public void setLocation( String location )
91 {
92 this.location = location;
93 } //-- void setLocation( String )
94
95 /**
96 * Set maximum number of cached build per artifact in local
97 * cache. First created cache (the
98 * oldest) is evicted if breached.
99 *
100 * @param maxBuildsCached a maxBuildsCached object.
101 */
102 public void setMaxBuildsCached( int maxBuildsCached )
103 {
104 this.maxBuildsCached = maxBuildsCached;
105 } //-- void setMaxBuildsCached( int )
106
107 }