ncsa.tools.trebuchet.listeners
Class ListToMetadataListener

java.lang.Object
  extended byncsa.tools.trebuchet.listeners.ProgressListener
      extended byncsa.tools.trebuchet.listeners.ListToMetadataListener
All Implemented Interfaces:
ICacheAccessor, IOperationListener, IUpdateOperationListener

public class ListToMetadataListener
extends ProgressListener
implements ICacheAccessor

A similar mechanism can be used in the Triggered Action for files.


Field Summary
static java.lang.String TAG_SELF
           
 
Constructor Summary
ListToMetadataListener()
           
 
Method Summary
 void cacheEntryUpdated(java.lang.String operationId, long entryId)
           
 void cacheUpdated(java.lang.String operationId, long lastEntryId)
           
 void close()
           
 void operationFinished(java.lang.String operationId)
           
 void operationStarted(java.lang.String operationId)
           
 void scanningDirectory(java.lang.String operationId, long id)
           
 void setCache(OperationCache cache)
           
 
Methods inherited from class ncsa.tools.trebuchet.listeners.ProgressListener
isEventSupportMode, isLog4JMode, isStdOutMode, setEventSupport, setEventSupportMode, setKey, setLog4JMode, setStdOutMode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_SELF

public static final java.lang.String TAG_SELF
See Also:
Constant Field Values
Constructor Detail

ListToMetadataListener

public ListToMetadataListener()
Method Detail

cacheUpdated

public void cacheUpdated(java.lang.String operationId,
                         long lastEntryId)
Specified by:
cacheUpdated in interface IOperationListener

close

public void close()
           throws java.io.IOException
Specified by:
close in class ProgressListener
Throws:
java.io.IOException

operationFinished

public void operationFinished(java.lang.String operationId)
Specified by:
operationFinished in interface IOperationListener

operationStarted

public void operationStarted(java.lang.String operationId)
Specified by:
operationStarted in interface IOperationListener

scanningDirectory

public void scanningDirectory(java.lang.String operationId,
                              long id)
Specified by:
scanningDirectory in interface IOperationListener

cacheEntryUpdated

public void cacheEntryUpdated(java.lang.String operationId,
                              long entryId)
Specified by:
cacheEntryUpdated in interface IUpdateOperationListener

setCache

public void setCache(OperationCache cache)
Specified by:
setCache in interface ICacheAccessor