|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.test.LocalPeer
public class LocalPeer
LocalPeer
provides a instance to create and execute a local
peer (that will not join community). Used at MyGrid tests.
Constructor Summary | |
---|---|
LocalPeer(int port)
LocalPeer constructor |
Method Summary | |
---|---|
java.lang.String |
generateTempGDF(java.lang.String tempDirectory)
Creates a temporary GDF file to be used with LocalPeer as GuMP |
PeerSpec |
getGuMPSpec()
Get the local peer GuMPSpec |
boolean |
isRunning()
Tests if the LocalPeer is running |
boolean |
setGuMs(java.io.File GuMList)
Set a list of Gums to be used at peer, also starts the UserAgents |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a configuration property, the peer must not be running. |
void |
start()
Starts the peer execution with setted configurations. |
void |
stop()
Stops the peer execution |
boolean |
stopUAs(java.io.File GuMList)
Stops the UAs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalPeer(int port)
port
- Port to be usedMethod Detail |
---|
public void setProperty(java.lang.String key, java.lang.String value)
key
- Key to be settedvalue
- Value of the keypublic PeerSpec getGuMPSpec()
public void start()
public void stop()
public java.lang.String generateTempGDF(java.lang.String tempDirectory) throws java.io.IOException
tempDirectory
- tempDirectory to be used
java.io.IOException
- If cannot write to filepublic boolean isRunning()
LocalPeer
is running
public boolean setGuMs(java.io.File GuMList)
GuMList
- public boolean stopUAs(java.io.File GuMList)
GuMList
- Description file with the GuMs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |