public class ProgressEvent extends Object
このクラスはIIJ GIOストレージ&アナリシスサービスのクライアントで使用されてきました。
このクラスの登場によりレガシーとなったIIJ GIOストレージ&アナリシスサービス進捗イベント
ProgressEvent
は廃止予定となりました。
Modifier and Type | Field and Description |
---|---|
protected long |
bytesTransferred
一番後の進捗イベント以後、転送されたバイト数.
|
static int |
CANCELED_EVENT_CODE |
static int |
COMPLETED_EVENT_CODE |
protected int |
eventCode
このオブジェクトが表すイベントの種別を特定する一意のイベントコード
|
static int |
FAILED_EVENT_CODE |
static int |
PART_COMPLETED_EVENT_CODE |
static int |
PART_FAILED_EVENT_CODE |
static int |
PART_STARTED_EVENT_CODE |
static int |
PREPARING_EVENT_CODE |
static int |
RESET_EVENT_CODE |
static int |
STARTED_EVENT_CODE |
Constructor and Description |
---|
ProgressEvent(int eventCode,
long bytesTransferred) |
ProgressEvent(long bytesTransferred) |
Modifier and Type | Method and Description |
---|---|
long |
getBytesTransferred()
一番後の進捗イベント以後、転送されたバイト数を取得します。
|
int |
getEventCode()
このオブジェクトが表すイベントの種別を特定する一意のイベントコードを取得します。.
|
void |
setBytesTransferred(long bytesTransferred)
一番後の進捗イベント以後、転送されたバイト数を設定します。
|
void |
setEventCode(int eventType)
このオブジェクトが表すイベントの種別を特定する一意のイベントコードを設定します。
|
public static final int PREPARING_EVENT_CODE
public static final int STARTED_EVENT_CODE
public static final int COMPLETED_EVENT_CODE
public static final int FAILED_EVENT_CODE
public static final int CANCELED_EVENT_CODE
public static final int RESET_EVENT_CODE
public static final int PART_STARTED_EVENT_CODE
public static final int PART_COMPLETED_EVENT_CODE
public static final int PART_FAILED_EVENT_CODE
protected long bytesTransferred
protected int eventCode
public ProgressEvent(long bytesTransferred)
public ProgressEvent(int eventCode, long bytesTransferred)
public long getBytesTransferred()
public void setBytesTransferred(long bytesTransferred)
bytesTransferred
- 一番後の進捗イベント以後、転送されたバイト数.public int getEventCode()
public void setEventCode(int eventType)
eventType
- このオブジェクトが表すイベントの種別を特定する一意のイベントコード.Copyright © 2018. All rights reserved.