Class GetFileEventHandler
- java.lang.Object
-
- dk.netarkivet.common.distribute.bitrepository.action.getfile.GetFileEventHandler
-
- All Implemented Interfaces:
org.bitrepository.client.eventhandler.EventHandler
public class GetFileEventHandler extends Object implements org.bitrepository.client.eventhandler.EventHandler
-
-
Constructor Summary
Constructors Constructor Description GetFileEventHandler()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInfo()
void
handleEvent(org.bitrepository.client.eventhandler.OperationEvent event)
boolean
hasFailed()
Method to determine if the operation failed.void
waitForFinish()
Method to wait for the operation to complete.
-
-
-
Method Detail
-
getInfo
public String getInfo()
-
handleEvent
public void handleEvent(org.bitrepository.client.eventhandler.OperationEvent event)
- Specified by:
handleEvent
in interfaceorg.bitrepository.client.eventhandler.EventHandler
-
waitForFinish
public void waitForFinish() throws InterruptedException
Method to wait for the operation to complete. The method is blocking.- Throws:
InterruptedException
- if the thread is interrupted
-
hasFailed
public boolean hasFailed()
Method to determine if the operation failed. The method should not be called prior to a call towaitForFinish()
have returned.- Returns:
- false if the operation succeeded, otherwise true.
-
-