DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦49e5f5b04⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Log, seg_02c327

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Behavior;
with Identifier;
with Method;
with Message;
with Message_Transport;
with Parameter;
with Signature;
with Text_Io;

use Text_Io;
package body Log is

    procedure Process_Message (M : Message.Object);

    task Tx is  
        entry Start;
        entry Go;  
    end Tx;


    package B is new Behavior (Tx.Go, Process_Message);


    procedure Request (M : Message.Object) is
    begin
        Put_Line (Message.Image (M));
    end Request;


    task body Tx is  
        Status : Message_Transport.Status_Code;
    begin
        accept Start;

        accept Go;

        declare
        begin
            Message_Transport.Put
               (Message => Message.Image
                              (Message.Create
                                  (Class => Message.Publication,
                                   Addressee => Identifier.Hash
                                                   (Identifier.Broker),
                                   Sender => Identifier.Hash (B.Get_Identity),
                                   Method => "put_line",
                                   Parameter1_Name => "display",
                                   Parameter1_Class => "string",
                                   Parameter1_Value => "grenouille:0",
                                   Parameter2_Name => "message",
                                   Parameter2_Class => "string",
                                   Parameter2_Value => Parameter.Void,
                                   Parameter3_Name => "severity",
                                   Parameter3_Class => "string",
                                   Parameter3_Value => Parameter.Void)),
                Remote_Host => "belladone",
                Remote_Socket => 2605,
                Number_Of_Retry => 10,
                Retry_Delay => 0.1,
                Status => Status);
        exception
            when others =>
                Put_Line ("log a foire");
        end;

        loop  
            delay Duration'Last;
        end loop;
    end Tx;


    procedure Process_Message (M : Message.Object) is
        use Message;
    begin  
        case Message.Get_Class (M) is
            when Message.Request =>
                Request (M);
            when others =>
                Put_Line ("process_message: others => " & Message.Image (M));
        end case;
    end Process_Message;


    procedure Start is
    begin
        Tx.Start;
    end Start;


end Log;

E3 Meta Data

    nblk1=4
    nid=4
    hdr6=6
        [0x00] rec0=2d rec1=00 rec2=01 rec3=028
        [0x01] rec0=10 rec1=00 rec2=02 rec3=042
        [0x02] rec0=1f rec1=00 rec2=03 rec3=000
        [0x03] rec0=10 rec1=00 rec2=04 rec3=000
    tail 0x21724b86483f8504d6c68 0x42a00088462060003
Free Block Chain:
  0x4: 0000  00 00 01 28 80 18 4d 65 73 73 61 67 65 2e 47 65  ┆   (  Message.Ge┆