base.jdbs
Class JDBSPeer

java.lang.Object
  extended by base.jdbs.JDBSPeer

public class JDBSPeer
extends java.lang.Object

Author:
skunk

Field Summary
static java.lang.String PIPE_ADVERTISEMENT_FILE_PATH
           
static java.lang.String STATUS_MESSAGE
           
 
Constructor Summary
JDBSPeer(net.jxta.protocol.PeerAdvertisement peerAdvertisement, net.jxta.peergroup.PeerGroup peerGroup)
           
 
Method Summary
 long getAvailableSpace()
           
 java.lang.String getLocation()
           
 net.jxta.protocol.PeerAdvertisement getPeerAdvertisement()
           
 net.jxta.peergroup.PeerGroup getPeerGroup()
           
 java.lang.String getPeerId()
           
 java.lang.String getPeerName()
           
 int getPing()
           
protected  void initialize()
           
 void pipeMsgEvent(net.jxta.pipe.PipeMsgEvent arg0)
           
 void sendStatusMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JDBSPeer

public JDBSPeer(net.jxta.protocol.PeerAdvertisement peerAdvertisement,
                net.jxta.peergroup.PeerGroup peerGroup)
Method Detail

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.