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

⟦c9c168187⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Agent_Maintenance, seg_057d4b

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 Generic_Comm;
with Std_Types;
with Messages;
with Message_Storage;
with Text_Io;
use Std_Types;

procedure Agent_Maintenance is  
    Done : Boolean := False;
    Message : Messages.Obj_Msg;
    My_Bal : Message_Storage.Bal;
    Connection_Delay : Duration := 10.0;  
    Try_Number : Positive := 1;
    Number : Natural := 1;
    package Comm is new Generic_Comm (Connection_Delay, Try_Number, My_Bal);
    Source_Id : Natural;
begin
    Text_Io.Put_Line
       ("============== Agent de Maintenance ====================");

    Comm.Send (Registration,
               Rem_Host => Ficus,
               Rem_Socket => Orb_Socket,
               Msg => "**** Message from agent_maintenance  ***");

    Source_Id := Comm.Get_Client_Id;

    Comm.Send (Query,
               Rem_Host => Ficus,
               Rem_Socket => Orb_Socket,
               Source => Source_Id);

    My_Bal.Get_Message (Message);

    My_Bal.Is_Empty (Done);
    while Done loop
        My_Bal.Is_Empty (Done);
    end loop;
    Text_Io.Put_Line ("-------- Affichage de la liste des abonnes  -------");
    loop
        My_Bal.Get_Message (Message);
        exit when Messages.Get_Order_Msg (Message) = 0;
        if Messages.Get_Type_Msg (Message) = Forward then
            Text_Io.Put_Line ("Abonne n." & Natural'Image (Number) &
                              " : " & String_Var_To_String
                                         (Messages.Get_Content (Message)));
        end if;  
        Done := False;
        My_Bal.Is_Empty (Done);
        while Done loop
            My_Bal.Is_Empty (Done);
        end loop;  
        Text_Io.Put_Line
           ("---------------------------------------------------");
        Number := Number + 1;
    end loop;

    Comm.Send (Unregistration,
               Rem_Host => Ficus,
               Rem_Socket => Orb_Socket,
               Msg => "**** Message from agent_maintenance  ***",
               Source => Source_Id);

    Comm.Dispose;   -- destruction tache client
    Text_Io.Put_Line
       ("============== Fin d'activite Agent de Maintenance =================");
end Agent_Maintenance;

E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=25 rec1=00 rec2=01 rec3=00a
        [0x01] rec0=19 rec1=00 rec2=02 rec3=082
        [0x02] rec0=08 rec1=00 rec2=03 rec3=000
    tail 0x217651a6687d24609f23e 0x42a00088462060003