|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.test.functionalunits.FunctionalUnitsControl
public class FunctionalUnitsControl
FunctionalUnitsControl
is a singleton to control any logic
that will be used by functional tests like the scripts to be called or
collections to be controlled.
Field Summary | |
---|---|
static java.lang.String |
COREPEER_PROPERTIES
CorePeer properties file. |
static java.lang.String |
COREPEER_SCRIPT
CorePeer script property. |
static java.io.File |
EMPTY_SDF
empty sdf |
static java.io.File |
JOB_ECHO
Simple job execution file. |
static java.io.File |
JOB_ECHO_MANY_TASKS
Simple job execution file. |
static java.io.File |
JOB_MORE_SLEEP
Simple job execution file. |
static java.io.File |
JOB_REQUIREMENTS_WINDOWS
Simple job execution file. |
static java.io.File |
JOB_SLEEP
Simple job execution file. |
static java.io.File |
JOB_STORE
Simple job execution file. |
static java.lang.String |
MYGRID_PROPERTIES
Mygrid properties file. |
static java.lang.String |
MYGRID_SCRIPT
Mygrid script property. |
static java.lang.String |
PEER_PROPERTIES
Peer properties file. |
static java.lang.String |
PEER_SCRIPT
Peer script property. |
static java.lang.String |
STORAGE_DIRECTORY
Where the storage really is. |
static java.lang.String |
STORAGE_DIRECTORY_PROPERTY
Storage directory property. |
static java.lang.String |
UAADMIN_DEPLOYDIR
Uaadmin deploy dir. |
static java.lang.String |
UAADMIN_SCRIPT
Uaadmin script property. |
static java.lang.String |
USERAGENT_PROPERTIES
UserAgent properties file. |
Method Summary | |
---|---|
CorePeerUnit |
createANewCorePeerUnit(java.lang.String name)
Calls the default CorePeerUnit constructor that will find
an available port, address and configuration to this peer initialization. |
MyGridUnit |
createANewMyGridUnit(java.lang.String name)
Calls the default MyGridUnit constructor that will find an
available port, address and configuration to this peer initialization. |
PeerUnit |
createANewPeerUnit(java.lang.String name)
Calls the default PeerUnit constructor that will find an
available port, address and configuration to this peer initialization. |
UserAgentUnit[] |
createANumberOfUserAgentUnits(int numberOfUnits)
Creates a number of UserAgentUnit by calling the
defaultconstructor that will find an available port, address and
configuration to this peer initialization. |
void |
destroyAllRemainingUnits()
Stops and destroys any remaining test units. |
static FunctionalUnitsControl |
getInstance()
Method to obtain the unique instance of this class. |
void |
reset()
Restores the previous state of this FunctionalTestControl by reseting it instance and also restoring the original control files. |
void |
waitUntilSystemIsIdle()
Contacts every functional unit created and waits until they have blocked (stopped working). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COREPEER_SCRIPT
public static final java.lang.String COREPEER_PROPERTIES
public static final java.lang.String USERAGENT_PROPERTIES
public static final java.lang.String PEER_PROPERTIES
public static final java.lang.String PEER_SCRIPT
public static final java.lang.String MYGRID_PROPERTIES
public static final java.lang.String MYGRID_SCRIPT
public static final java.lang.String UAADMIN_SCRIPT
public static final java.lang.String UAADMIN_DEPLOYDIR
public static final java.lang.String STORAGE_DIRECTORY_PROPERTY
public static final java.lang.String STORAGE_DIRECTORY
public static final java.io.File JOB_ECHO
public static final java.io.File JOB_ECHO_MANY_TASKS
public static final java.io.File JOB_SLEEP
public static final java.io.File JOB_MORE_SLEEP
public static final java.io.File JOB_REQUIREMENTS_WINDOWS
public static final java.io.File JOB_STORE
public static final java.io.File EMPTY_SDF
Method Detail |
---|
public static FunctionalUnitsControl getInstance()
public CorePeerUnit createANewCorePeerUnit(java.lang.String name) throws java.lang.Exception
CorePeerUnit
constructor that will find
an available port, address and configuration to this peer initialization.
name
- This CorePeer name. Its only used to identify this
CorePeerUnit
.
java.lang.Exception
- Its not possible to create this test control file.public PeerUnit createANewPeerUnit(java.lang.String name) throws java.lang.Exception
PeerUnit
constructor that will find an
available port, address and configuration to this peer initialization.
name
- This Peer name. Its only used to identify this
PeerUnit
.
java.lang.Exception
- Its not possible to create this test control file.public MyGridUnit createANewMyGridUnit(java.lang.String name) throws java.lang.Exception
MyGridUnit
constructor that will find an
available port, address and configuration to this peer initialization.
name
- This MyGrid name. Its only used to identify this
MyGridUnit
.
java.lang.Exception
- Its not possible to create this test control file.public UserAgentUnit[] createANumberOfUserAgentUnits(int numberOfUnits) throws java.lang.Exception
UserAgentUnit
by calling the
defaultconstructor that will find an available port, address and
configuration to this peer initialization.
numberOfUnits
- Number of units to be created.
java.lang.Exception
- Its not possible to create this test control file.public void destroyAllRemainingUnits() throws java.lang.Exception
java.lang.Exception
- If any of the units cannot be destroyed.public void reset()
public void waitUntilSystemIsIdle() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |