Class Remote
java.lang.Object
org.apache.maven.buildcache.xml.config.Remote
- All Implemented Interfaces:
Serializable
Class Remote.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the repository id used to find authentication / mirror information in maven settings, default to 'cache'.Get the transport to use, currently, only 'resolver' is supported.getUrl()Get address of remote cache.booleanGet the enabled field.booleanGet save output to remote cache.voidsetEnabled(boolean enabled) Set the enabled field.voidSet the repository id used to find authentication / mirror information in maven settings, default to 'cache'.voidsetSaveToRemote(boolean saveToRemote) Set save output to remote cache.voidsetTransport(String transport) Set the transport to use, currently, only 'resolver' is supported.voidSet address of remote cache.
-
Constructor Details
-
Remote
public Remote()
-
-
Method Details
-
getId
Get the repository id used to find authentication / mirror information in maven settings, default to 'cache'.- Returns:
- String
-
getTransport
Get the transport to use, currently, only 'resolver' is supported.- Returns:
- String
-
getUrl
Get address of remote cache.- Returns:
- String
-
isEnabled
public boolean isEnabled()Get the enabled field.- Returns:
- boolean
-
isSaveToRemote
public boolean isSaveToRemote()Get save output to remote cache. Recommended to enable on CI agents only.- Returns:
- boolean
-
setEnabled
public void setEnabled(boolean enabled) Set the enabled field.- Parameters:
enabled- a enabled object.
-
setId
Set the repository id used to find authentication / mirror information in maven settings, default to 'cache'.- Parameters:
id- a id object.
-
setSaveToRemote
public void setSaveToRemote(boolean saveToRemote) Set save output to remote cache. Recommended to enable on CI agents only.- Parameters:
saveToRemote- a saveToRemote object.
-
setTransport
Set the transport to use, currently, only 'resolver' is supported.- Parameters:
transport- a transport object.
-
setUrl
Set address of remote cache.- Parameters:
url- a url object.
-