edu.ntnu.cikmr.services.peers
Class PeersService
java.lang.Object
edu.ntnu.cikmr.services.AbstractService
edu.ntnu.cikmr.services.peers.PeersService
- All Implemented Interfaces:
- Service
public class PeersService
- extends AbstractService
Title:
Description:
Copyright: Copyright (c) 2007
Company:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeersService
public PeersService()
getPeers
public Peer[] getPeers()
getMe
public Peer getMe()
init
public void init(ServiceManager manager)
isStarted
public boolean isStarted()
start
public void start(PeerGroup peerGroup)
throws java.io.IOException,
java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Throws:
java.io.IOException
java.lang.IllegalStateException
java.lang.IllegalArgumentException
stop
public void stop()
throws java.io.IOException,
java.lang.IllegalStateException
- Throws:
java.io.IOException
java.lang.IllegalStateException
addPeerListener
public void addPeerListener(PeerListener l)
removePeerListener
public void removePeerListener(PeerListener l)