use of org.ow2.proactive.scheduler.rest.ds.DataSpaceClient in project scheduling by ow2-proactive.
the class RestSmartProxyImpl method init.
@Override
public void init(ConnectionInfo connectionInfo) {
try {
this.connectionInfo = connectionInfo;
this.restSchedulerClient = SchedulerClient.createInstance();
this.restSchedulerClient.init(new ConnectionInfo(connectionInfo.getUrl(), connectionInfo.getLogin(), connectionInfo.getPassword(), connectionInfo.getCredentialFile(), connectionInfo.isInsecure()));
DataSpaceClient restDsClient = new DataSpaceClient();
restDsClient.init(connectionInfo.getUrl(), this.restSchedulerClient);
this.restDataSpaceClient = restDsClient;
super.jobTracker.setRestDataSpaceClient(this.restDataSpaceClient);
this.jobTracker.loadJobs();
setInitialized(true);
registerAsListener();
syncAwaitedJobs();
} catch (Exception e) {
Throwables.propagate(e);
}
}
use of org.ow2.proactive.scheduler.rest.ds.DataSpaceClient in project scheduling by ow2-proactive.
the class DataTransferTest method clientInstance.
private IDataSpaceClient clientInstance() throws Exception {
DataSpaceClient client = new DataSpaceClient();
client.init(new ConnectionInfo(getRestServerUrl(), getLogin(), getPassword(), null, true));
return client;
}
Aggregations