summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/filetransfer/util/ChunkStatus.java
blob: f2a73c5ad5f390e241128028fa302764ee4e2585 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.openslx.filetransfer.util;

public enum ChunkStatus
{
	// 0 = complete, 1 = missing, 2 = uploading, 3 = queued for copying, 4 = copying, 5 = hashing
	COMPLETE( 0 ),
	MISSING( 1 ),
	UPLOADING( 2 ),
	QUEUED_FOR_COPY( 3 ),
	COPYING( 4 ),
	HASHING( 5 );

	public final byte val;

	private ChunkStatus( int val )
	{
		this.val = (byte)val;
	}
}