Search in sources :

Example 1 with RestSmartProxyImpl

use of org.ow2.proactive_grid_cloud_portal.smartproxy.RestSmartProxyImpl in project scheduling by ow2-proactive.

the class RestSmartProxyTest method initializeRestSmartProxyInstance.

private void initializeRestSmartProxyInstance() throws Exception {
    restSmartProxy = new RestSmartProxyImpl();
    restSmartProxy.cleanDatabase();
    restSmartProxy.setSessionName(uniqueSessionId());
    restSmartProxy.init(new ConnectionInfo(getRestServerUrl(), getLogin(), getPassword(), null, true));
    userspace = restSmartProxy.getUserSpaceURIs().get(0);
    pushUrl = userspace;
    pullUrl = userspace;
    // we add special characters and space to the folders to make sure
    // transfer occurs normally
    inputLocalFolder = tempDir.newFolder("input é");
    outputLocalFolder = tempDir.newFolder("output é");
}
Also used : RestSmartProxyImpl(org.ow2.proactive_grid_cloud_portal.smartproxy.RestSmartProxyImpl) ConnectionInfo(org.ow2.proactive.authentication.ConnectionInfo)

Aggregations

ConnectionInfo (org.ow2.proactive.authentication.ConnectionInfo)1 RestSmartProxyImpl (org.ow2.proactive_grid_cloud_portal.smartproxy.RestSmartProxyImpl)1