JXTA

net.jxta.test
Class AppList

java.lang.Object
  |
  +--net.jxta.test.AppList

public class AppList
extends java.lang.Object


Method Summary
 void addApp(PeerGroupApp app)
          Adds the PeerGroupApp to the list
 PeerGroupApp getApp(java.lang.String gid)
          Returns the PeerGroupApp that matches the requested PeerGroupId String
 java.util.Enumeration getApps()
          Returns an Enumeration of the PeerGroupApps
static AppList getInstance()
           
 java.io.File getRootDir()
          Returns the Root Directory for storing persistent data
 void removeApp(java.lang.String gid)
          Removes the PeerGroupApp for the given gid from the list of discovered Groups in the PeerGroup
 void setRootDir(java.io.File newRoot)
          Sets the new Root Directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootDir

public java.io.File getRootDir()
Returns the Root Directory for storing persistent data
Returns:
File that points to root directory
Since:
JXTA 1.0

setRootDir

public void setRootDir(java.io.File newRoot)
Sets the new Root Directory
Parameters:
newRoot - new root directory
Since:
JXTA 1.0

getApp

public PeerGroupApp getApp(java.lang.String gid)
Returns the PeerGroupApp that matches the requested PeerGroupId String
Parameters:
gid - Gid of the requested PeerGroup
Returns:
the requested PeerGroupApp or null if the PeerGroupApp does not exist
Since:
JXTA 1.0

addApp

public void addApp(PeerGroupApp app)
Adds the PeerGroupApp to the list
Parameters:
app - PeerGroupApp to add
Since:
JXTA 1.0

removeApp

public void removeApp(java.lang.String gid)
Removes the PeerGroupApp for the given gid from the list of discovered Groups in the PeerGroup
Parameters:
gid - Gid of the PeerGroupApp to remove
Since:
JXTA 1.0

getApps

public java.util.Enumeration getApps()
Returns an Enumeration of the PeerGroupApps
Returns:
an Enumeration of the PeerGroupApps
Since:
JXTA 1.0

getInstance

public static AppList getInstance()

JXTA