/[volute]/trunk/projects/grid/vospace/doc/VOSpace.tex
ViewVC logotype

Diff of /trunk/projects/grid/vospace/doc/VOSpace.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3339 by major.brian, Wed Apr 20 20:42:10 2016 UTC revision 3340 by major.brian, Thu Apr 21 23:04:17 2016 UTC
# Line 2666  Line 2666 
2666  pullToVoSpace  pullToVoSpace
2667  \\[5px]  \\[5px]
2668  \noindent  \noindent
2669    The Job to be submitted (pullToVoSpace.xml):
2670  \begin{lstlisting}  \begin{lstlisting}
2671  TO BE COMPLETED  <vos:transfer xmlns:vos="http://www.ivoa.net/xml/VOSpace/v2.1">
2672      <vos:target>vos://example.com!vospace/mydata1</vos:target>
2673      <vos:direction>pullToVoSpace</vos:direction>
2674      <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
2675        <vos:endpoint>http://anotherserver.example.com/here/is/the/data</vos:endpoint>
2676      </vos:protocol>
2677    </vos:transfer>
2678    \end{lstlisting}
2679    Request:
2680    \begin{lstlisting}
2681    > curl -v -X POST -d @pullToVoSpace.xml -H "Content-type: text/xml" "http://server.example.com/vospace/transfers"
2682    \end{lstlisting}
2683    Response:
2684    \begin{lstlisting}
2685    > POST /vospace/transfers HTTP/1.1
2686    > Content-type: text/xml
2687    >
2688    < HTTP/1.1 303 See Other
2689    < Location: http://server.example.com/vospace/transfers/m4ipu36gairz0dnl
2690    < Content-Type: text/plain
2691    <
2692    * Closing connection #0
2693    \end{lstlisting}
2694    The PENDING job can be seen by following the redirect to:
2695    \begin{lstlisting}
2696    > curl -v http://server.example.com/vospace/transfers/m4ipu36gairz0dnl
2697    \end{lstlisting}
2698    Response:
2699    \begin{lstlisting}
2700    > GET /vospace/transfers/m4ipu36gairz0dnl HTTP/1.1
2701    >
2702    < HTTP/1.1 200 OK
2703    < Content-Type: text/xml
2704    <
2705    <?xml version="1.0" encoding="UTF-8"?>
2706    <uws:job xmlns:uws="http://www.ivoa.net/xml/UWS/v1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
2707      <uws:jobId>m4ipu36gairz0dnl</uws:jobId>
2708      <uws:phase>PENDING</uws:phase>
2709      <uws:quote>2015-05-26T11:06:45.713</uws:quote>
2710      <uws:startTime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs:nil="true" />
2711      <uws:endTime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs:nil="true" />
2712      <uws:executionDuration>43200</uws:executionDuration>
2713      <uws:destruction>2015-06-01T23:06:45.713</uws:destruction>
2714      <uws:parameters />
2715      <uws:results />
2716      <uws:jobInfo>
2717        <vos:transfer xmlns:vos="http://www.ivoa.net/xml/VOSpace/v2.1">
2718          <vos:target>vos://example.com!vospace/mydata1</vos:target>
2719          <vos:direction>pullToVoSpace</vos:direction>
2720          <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
2721            <vos:endpoint>http://anotherserver.example.com/here/is/the/data</vos:endpoint>
2722          </vos:protocol>
2723        </vos:transfer>
2724      </uws:jobInfo>
2725    </uws:job>
2726    \end{lstlisting}
2727    The job can now be started by posting PHASE=RUN:
2728    \begin{lstlisting}
2729    curl -v -X POST -d "PHASE=RUN" http://server.example.com/vospace/transfers/m4ipu36gairz0dnl/phase
2730    \end{lstlisting}
2731    Response:
2732    \begin{lstlisting}
2733    > POST /vospace/transfers/m4ipu36gairz0dnl/phase HTTP/1.1
2734    > Content-Type: text/xml
2735    >
2736    < HTTP/1.1 303 See Other
2737    < Location: http://server.examle.com/vospace/transfers/m4ipu36gairz0dnl
2738    < Content-Type: text/plain
2739    <
2740    \end{lstlisting}
2741    The EXECUTING job can be seen by following the redirect to:
2742    \begin{lstlisting}
2743    http://server.examle.com/vospace/transfers/m4ipu36gairz0dnl
2744    \end{lstlisting}
2745    Response:
2746    \begin{lstlisting}
2747    > GET /vospace/transfers/m4ipu36gairz0dnl HTTP/1.1
2748    >
2749    < HTTP/1.1 200 OK
2750    < Content-Type: text/xml
2751    <
2752    <?xml version="1.0" encoding="UTF-8"?>
2753    <uws:job xmlns:uws="http://www.ivoa.net/xml/UWS/v1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
2754      <uws:jobId>m4ipu36gairz0dnl</uws:jobId>
2755      <uws:phase>EXECUTING</uws:phase>
2756      <uws:quote>2015-05-26T11:06:45.713</uws:quote>
2757      <uws:startTime>2015-05-25T23:17:41.217</uws:startTime>
2758      <uws:endTime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs:nil="true" />
2759      <uws:executionDuration>43200</uws:executionDuration>
2760      <uws:destruction>2015-06-01T23:06:45.713</uws:destruction>
2761      <uws:parameters />
2762      <uws:results>
2763        <uws:result id="transferDetails" xlink:href="http://server.example.com/vospace/transfers/m4ipu36gairz0dnl/results/transferDetails" />
2764        <uws:result id="dataNode" xlink:href="vos://example.com!vospace/mydata1" />
2765      </uws:results>
2766      <uws:jobInfo>
2767        <vos:transfer xmlns:vos="http://www.ivoa.net/xml/VOSpace/v2.1">
2768          <vos:target>vos://example.com!vospace/mydata1</vos:target>
2769          <vos:direction>pullFromVoSpace</vos:direction>
2770          <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
2771            <vos:endpoint>http://anotherserver.example.com/here/is/the/data</vos:endpoint>
2772          </vos:protocol>
2773        </vos:transfer>
2774      </uws:jobInfo>
2775    </uws:job>
2776  \end{lstlisting}  \end{lstlisting}
2777    
2778  \subsubsection{pullFromVoSpace}  \subsubsection{pullFromVoSpace}
# Line 3237  Line 3342 
3342  pushFromVoSpace  pushFromVoSpace
3343  \\[5px]  \\[5px]
3344  \noindent  \noindent
3345    The Job to be submitted (pushFromVoSpace.xml):
3346  \begin{lstlisting}  \begin{lstlisting}
3347  TO BE COMPLETED  <vos:transfer xmlns:vos="http://www.ivoa.net/xml/VOSpace/v2.1">
3348      <vos:target>vos://example.com!vospace/mydata1</vos:target>
3349      <vos:direction>pushFromVoSpace</vos:direction>
3350      <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
3351        <vos:endpoint>http://anotherserver1.example.com/put/the/data/here</vos:endpoint>
3352      </vos:protocol>
3353      <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
3354        <vos:endpoint>http://anotherserver2.example.com/put/the/data/here</vos:endpoint>
3355      </vos:protocol>
3356    </vos:transfer>
3357    \end{lstlisting}
3358    Request:
3359    \begin{lstlisting}
3360    > curl -v -X POST -d @pushFromVoSpace.xml -H "Content-type: text/xml" "http://server.example.com/vospace/transfers"
3361    \end{lstlisting}
3362    Response:
3363    \begin{lstlisting}
3364    > POST /vospace/transfers HTTP/1.1
3365    > Content-type: text/xml
3366    >
3367    < HTTP/1.1 303 See Other
3368    < Location: http://server.example.com/vospace/transfers/m4ipu36gairz0dnl
3369    < Content-Type: text/plain
3370    <
3371    * Closing connection #0
3372    \end{lstlisting}
3373    The PENDING job can be seen by following the redirect to:
3374    \begin{lstlisting}
3375    > curl -v http://server.example.com/vospace/transfers/m4ipu36gairz0dnl
3376    \end{lstlisting}
3377    Response:
3378    \begin{lstlisting}
3379    > GET /vospace/transfers/m4ipu36gairz0dnl HTTP/1.1
3380    >
3381    < HTTP/1.1 200 OK
3382    < Content-Type: text/xml
3383    <
3384    <?xml version="1.0" encoding="UTF-8"?>
3385    <uws:job xmlns:uws="http://www.ivoa.net/xml/UWS/v1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
3386      <uws:jobId>m4ipu36gairz0dnl</uws:jobId>
3387      <uws:phase>PENDING</uws:phase>
3388      <uws:quote>2015-05-26T11:06:45.713</uws:quote>
3389      <uws:startTime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs:nil="true" />
3390      <uws:endTime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs:nil="true" />
3391      <uws:executionDuration>43200</uws:executionDuration>
3392      <uws:destruction>2015-06-01T23:06:45.713</uws:destruction>
3393      <uws:parameters />
3394      <uws:results />
3395      <uws:jobInfo>
3396        <vos:transfer xmlns:vos="http://www.ivoa.net/xml/VOSpace/v2.1">
3397          <vos:target>vos://example.com!vospace/mydata1</vos:target>
3398          <vos:direction>pushFromVoSpace</vos:direction>
3399          <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
3400            <vos:endpoint>http://anotherserver1.example.com/put/the/data/here</vos:endpoint>
3401          </vos:protocol>
3402          <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
3403            <vos:endpoint>http://anotherserver2.example.com/put/the/data/here</vos:endpoint>
3404          </vos:protocol>
3405        </vos:transfer>
3406      </uws:jobInfo>
3407    </uws:job>
3408    \end{lstlisting}
3409    The job can now be started by posting PHASE=RUN:
3410    \begin{lstlisting}
3411    curl -v -X POST -d "PHASE=RUN" http://server.example.com/vospace/transfers/m4ipu36gairz0dnl/phase
3412    \end{lstlisting}
3413    Response:
3414    \begin{lstlisting}
3415    > POST /vospace/transfers/m4ipu36gairz0dnl/phase HTTP/1.1
3416    > Content-Type: text/xml
3417    >
3418    < HTTP/1.1 303 See Other
3419    < Location: http://server.examle.com/vospace/transfers/m4ipu36gairz0dnl
3420    < Content-Type: text/plain
3421    <
3422    \end{lstlisting}
3423    The EXECUTING job can be seen by following the redirect to:
3424    \begin{lstlisting}
3425    http://server.examle.com/vospace/transfers/m4ipu36gairz0dnl
3426    \end{lstlisting}
3427    Response:
3428    \begin{lstlisting}
3429    > GET /vospace/transfers/m4ipu36gairz0dnl HTTP/1.1
3430    >
3431    < HTTP/1.1 200 OK
3432    < Content-Type: text/xml
3433    <
3434    <?xml version="1.0" encoding="UTF-8"?>
3435    <uws:job xmlns:uws="http://www.ivoa.net/xml/UWS/v1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
3436      <uws:jobId>m4ipu36gairz0dnl</uws:jobId>
3437      <uws:phase>EXECUTING</uws:phase>
3438      <uws:quote>2015-05-26T11:06:45.713</uws:quote>
3439      <uws:startTime>2015-05-25T23:17:41.217</uws:startTime>
3440      <uws:endTime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs:nil="true" />
3441      <uws:executionDuration>43200</uws:executionDuration>
3442      <uws:destruction>2015-06-01T23:06:45.713</uws:destruction>
3443      <uws:parameters />
3444      <uws:results>
3445        <uws:result id="transferDetails" xlink:href="http://server.example.com/vospace/transfers/m4ipu36gairz0dnl/results/transferDetails" />
3446        <uws:result id="dataNode" xlink:href="vos://example.com!vospace/mydata1" />
3447      </uws:results>
3448      <uws:jobInfo>
3449        <vos:transfer xmlns:vos="http://www.ivoa.net/xml/VOSpace/v2.1">
3450          <vos:target>vos://example.com!vospace/mydata1</vos:target>
3451          <vos:direction>pushFromVoSpace</vos:direction>
3452          <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
3453            <vos:endpoint>http://anotherserver1.example.com/put/the/data/here</vos:endpoint>
3454          </vos:protocol>
3455          <vos:protocol uri="ivo://ivoa.net/vospace/core#httpput">
3456            <vos:endpoint>http://anotherserver2.example.com/put/the/data/here</vos:endpoint>
3457          </vos:protocol>
3458        </vos:transfer>
3459      </uws:jobInfo>
3460    </uws:job>
3461  \end{lstlisting}  \end{lstlisting}
3462    
3463  \subsection{Fault arguments}  \subsection{Fault arguments}

Legend:
Removed from v.3339  
changed lines
  Added in v.3340

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26