p2pMapReduce.test
Class Tools

java.lang.Object
  extended by p2pMapReduce.test.Tools

public class Tools
extends java.lang.Object


Constructor Summary
Tools()
           
 
Method Summary
static void CheckForExistingConfigurationDeletion(java.lang.String Name, java.io.File ConfigurationFile)
           
static void CheckForMulticastUsage(java.lang.String Name, net.jxta.platform.NetworkConfigurator TheNC)
           
static void CheckForRendezVousSeedAddition(java.lang.String Name, java.lang.String TheSeed, net.jxta.platform.NetworkConfigurator TheNC)
           
static void copyElements(net.jxta.document.StructuredDocument intoDoc, net.jxta.document.Element intoElement, net.jxta.document.Element from, boolean recursive, boolean copyAttributes)
          Recursively copy elements beginnging with from into the document identified by intoDoc.
static void DisplayMessageContent(java.lang.String Name, net.jxta.endpoint.Message TheMessage)
           
static void GoToSleep(long Duration)
           
static void popConnectedPeers(net.jxta.rendezvous.RendezVousService TheRendezVous, java.lang.String Name)
           
static void popConnectedRendezvous(net.jxta.rendezvous.RendezVousService TheRendezVous, java.lang.String Name)
           
static void PopErrorMessage(java.lang.String Name, java.lang.String Message)
           
static void PopInformationMessage(java.lang.String Name, java.lang.String Message)
           
static void PopWarningMessage(java.lang.String Name, java.lang.String Message)
           
static int PopYesNoQuestion(java.lang.String Name, java.lang.String Question)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

popConnectedRendezvous

public static void popConnectedRendezvous(net.jxta.rendezvous.RendezVousService TheRendezVous,
                                          java.lang.String Name)

popConnectedPeers

public static void popConnectedPeers(net.jxta.rendezvous.RendezVousService TheRendezVous,
                                     java.lang.String Name)

CheckForMulticastUsage

public static void CheckForMulticastUsage(java.lang.String Name,
                                          net.jxta.platform.NetworkConfigurator TheNC)
                                   throws java.io.IOException
Throws:
java.io.IOException

CheckForRendezVousSeedAddition

public static void CheckForRendezVousSeedAddition(java.lang.String Name,
                                                  java.lang.String TheSeed,
                                                  net.jxta.platform.NetworkConfigurator TheNC)

PopInformationMessage

public static void PopInformationMessage(java.lang.String Name,
                                         java.lang.String Message)

PopErrorMessage

public static void PopErrorMessage(java.lang.String Name,
                                   java.lang.String Message)

PopWarningMessage

public static void PopWarningMessage(java.lang.String Name,
                                     java.lang.String Message)

PopYesNoQuestion

public static int PopYesNoQuestion(java.lang.String Name,
                                   java.lang.String Question)

CheckForExistingConfigurationDeletion

public static void CheckForExistingConfigurationDeletion(java.lang.String Name,
                                                         java.io.File ConfigurationFile)
                                                  throws java.io.IOException
Throws:
java.io.IOException

DisplayMessageContent

public static void DisplayMessageContent(java.lang.String Name,
                                         net.jxta.endpoint.Message TheMessage)

GoToSleep

public static final void GoToSleep(long Duration)

copyElements

public static void copyElements(net.jxta.document.StructuredDocument intoDoc,
                                net.jxta.document.Element intoElement,
                                net.jxta.document.Element from,
                                boolean recursive,
                                boolean copyAttributes)
Recursively copy elements beginnging with from into the document identified by intoDoc.

Parameters:
intoDoc - the document into which the elements which will be copied.
intoElement - the element which will serve as the parent for the elements being copied.
from - the root element of the hierarchy which will be copied.
copyAttributes - whether the elements' attributes should be copied or not