|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.test.functionalunits.UserAgentUnit
public class UserAgentUnit
UserAgentUnit
will represents a peer that will be used to
execute functional tests of OurGrid. A default creation of a
UserAgentUnit
will find and use a disponible port, address and
any other detail that isn't needed to a test. Also is possible interact
between functional tests unit to permit a easy way to create and mantain any
test. This class will execute scripts to control the corepeer.
Method Summary | |
---|---|
void |
destroy()
This method is used to delete enviroment files that the FunctionalTestUnit uses. |
java.lang.String |
getAddress()
Gets the address that this corepeer is published. |
java.lang.String |
getDefaultPropertiesFile()
Returns the default properties file that will be used by this FunctionalTestUnit . |
GumSpec |
getGumSpec()
Get's the GumSpec representing this user agent unit. |
GumStatus |
getGumStatus()
Get's the current status of this useragetunit. |
java.lang.String |
getHostname()
Get the hostname of the core peer. |
java.lang.String |
getName()
Returns the name of this FunctionalTestUnit . |
int |
getPort()
Get the port of the core peer. |
boolean |
isRunning()
Verify if this corepeer is running. |
void |
kill()
Kills this unit by calling System.exit() |
void |
start()
Starts this UserAgentUnit . |
boolean |
stillIdle()
This method verifies if the functional test unit was not waken up since the last waitUntilWorkIsDone() call. |
void |
stop()
Stops this UserAgentUnit . |
void |
waitUntilWorkIsDone()
This method will block until this FunctionalTestUnit has
stopped all work. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
FunctionalTestUnit
FunctionalTestUnit
.
getName
in interface FunctionalTestUnit
FunctionalTestUnit
.FunctionalTestUnit.getName()
public java.lang.String getHostname()
getHostname
in interface FunctionalTestUnit
public int getPort()
getPort
in interface FunctionalTestUnit
public java.lang.String getDefaultPropertiesFile()
FunctionalTestUnit
FunctionalTestUnit
.
getDefaultPropertiesFile
in interface FunctionalTestUnit
FunctionalTestUnit.getDefaultPropertiesFile()
public java.lang.String getAddress()
public GumSpec getGumSpec()
GumSpec
representing this user agent unit.
GumSpec
representing this user agent unit.public void start() throws java.lang.Exception
UserAgentUnit
.
start
in interface FunctionalTestUnit
java.io.IOException
- If cannot save properties file.
java.lang.Exception
public void stop() throws java.lang.Exception
UserAgentUnit
.
stop
in interface FunctionalTestUnit
java.lang.Exception
public boolean isRunning()
isRunning
in interface FunctionalTestUnit
java.lang.Exception
public GumStatus getGumStatus() throws java.lang.Exception
GumStatus
java.lang.Exception
- If unable to acquire status.public void destroy()
FunctionalTestUnit
FunctionalTestUnit
uses.
destroy
in interface FunctionalTestUnit
public void waitUntilWorkIsDone() throws java.lang.Exception
FunctionalTestUnit
FunctionalTestUnit
has
stopped all work.
waitUntilWorkIsDone
in interface FunctionalTestUnit
java.lang.Exception
public boolean stillIdle() throws java.lang.Exception
FunctionalTestUnit
waitUntilWorkIsDone()
call.
stillIdle
in interface FunctionalTestUnit
java.lang.Exception
public void kill() throws java.lang.Exception
FunctionalTestUnit
System.exit()
kill
in interface FunctionalTestUnit
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |