net.nutch.util
Class ShareGroup

java.lang.Object
  extended bynet.nutch.util.ShareGroup

public class ShareGroup
extends Object

A ShareGroup combines the name of a group with where the Nutch filesystem can find members of that group. Used by NutchFileSystem to help resolve NutchFile objects.

Author:
Mike Cafarella

Constructor Summary
ShareGroup(String name)
          Create a ShareGroup as above, but assume the location description can be found via NutchConf.
ShareGroup(String name, String locationDescs)
          Make a named ShareGroup, to be found at the given location.
 
Method Summary
 String[] getLocations()
          Locations for the ShareGroup (machinename:path)
 String getName()
          ShareGroup name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShareGroup

public ShareGroup(String name,
                  String locationDescs)
Make a named ShareGroup, to be found at the given location. locationDesc is a semicolon-separated list of the form "machinename:dbroot;machinename2:dbroot2...". The leading "machinename:" part is optional, in which case the location is a locally-(probably NFS)-mounted disk.


ShareGroup

public ShareGroup(String name)
Create a ShareGroup as above, but assume the location description can be found via NutchConf.

Method Detail

getName

public String getName()
ShareGroup name.


getLocations

public String[] getLocations()
Locations for the ShareGroup (machinename:path)



Copyright © 2004 The Nutch Organization.