Changed lines at line 67
67: - Request: GET \http://master/config?sessionID=SESSIONID&Platform=PLATFORM
68: - Fail (due to wrong session id): 403 (Forbidden)
69: - Successful Reply: List of Key = Value pairs.
70: {code:none}
71: Worker=name of the executeable
72: MD5=md5 checksum of the executeable
73: DeleteWorker=Yes/No
74: DeleteClient=Yes/No
75: DeleteResults=Yes/No
76: Ping=#
77: {code}
78: * PLATFORM: system property "ostype" (string)
79: 1.1 Ping (HTTP)
80: * Ping interval is given in seconds. 0 for no ping.
81: * Purpose of the ping is that the client realises if the server is stopped or finished or even dead.
82: - Request: GET \http://master/ping?sessionID=SESSIONID&ticket=TICKET
83: - Fail due to wrong session id: 403 (Forbidden)
84: - Successful, but ticket expired (task already done): 205 (Reset Content)
85: - Successful (keep on it!): 204 (No Content)
86: 1.1 Worker
87: - Request: GET \http://master/worker?sessionID=SESSIONID&name=NAME&platform=PLATFORM
88: - Fail (due to wrong session id, or wrong name): 403 (Forbidden)
89: - Fail (due to unsupported platform): 415 Unsupported Media Type
90: - Success: binary file
91: 1.1 Task
92: - Request: GET \http://master/task?sessionID=SESSIONID
93: - Fail (due to wrong session id): 403 (Forbidden)
94: - Fail (because no task left): 503 Service Unavailable
95: - Success:
96: {code:none}
97: Ticket=# (unique number within session)
98: CommandLine=commandline
99: [Input]*
100: File=filename (or "stdin")
101: Content=<<ENDOFCONTENT
102: real file content here (ASCII)
103: ENDOFCONTENT
104: [Result]+
105: Name=resultname
106: File=filename (or "stdout")
107: {code}
108: * the * behinds the section means there can be _zero_ or more sections
109: * the + behinds the section means there can be _one_ or more sections
110: 1.1 Task completed
111: - Successful: POST \http://master/complete?sessionID=SESSIONID&ticket=TICKET
112: {code:none}
113: [Result]+
114: Name=resultname
115: Content=<<ENDOFCONTENT
116: file content here (ASCII)
117: ENDOFCONTENT
118: {code}
119: - Failed: GET \http://master/failed?sessionID=SESSIONID&ticket=TICKET
120: - Request: GET \http://master/config?sessionid=SESSIONID&platform=PLATFORM
121: - Fail (due to unsupported platform): 415 Unsupported Media Type
122: - Fail (due to wrong session id): 403 (Forbidden)
123: - Successful Reply: List of Key = Value pairs.
124: {code:none}
125: Worker=name of the executeable
126: MD5=md5 checksum of the executeable
127: DeleteWorker=Yes/No
128: DeleteClient=Yes/No
129: DeleteResults=Yes/No
130: Ping=#
131: {code}
132: * PLATFORM: one of "Linux, Unix, BSD, WinNT, Win95" (TODO: need a better way then $^0)
133: 1.1 Ping (HTTP)
134: * Ping interval is given in seconds. 0 for no ping.
135: * Purpose of the ping is that the client realises if the server is stopped or finished or even dead.
136: - Request: GET \http://master/ping?sessionid=SESSIONID&ticket=TICKET
137: - Fail due to wrong session id: 403 (Forbidden)
138: - Successful, but ticket expired (task already done): 205 (Reset Content)
139: - Successful (keep on it!): 204 (No Content)
140: 1.1 Worker
141: - Request: GET \http://master/worker?sessionid=SESSIONID
142: - Fail (due to wrong session id): 403 (Forbidden)
143: - Fail (due to file not found): 403 (Forbidden)
144: - Success: binary file
145: 1.1 Task
146: - Request: GET \http://master/task?sessionid=SESSIONID
147: - Fail (due to wrong session id): 403 (Forbidden)
148: - Fail (because no task left): 503 Service Unavailable
149: - Success:
150: {code:none}
151: [Task]
152: Ticket=# (unique number within session)
153: CommandLine=commandline
154: [Input filename]* (filename can be "STDIN")
155: Content=<<ENDOFCONTENT
156: real file content here (ASCII)
157: ENDOFCONTENT
158: [Result filename]+ (filename can be "STDOUT")
159: Name=resultname
160: {code}
161: * the * behinds the section means there can be _zero_ or more sections
162: * the + behinds the section means there can be _one_ or more sections
163: 1.1 Task completed
164: - Successful: POST \http://master/complete?sessionid=SESSIONID&ticket=TICKET
165: {code:none}
166: [Result]+
167: Name=resultname
168: Content=<<ENDOFCONTENT
169: file content here (ASCII)
170: ENDOFCONTENT
171: {code}
172: - Failed: GET \http://master/failed?sessionid=SESSIONID&ticket=TICKET