org.gudy.azureus2.core3.download.impl
Class DownloadManagerStateImpl.CachedStateWrapper.cacheGroup

java.lang.Object
  extended by org.gudy.azureus2.core3.download.impl.DownloadManagerStateImpl.CachedStateWrapper.cacheGroup
All Implemented Interfaces:
TOTorrentAnnounceURLGroup
Enclosing class:
DownloadManagerStateImpl.CachedStateWrapper

protected class DownloadManagerStateImpl.CachedStateWrapper.cacheGroup
extends Object
implements TOTorrentAnnounceURLGroup


Nested Class Summary
protected  class DownloadManagerStateImpl.CachedStateWrapper.cacheGroup.cacheSet
           
 
Constructor Summary
protected DownloadManagerStateImpl.CachedStateWrapper.cacheGroup(List group)
           
 
Method Summary
 TOTorrentAnnounceURLSet createAnnounceURLSet(URL[] urls)
          This method will create a new set.
 TOTorrentAnnounceURLSet[] getAnnounceURLSets()
          Gets the current sets defined for this group, 0 length if none defined
 void setAnnounceURLSets(TOTorrentAnnounceURLSet[] toSet)
          Sets the group's URL sets to the supplied values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadManagerStateImpl.CachedStateWrapper.cacheGroup

protected DownloadManagerStateImpl.CachedStateWrapper.cacheGroup(List group)
                                                          throws Exception
Throws:
Exception
Method Detail

getAnnounceURLSets

public TOTorrentAnnounceURLSet[] getAnnounceURLSets()
Description copied from interface: TOTorrentAnnounceURLGroup
Gets the current sets defined for this group, 0 length if none defined

Specified by:
getAnnounceURLSets in interface TOTorrentAnnounceURLGroup
Returns:

setAnnounceURLSets

public void setAnnounceURLSets(TOTorrentAnnounceURLSet[] toSet)
Description copied from interface: TOTorrentAnnounceURLGroup
Sets the group's URL sets to the supplied values.

Specified by:
setAnnounceURLSets in interface TOTorrentAnnounceURLGroup

createAnnounceURLSet

public TOTorrentAnnounceURLSet createAnnounceURLSet(URL[] urls)
Description copied from interface: TOTorrentAnnounceURLGroup
This method will create a new set. It is not added into the current set, this must be done by the caller inserting the newly created set into an array as required and calling the above "set" method.

Specified by:
createAnnounceURLSet in interface TOTorrentAnnounceURLGroup
Parameters:
urls - the URLs for the new set
Returns:
the newly created set