public class SyncStats extends Object implements Parcelable
SyncResult
and uses some of them to determine the
disposition of the sync. See SyncResult
for further dicussion on how the
SyncManager uses these values.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SyncStats> |
CREATOR |
long |
numAuthExceptions
The SyncAdapter was unable to authenticate the
android.accounts.Account
that was specified in the request. |
long |
numConflictDetectedExceptions
The SyncAdapter detected that there was an unrecoverable version conflict when it
attempted to update or delete a version of a resource on the server.
|
long |
numDeletes
Counter for tracking how many deletes were performed by the sync operation, as defined
by the SyncAdapter.
|
long |
numEntries
Counter for tracking how many entries were affected by the sync operation, as defined
by the SyncAdapter.
|
long |
numInserts
Counter for tracking how many inserts were performed by the sync operation, as defined
by the SyncAdapter.
|
long |
numIoExceptions
The SyncAdapter had a problem, most likely with the network connectivity or a timeout
while waiting for a network response.
|
long |
numParseExceptions
The SyncAdapter had a problem with the data it received from the server or the storage
later.
|
long |
numSkippedEntries
Counter for tracking how many entries, either from the server or the local store, were
ignored during the sync operation.
|
long |
numUpdates
Counter for tracking how many updates were performed by the sync operation, as defined
by the SyncAdapter.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset all the counters to 0.
|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public long numAuthExceptions
android.accounts.Account
that was specified in the request. The user needs to take some action to resolve
before a future request can expect to succeed. This is considered a hard error.public long numIoExceptions
public long numParseExceptions
public long numConflictDetectedExceptions
public long numInserts
public long numUpdates
public long numDeletes
public long numEntries
public long numSkippedEntries
public static final Parcelable.Creator<SyncStats> CREATOR
public SyncStats()
public SyncStats(Parcel in)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public void clear()
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.