Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Udkast til testscenarie 3

Scenariet er: Hent et udsnit af datapakke

Dette scenarie er en udvidelse af det første testscenarie. Her skal klienten hente et deludsnit af en datapakke. Dette kunne f.eks være de første par minutter af en længere videofil. Dette svarer i scenariet til et offsett på 0 og længde på 4 Mb.

I dette scenarie forespørger klienten direkte Pillar2, der her antages at være en hurtig pillar. Hele trin 1 i scenarie 1 springes derfor over.

  • (2a) specifik get fra klient til specifik pillar
  • (2b) svar i form a datatransmission

Scenariet er først beskrevet via illustrationer (kommer...) og derefter ved konkrete værdier i generelle beskedformater med efterfølgende XML. Antagelser om de generelle formater er givet til sidst.

Step 2 a+b

Besked fra 2a

Besked sendes på "Topic General to pillars" eller på "Pillar2 kø"?

Besked fra 2a i generelle format

...

Feltnavn

...

Klient1

...

!OperationId

...

Description

The scenario is: Get Part of File

This scenario is an extension of the first test scenario. Here the client gets part of a file. It could for example be the first couple of minutes of a longer video file. In this scenario it is an offsett of 0 and length 4 Mb.

The scenario should start with an IdentifyPillarsForGet conversation (Step1 in scenario 1) (again not required, but best behaviour and a better starting point for the client as it then knows the currently best place to ask for the file). Only the Get conversation between client and Pillar2 (assumed to be fast) is described.

  • (2a) specific GetRequest from client to specific pillar
  • (2b) answer in form of data transmission

Illustrations to come. The following is concrete values in the general message format and in XML.

Get Conversation (Step 2 a+b)

Message 2a

Message is sent on 'Pillar2 Queue'.

Message 2a in general format

Element Name

Client1

!MessageName

GetRequest

!ConversationId

scen3

!PillarIds

pillar2

!DataIds

Id1

!ReplyQueueName

undefined

Token

http:/a/b.data

Synchronous

undefined

Offset

0

Size

4096

...

Message 2a

...

in XML format

Code Block
<message>
  <operationId>Get<<MessageName>GetRequest</operationId>MessageName>
  <conversationId>scen3</conversationId>
  <pillarIds>
    <pillarId>pillar2</pillarId>
  </pillarIds>
  <dataIds>
    <dataId>Id1</dataId>
  </dataIds>
  <token>http:/a/b.data</token>
  <offset>0</offset>
  <size>4096<size>
</message>

...

Data Transmission 2b

  • Dataoverførelse af pakken Data transmission of file with Id1 via http:/a/b.data fra from pillar 2