Top Description Inners Fields Constructors Methods
org.eclipse.jgit.internal.fsck

public Class FsckError

extends Object
Class Inheritance
Imports
java.util.HashSet, .Set, org.eclipse.jgit.annotations.Nullable, org.eclipse.jgit.errors.CorruptPackIndexException, .CorruptPackIndexException.ErrorType, org.eclipse.jgit.lib.ObjectChecker, .ObjectId

Holds all fsck errors of a git repository.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FsckError.CorruptIndex

Represents a corrupt pack index file.

public static class
FsckError.CorruptObject

Represents a corrupt object.

Field Summary

Modifier and TypeField and Description
private final Set<FsckError.CorruptIndex>
private final Set<FsckError.CorruptObject>
private final Set<ObjectId>
private final Set<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Set<FsckError.CorruptIndex>

Returns:

corrupt index files associated with the packs
getCorruptIndices
()

Get corrupt index files associated with the packs

public Set<FsckError.CorruptObject>

Returns:

corrupt objects from all pack files
getCorruptObjects
()

Get corrupt objects from all pack files

public Set<ObjectId>

Returns:

missing objects that should present in pack files
getMissingObjects
()

Get missing objects that should present in pack files

public Set<String>

Returns:

refs/heads/* which point to non-commit object
getNonCommitHeads
()

Get refs/heads/* which point to non-commit object

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

corruptIndicesback to summary
private final Set<FsckError.CorruptIndex> corruptIndices
corruptObjectsback to summary
private final Set<FsckError.CorruptObject> corruptObjects
missingObjectsback to summary
private final Set<ObjectId> missingObjects
nonCommitHeadsback to summary
private final Set<String> nonCommitHeads

Constructor Detail

FsckErrorback to summary
public FsckError()

Method Detail

getCorruptIndicesback to summary
public Set<FsckError.CorruptIndex> getCorruptIndices()

Get corrupt index files associated with the packs

Returns:Set<FsckError.CorruptIndex>

corrupt index files associated with the packs

getCorruptObjectsback to summary
public Set<FsckError.CorruptObject> getCorruptObjects()

Get corrupt objects from all pack files

Returns:Set<FsckError.CorruptObject>

corrupt objects from all pack files

getMissingObjectsback to summary
public Set<ObjectId> getMissingObjects()

Get missing objects that should present in pack files

Returns:Set<ObjectId>

missing objects that should present in pack files

getNonCommitHeadsback to summary
public Set<String> getNonCommitHeads()

Get refs/heads/* which point to non-commit object

Returns:Set<String>

refs/heads/* which point to non-commit object

org.eclipse.jgit.internal.fsck back to summary

public Class FsckError.CorruptIndex

extends Object
Class Inheritance

Represents a corrupt pack index file.

Field Summary

Modifier and TypeField and Description
pack-priv CorruptPackIndexException.ErrorType
pack-priv String

Constructor Summary

AccessConstructor and Description
public
CorruptIndex(String
the file name of the pack index.
fileName
,
CorruptPackIndexException.ErrorType
the type of error as reported in CorruptPackIndexException.
errorType
)

Method Summary

Modifier and TypeMethod and Description
public CorruptPackIndexException.ErrorType

Returns:

the error type of the corruption.
getErrorType
()

Get error type

public String

Returns:

the file name of the index file.
getFileName
()

Get file name

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorTypeback to summary
pack-priv CorruptPackIndexException.ErrorType errorType
fileNameback to summary
pack-priv String fileName

Constructor Detail

CorruptIndexback to summary
public CorruptIndex(String fileName, CorruptPackIndexException.ErrorType errorType)
Parameters
fileName:String

the file name of the pack index.

errorType:CorruptPackIndexException.ErrorType

the type of error as reported in CorruptPackIndexException.

Method Detail

getErrorTypeback to summary
public CorruptPackIndexException.ErrorType getErrorType()

Get error type

Returns:CorruptPackIndexException.ErrorType

the error type of the corruption.

getFileNameback to summary
public String getFileName()

Get file name

Returns:String

the file name of the index file.

org.eclipse.jgit.internal.fsck back to summary

public Class FsckError.CorruptObject

extends Object
Class Inheritance

Represents a corrupt object.

Field Summary

Modifier and TypeField and Description
pack-priv final ObjectChecker.ErrorType
pack-priv final ObjectId
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
CorruptObject(ObjectId
the object identifier.
id
,
int
type of the object.
type
,
ObjectChecker.ErrorType
kind of error
errorType
)

Method Summary

Modifier and TypeMethod and Description
public ObjectChecker.ErrorType

Returns:

error type of the corruption.
getErrorType
()

Get error type

public ObjectId

Returns:

identifier of the object.
getId
()

Get Id

public int

Returns:

type of the object.
getType
()

Get type

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorTypeback to summary
pack-priv final ObjectChecker.ErrorType errorType
Annotations
@Nullable
idback to summary
pack-priv final ObjectId id
typeback to summary
pack-priv final int type

Constructor Detail

CorruptObjectback to summary
public CorruptObject(ObjectId id, int type, ObjectChecker.ErrorType errorType)
Parameters
id:ObjectId

the object identifier.

type:int

type of the object.

errorType:ObjectChecker.ErrorType

kind of error

Method Detail

getErrorTypeback to summary
public ObjectChecker.ErrorType getErrorType()

Get error type

Returns:ObjectChecker.ErrorType

error type of the corruption.

Annotations
@Nullable
getIdback to summary
public ObjectId getId()

Get Id

Returns:ObjectId

identifier of the object.

getTypeback to summary
public int getType()

Get type

Returns:int

type of the object.