jxtaimpl
Class DownloadService

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--jxtaimpl.DownloadService
All Implemented Interfaces:
Runnable

public class DownloadService
extends Thread

This class is a JXTA-Enabled Service. Its task is waiting for incoming requests for uploading resources originated by remote nests.

Author:
Francesco Russo (frusso@cs.unibo.it)

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DownloadService()
           
 
Method Summary
 Advertisement getImplAdvertisement()
           
 Service getInterface()
           
 void init(PeerGroup grp, ID id, Advertisement adv)
          Initialization of this service's parameters
 void run()
          For each message received, a DownloadManager is instantiated and started.
 int startApp(String[] args)
          Starting method
 void stopApp()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DownloadService

public DownloadService()
Method Detail

init

public void init(PeerGroup grp,
                 ID id,
                 Advertisement adv)
Initialization of this service's parameters


startApp

public int startApp(String[] args)
Starting method


stopApp

public void stopApp()

getInterface

public Service getInterface()

getImplAdvertisement

public Advertisement getImplAdvertisement()

run

public void run()
For each message received, a DownloadManager is instantiated and started.

Specified by:
run in interface Runnable
Overrides:
run in class Thread