use of com.axway.ats.core.system.model.ISystemOperations in project ats-framework by Axway.
the class SystemOperations method logClassPath.
/**
* Log all JARs in current application's ClassPath
*/
@PublicAtsApi
public void logClassPath() {
ISystemOperations operations = getOperationsImplementationFor(atsAgent);
operations.logClassPath();
}
use of com.axway.ats.core.system.model.ISystemOperations in project ats-framework by Axway.
the class SystemOperations method isListening.
/**
* Check if some process is listening on some port on some host.
* Note that we cannot give the name of the listening process.
*
* @param host host address
* @param port port number
* @param timeout timeout value in milliseconds
* @return <code>true</code> if the address is listening on this port
* @throws SystemOperationException when the target host is unknown
*/
@PublicAtsApi
public boolean isListening(@Validate(name = "host", type = ValidationType.STRING_NOT_EMPTY) String host, @Validate(name = "port", type = ValidationType.NUMBER_PORT_NUMBER) int port, @Validate(name = "timeout", type = ValidationType.NUMBER_POSITIVE) int timeout) {
// validate input parameters
new Validator().validateMethodParameters(new Object[] { host, port, timeout });
// execute action
ISystemOperations operations = getOperationsImplementationFor(atsAgent);
return operations.isListening(host, port, timeout);
}
use of com.axway.ats.core.system.model.ISystemOperations in project ats-framework by Axway.
the class SystemOperations method setTime.
/**
* Set the system time
*
* @param timestamp the timestamp to set
* @param inMilliseconds whether the timestamp is in milliseconds or a formatted date string
* @throws SystemOperationException
*/
@PublicAtsApi
public void setTime(@Validate(name = "timestamp", type = ValidationType.STRING_NOT_EMPTY) String timestamp, @Validate(name = "inMilliseconds", type = ValidationType.NONE) boolean inMilliseconds) {
// validate input parameters
new Validator().validateMethodParameters(new Object[] { timestamp, inMilliseconds });
// execute action
ISystemOperations operations = getOperationsImplementationFor(atsAgent);
operations.setTime(timestamp, inMilliseconds);
}
use of com.axway.ats.core.system.model.ISystemOperations in project ats-framework by Axway.
the class SystemOperations method createScreenshot.
/**
* Creates screenshot image file.<br/>
* The currently supported image formats/types are PNG, JPG, JPEG, GIF and BMP
*
* @param filePath the screenshot image file path. If the file extension is not specified, the default format PNG will be used
*/
@PublicAtsApi
public void createScreenshot(@Validate(name = "filePath", type = ValidationType.STRING_NOT_EMPTY) String filePath) {
// validate input parameters
new Validator().validateMethodParameters(new Object[] { filePath });
ISystemOperations operations = getOperationsImplementationFor(atsAgent);
operations.createScreenshot(filePath);
}
use of com.axway.ats.core.system.model.ISystemOperations in project ats-framework by Axway.
the class SystemOperations method logDuplicatedJars.
/**
* Log all duplicated JARs in current application's ClassPath
*/
@PublicAtsApi
public void logDuplicatedJars() {
ISystemOperations operations = getOperationsImplementationFor(atsAgent);
operations.logDuplicatedJars();
}
Aggregations