base.jdbs
Class JDBSPeer
java.lang.Object
base.jdbs.JDBSPeer
public class JDBSPeer
- extends java.lang.Object
- Author:
- skunk
Constructor Summary |
JDBSPeer(net.jxta.protocol.PeerAdvertisement peerAdvertisement,
net.jxta.peergroup.PeerGroup peerGroup)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PIPE_ADVERTISEMENT_FILE_PATH
public static final java.lang.String PIPE_ADVERTISEMENT_FILE_PATH
- See Also:
- Constant Field Values
STATUS_MESSAGE
public static final java.lang.String STATUS_MESSAGE
- See Also:
- Constant Field Values
JDBSPeer
public JDBSPeer(net.jxta.protocol.PeerAdvertisement peerAdvertisement,
net.jxta.peergroup.PeerGroup peerGroup)
initialize
protected void initialize()
sendStatusMessage
public void sendStatusMessage()
getLocation
public java.lang.String getLocation()
- Returns:
- The local peer's location.
getPeerId
public java.lang.String getPeerId()
getPeerName
public java.lang.String getPeerName()
- Returns:
- The local peer's name as defined in the JXTA configuration.
getAvailableSpace
public long getAvailableSpace()
- Returns:
- The difference between the declared available space and the real Repository occupied space in Mega Bytes.
getPing
public int getPing()
- Returns:
- Returns the ping between this local peer and the other executing JDBS.
getPeerAdvertisement
public net.jxta.protocol.PeerAdvertisement getPeerAdvertisement()
- Returns:
- Returns the peerAdvertisement.
getPeerGroup
public net.jxta.peergroup.PeerGroup getPeerGroup()
- Returns:
- Returns the peerGroup.
pipeMsgEvent
public void pipeMsgEvent(net.jxta.pipe.PipeMsgEvent arg0)
Copyright © 2006 SF.net. All Rights Reserved.