All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class Acme.Nnrpd.MultiplexNewsDb
java.lang.Object
   |
   +----Acme.Nnrpd.NewsDb
           |
           +----Acme.Nnrpd.MultiplexNewsDb
  -  public class MultiplexNewsDb
  -  extends NewsDb
Multiplex netnews database.
 This is a news database that forwards requests to different sub-databases
 based on the group name.
 
 Fetch the software.
 Fetch the entire Acme package.
   
  -   MultiplexNewsDb() MultiplexNewsDb()
-  Constructor.
   
  -   add(String, NewsDb) add(String, NewsDb)
-  Add a sub-database for a given pattern of groups.
  
-   authorize(String, String) authorize(String, String)
-  Attempt authorization.
  
-   close() close()
-  Shut down the news database.
  
-   getArticle(NewsDbGroup, int) getArticle(NewsDbGroup, int)
-  Get an article by group and number.
  
-   getArticle(String) getArticle(String)
-  Get an article by message-id.
  
-   getGroup(String) getGroup(String)
-  Get a group by name.
  
-   getGroups() getGroups()
-  Get an enumeration of all the groups.
  
-   getGroups(long) getGroups(long)
-  Get an enumeration of all groups created after a given time.
  
-   getGroups(long, String) getGroups(long, String)
-  Get an enumeration of all groups created after a given time that match
 a given distributions pattern.
  
-   getHeaders(String[], NewsDbGroup, int, int) getHeaders(String[], NewsDbGroup, int, int)
-  Get specified headers from a range of articles by group and number.
  
-   getMessageIds(String, long) getMessageIds(String, long)
-  Get an enumeration of all message-ids received after a given time
 in groups matching the given pattern.
  
-   getMessageIds(String, long, String) getMessageIds(String, long, String)
-  Get an enumeration of all message-ids received after a given time
 in groups matching the given pattern, that also match the
 given distributions pattern.
  
-   getPostingOk() getPostingOk()
-  Whether posting is allowed.
  
-   post(String) post(String)
-  Post an article.
   
 MultiplexNewsDb
MultiplexNewsDb
 public MultiplexNewsDb() throws NewsDbException
  -  Constructor.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
  
 
   
 add
add
 public void add(String groupsPat,
                 NewsDb newsDb)
  -  Add a sub-database for a given pattern of groups.
 
 authorize
authorize
 public boolean authorize(String user,
                          String password) throws NewsDbException
  -  Attempt authorization.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  authorize in class NewsDb
  
 
 getPostingOk
getPostingOk
 public boolean getPostingOk() throws NewsDbException
  -  Whether posting is allowed.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getPostingOk in class NewsDb
  
 
 getGroup
getGroup
 public NewsDbGroup getGroup(String groupName) throws NewsDbException
  -  Get a group by name.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getGroup in class NewsDb
  
 
 getArticle
getArticle
 public NewsDbArticle getArticle(NewsDbGroup group,
                                 int artNum) throws NewsDbException
  -  Get an article by group and number.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getArticle in class NewsDb
  
 
 getArticle
getArticle
 public NewsDbArticle getArticle(String messageId) throws NewsDbException
  -  Get an article by message-id.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getArticle in class NewsDb
  
 
 getHeaders
getHeaders
 public String[][] getHeaders(String names[],
                              NewsDbGroup group,
                              int firstArtNum,
                              int lastArtNum) throws NewsDbException
  -  Get specified headers from a range of articles by group and number.
 Some implementations have special faster methods for getting
 headers from articles, e.g. an XOVER command to a remote server
 or a local overview database.  If no such fast method is available,
 this returns null and the caller should fall back on conventional
 means.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getHeaders in class NewsDb
  
 
 getGroups
getGroups
 public Enumeration getGroups() throws NewsDbException
  -  Get an enumeration of all the groups.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getGroups in class NewsDb
  
 
 getGroups
getGroups
 public Enumeration getGroups(long since) throws NewsDbException
  -  Get an enumeration of all groups created after a given time.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getGroups in class NewsDb
  
 
 getGroups
getGroups
 public Enumeration getGroups(long since,
                              String distsPat) throws NewsDbException
  -  Get an enumeration of all groups created after a given time that match
 a given distributions pattern.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getGroups in class NewsDb
  
 
 getMessageIds
getMessageIds
 public Enumeration getMessageIds(String groupsPat,
                                  long since) throws NewsDbException
  -  Get an enumeration of all message-ids received after a given time
 in groups matching the given pattern.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getMessageIds in class NewsDb
  
 
 getMessageIds
getMessageIds
 public Enumeration getMessageIds(String groupsPat,
                                  long since,
                                  String distsPat) throws NewsDbException
  -  Get an enumeration of all message-ids received after a given time
 in groups matching the given pattern, that also match the
 given distributions pattern.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  getMessageIds in class NewsDb
  
 
 post
post
 public void post(String text) throws NewsDbException
  -  Post an article.
   
- 
    -  Throws: NewsDbException
    
-  if something goes wrong
    
-  Overrides:
    
-  post in class NewsDb
  
 
 close
close
 public void close()
  -  Shut down the news database.
   
- 
    -  Overrides:
    
-  close in class NewsDb
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index
ACME Java  ACME Labs
