public final class

OfflineODataSendStoreProgress

extends Object
java.lang.Object
   ↳ com.sap.cloud.mobile.odata.offline.OfflineODataSendStoreProgress

Class Overview

This class represents the progress of sending the offline store.

Summary

Public Constructors
OfflineODataSendStoreProgress(long currentFileBytesSent, long currentFileSize, int currentFileIndex, String currentFileName, int totalNumberOfFiles, long totalSize, long totalBytesSent)
Construct OfflineODataSendStoreProgress instance.
Public Methods
long getCurrentFileBytesSent()
Returns number of bytes sent to server for the current file.
int getCurrentFileIndex()
Returns index of the current file being sent (starting from 1)
String getCurrentFileName()
Returns name of the current file being sent.
long getCurrentFileSize()
Returns size of the current file in bytes.
long getTotalBytesSent()
Returns total number of bytes sent to server.
int getTotalNumberOfFiles()
Returns total number of files to send.
long getTotalSize()
Returns total size of files to send in bytes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OfflineODataSendStoreProgress (long currentFileBytesSent, long currentFileSize, int currentFileIndex, String currentFileName, int totalNumberOfFiles, long totalSize, long totalBytesSent)

Construct OfflineODataSendStoreProgress instance.

Parameters
currentFileBytesSent number of bytes sent to server for the current file.
currentFileSize size of the current file in bytes.
currentFileIndex index of the current file being sent (starting from 1).
currentFileName name of the current file being sent.
totalNumberOfFiles total number of files to send.
totalSize total size of files to send in bytes.
totalBytesSent total number of bytes sent to server.

Public Methods

public long getCurrentFileBytesSent ()

Returns number of bytes sent to server for the current file.

Returns
  • number of bytes sent to server for the current file.

public int getCurrentFileIndex ()

Returns index of the current file being sent (starting from 1)

Returns
  • index of the current file being sent (starting from 1).

public String getCurrentFileName ()

Returns name of the current file being sent.

Returns
  • name of the current file being sent.

public long getCurrentFileSize ()

Returns size of the current file in bytes.

Returns
  • size of the current file in bytes.

public long getTotalBytesSent ()

Returns total number of bytes sent to server.

Returns
  • total number of bytes sent to server.

public int getTotalNumberOfFiles ()

Returns total number of files to send.

Returns
  • total number of files to send..

public long getTotalSize ()

Returns total size of files to send in bytes.

Returns
  • total size of files to send in bytes.