FileDocCategorySizeDatePackage
DiskManagerRequestImpl.javaAPI DocAzureus 3.0.3.42579Wed Jul 19 13:36:20 BST 2006org.gudy.azureus2.core3.disk.impl.access.impl

DiskManagerRequestImpl

public abstract class DiskManagerRequestImpl extends Object implements org.gudy.azureus2.core3.disk.DiskManagerRequest

Fields Summary
private static final org.gudy.azureus2.core3.logging.LogIDs
LOGID
private static boolean
DEBUG
private static int
next_id
private long
start_time
private String
name
Constructors Summary
Methods Summary
protected abstract java.lang.StringgetName()

public voidrequestEnds(boolean ok)

		if ( DEBUG ){
			
			try{
				Logger.log(new LogEvent( LOGID, "DMRequest end: " + name + ",ok=" + ok + ", time=" + ( SystemTime.getCurrentTime() - start_time )));
				
			}catch( Throwable e ){
			}
		}	
	
public voidrequestStarts()

		if ( DEBUG ){
				
			try{
				int	id;
					
				synchronized( DiskManagerRequestImpl.class ){
						
					id = next_id++;
				}
				
				name	= getName() + " [" + id + "]";
				
				start_time = SystemTime.getCurrentTime();
				
				Logger.log(new LogEvent( LOGID, "DMRequest start: " + name ));
				
			}catch( Throwable e ){
			}
		}