Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   =================== DO NOT EDIT THIS FILE ====================
   Generated by Modello 1.4.1 on 2012-04-27 06:11:26,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

Details about the repository.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "repository-meta-resource" )
 public class RepositoryMetaResource
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
The repository id.
 
     private String id;

    
The repository type.
 
     private String repoType;

    
The repository format.
 
     private String format;

    
The size on disk the repository consumes.
 
     private long sizeOnDisk = 0L;

    
The size available on disk where the repository is located.
 
     private long freeSpaceOnDisk = 0L;

    
The number of files held in the repository.
 
     private long fileCountInRepository = 0L;

    
The number of requested paths that are currently in the not found cache.
 
     private long notFoundCacheSize = 0L;

    
The number of checks against the not found cache that have succeeded (and thus saved a remote check).
 
     private long notFoundCacheHits = 0L;

    
The number of checks against the not found cache that have failed (and thus required a remote check).
 
     private long notFoundCacheMisses = 0L;

    
The number of errors reported by local storage.
 
     private int localStorageErrorsCount = 0;

    
The number of errors reported by remote storage.
 
     private int remoteStorageErrorsCount = 0;

    
Field groups.
 
     @javax.xml.bind.annotation.XmlElementWrapper( name = "groups" )
     @javax.xml.bind.annotation.XmlElement( name = "string" )
     private java.util.List<Stringgroups;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addGroup.

Parameters:
string
    public void addGroupString string )
    {
        getGroups().addstring );
    } //-- void addGroup( String )

    
Get the number of files held in the repository.

Returns:
long
    public long getFileCountInRepository()
    {
        return this.;
    } //-- long getFileCountInRepository()

    
Get the repository format.

Returns:
String
    public String getFormat()
    {
        return this.;
    } //-- String getFormat()

    
Get the size available on disk where the repository is located.

Returns:
long
    public long getFreeSpaceOnDisk()
    {
        return this.;
    } //-- long getFreeSpaceOnDisk()

    
Method getGroups.

Returns:
List
    public java.util.List<StringgetGroups()
    {
        if ( this. == null )
        {
            this. = new java.util.ArrayList<String>();
        }
        return this.;
    } //-- java.util.List<String> getGroups()

    
Get the repository id.

Returns:
String
    public String getId()
    {
        return this.;
    } //-- String getId()

    
Get the number of errors reported by local storage.

Returns:
int
    public int getLocalStorageErrorsCount()
    {
        return this.;
    } //-- int getLocalStorageErrorsCount()

    
Get the number of checks against the not found cache that have succeeded (and thus saved a remote check).

Returns:
long
    public long getNotFoundCacheHits()
    {
        return this.;
    } //-- long getNotFoundCacheHits()

    
Get the number of checks against the not found cache that have failed (and thus required a remote check).

Returns:
long
    public long getNotFoundCacheMisses()
    {
        return this.;
    } //-- long getNotFoundCacheMisses()

    
Get the number of requested paths that are currently in the not found cache.

Returns:
long
    public long getNotFoundCacheSize()
    {
        return this.;
    } //-- long getNotFoundCacheSize()

    
Get the number of errors reported by remote storage.

Returns:
int
    public int getRemoteStorageErrorsCount()
    {
        return this.;
    } //-- int getRemoteStorageErrorsCount()

    
Get the repository type.

Returns:
String
    public String getRepoType()
    {
        return this.;
    } //-- String getRepoType()

    
Get the size on disk the repository consumes.

Returns:
long
    public long getSizeOnDisk()
    {
        return this.;
    } //-- long getSizeOnDisk()

    
Method removeGroup.

Parameters:
string
    public void removeGroupString string )
    {
        getGroups().removestring );
    } //-- void removeGroup( String )

    
Set the number of files held in the repository.

Parameters:
fileCountInRepository
    public void setFileCountInRepositorylong fileCountInRepository )
    {
        this. = fileCountInRepository;
    } //-- void setFileCountInRepository( long )

    
Set the repository format.

Parameters:
format
    public void setFormatString format )
    {
        this. = format;
    } //-- void setFormat( String )

    
Set the size available on disk where the repository is located.

Parameters:
freeSpaceOnDisk
    public void setFreeSpaceOnDisklong freeSpaceOnDisk )
    {
        this. = freeSpaceOnDisk;
    } //-- void setFreeSpaceOnDisk( long )

    
Set list of repository groups that this repository is contained in.

Parameters:
groups
    public void setGroupsjava.util.List<Stringgroups )
    {
        this. = groups;
    } //-- void setGroups( java.util.List )

    
Set the repository id.

Parameters:
id
    public void setIdString id )
    {
        this. = id;
    } //-- void setId( String )

    
Set the number of errors reported by local storage.

Parameters:
localStorageErrorsCount
    public void setLocalStorageErrorsCountint localStorageErrorsCount )
    {
        this. = localStorageErrorsCount;
    } //-- void setLocalStorageErrorsCount( int )

    
Set the number of checks against the not found cache that have succeeded (and thus saved a remote check).

Parameters:
notFoundCacheHits
    public void setNotFoundCacheHitslong notFoundCacheHits )
    {
        this. = notFoundCacheHits;
    } //-- void setNotFoundCacheHits( long )

    
Set the number of checks against the not found cache that have failed (and thus required a remote check).

Parameters:
notFoundCacheMisses
    public void setNotFoundCacheMisseslong notFoundCacheMisses )
    {
        this. = notFoundCacheMisses;
    } //-- void setNotFoundCacheMisses( long )

    
Set the number of requested paths that are currently in the not found cache.

Parameters:
notFoundCacheSize
    public void setNotFoundCacheSizelong notFoundCacheSize )
    {
        this. = notFoundCacheSize;
    } //-- void setNotFoundCacheSize( long )

    
Set the number of errors reported by remote storage.

Parameters:
remoteStorageErrorsCount
    public void setRemoteStorageErrorsCountint remoteStorageErrorsCount )
    {
        this. = remoteStorageErrorsCount;
    } //-- void setRemoteStorageErrorsCount( int )

    
Set the repository type.

Parameters:
repoType
    public void setRepoTypeString repoType )
    {
        this. = repoType;
    } //-- void setRepoType( String )

    
Set the size on disk the repository consumes.

Parameters:
sizeOnDisk
    public void setSizeOnDisklong sizeOnDisk )
    {
        this. = sizeOnDisk;
    } //-- void setSizeOnDisk( long )
New to GrepCode? Check out our FAQ X