Search in sources :

Example 36 with SchedulerRestInterface

use of org.ow2.proactive_grid_cloud_portal.common.SchedulerRestInterface in project scheduling by ow2-proactive.

the class SchedulerRestClient method createRestProxy.

private static SchedulerRestInterface createRestProxy(ResteasyProviderFactory provider, String restEndpointURL, ClientHttpEngine httpEngine) {
    ResteasyClient client = buildResteasyClient(provider);
    ResteasyWebTarget target = client.target(restEndpointURL);
    SchedulerRestInterface schedulerRestClient = target.proxy(SchedulerRestInterface.class);
    return createExceptionProxy(schedulerRestClient);
}
Also used : ResteasyClient(org.jboss.resteasy.client.jaxrs.ResteasyClient) ResteasyWebTarget(org.jboss.resteasy.client.jaxrs.ResteasyWebTarget) SchedulerRestInterface(org.ow2.proactive_grid_cloud_portal.common.SchedulerRestInterface)

Aggregations

SchedulerRestInterface (org.ow2.proactive_grid_cloud_portal.common.SchedulerRestInterface)36 CLIException (org.ow2.proactive_grid_cloud_portal.cli.CLIException)34 TaskResultData (org.ow2.proactive_grid_cloud_portal.scheduler.dto.TaskResultData)3 JobResultData (org.ow2.proactive_grid_cloud_portal.scheduler.dto.JobResultData)2 JobStateData (org.ow2.proactive_grid_cloud_portal.scheduler.dto.JobStateData)2 TaskStateData (org.ow2.proactive_grid_cloud_portal.scheduler.dto.TaskStateData)2 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 ResteasyClient (org.jboss.resteasy.client.jaxrs.ResteasyClient)1 ResteasyWebTarget (org.jboss.resteasy.client.jaxrs.ResteasyWebTarget)1 InvalidScriptException (org.ow2.proactive.scripting.InvalidScriptException)1 ScriptResult (org.ow2.proactive.scripting.ScriptResult)1 JobIdData (org.ow2.proactive_grid_cloud_portal.scheduler.dto.JobIdData)1 SchedulerUserData (org.ow2.proactive_grid_cloud_portal.scheduler.dto.SchedulerUserData)1 NotConnectedRestException (org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException)1 PermissionRestException (org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException)1 RestException (org.ow2.proactive_grid_cloud_portal.scheduler.exception.RestException)1