GridSim 5.0 beta

gridsim.datagrid.filter
Class FileNameFilter

Object
  extended by Filter
      extended by FileNameFilter

public class FileNameFilter
extends Filter

Creates a filter based on a file name

Since:
GridSim Toolkit 4.0
Author:
Uros Cibej and Anthony Sulistio

Constructor Summary
FileNameFilter(String fileName)
          Creates a new filtering function based on a given filename
 
Method Summary
 boolean match(FileAttribute attr)
          For each file in the Replica Catalogue list, check whether it contains a FileAttribute object with a matching file name
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameFilter

public FileNameFilter(String fileName)
Creates a new filtering function based on a given filename

Parameters:
fileName - a file name
Method Detail

match

public boolean match(FileAttribute attr)
For each file in the Replica Catalogue list, check whether it contains a FileAttribute object with a matching file name

Specified by:
match in class Filter
Parameters:
attr - a FileAttribute object to compare to
Returns:
true if matching, false otherwise

GridSim 5.0 beta

The University of Melbourne, Australia, 2009