edu.ntnu.cikmr.services
Class ServiceManager

java.lang.Object
  extended by edu.ntnu.cikmr.services.AbstractService
      extended by edu.ntnu.cikmr.services.ServiceManager
All Implemented Interfaces:
Service

public class ServiceManager
extends AbstractService

Title:

Description:

Copyright: Copyright (c) 2007

Company:


Field Summary
 
Fields inherited from class edu.ntnu.cikmr.services.AbstractService
listenerList
 
Constructor Summary
ServiceManager()
           
 
Method Summary
 void add(Service s)
           
 Service get(java.lang.Class service)
           
 void init(ServiceManager manager)
           
 boolean isStarted()
           
 void remove(Service s)
           
 void start(PeerGroup peerGroup)
           
 void startServices()
           
 void stop()
           
 void stopServices()
           
 
Methods inherited from class edu.ntnu.cikmr.services.AbstractService
addServiceListener, fireServiceStarted, fireServiceStopped, removeServiceListner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManager

public ServiceManager()
Method Detail

get

public Service get(java.lang.Class service)

add

public void add(Service s)

remove

public void remove(Service s)

startServices

public void startServices()

stopServices

public void stopServices()

init

public void init(ServiceManager manager)

start

public void start(PeerGroup peerGroup)
           throws java.io.IOException
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
Throws:
java.io.IOException

isStarted

public boolean isStarted()