1 -- ---------------------------------------------------------------------------
3 -- PARTITION constant and type definitions and management services --
5 -- ---------------------------------------------------------------------------
7 package APEX.Partitions is
8 Max_Number_Of_Partitions : constant := System_Limit_Number_Of_Partitions;
9 type Operating_Mode_Type is (Idle, Cold_Start, Warm_Start, Normal);
10 type Partition_Id_Type is
private;
11 Null_Partition_Id : constant Partition_Id_Type;
12 type Start_Condition_Type is
16 Hm_Partition_Restart);
17 type Partition_Status_Type is record
18 Period : System_Time_Type;
19 Duration : System_Time_Type;
20 Identifier : Partition_Id_Type;
21 Lock_Level : APEX.Processes.Lock_Level_Type;
22 Operating_Mode : Operating_Mode_Type;
23 Start_Condition : Start_Condition_Type;
25 procedure Get_Partition_Status
26 (Partition_Status : out Partition_Status_Type;
27 Return_Code : out Return_Code_Type);
28 procedure Set_Partition_Mode
29 (Operating_Mode : in Operating_Mode_Type;
30 Return_Code : out Return_Code_Type);
32 type Partition_ID_Type is
new APEX_Integer;
33 Null_Partition_Id : constant Partition_Id_Type := 0;
34 pragma Convention (C, Operating_Mode_Type);
35 pragma Convention (C, Start_Condition_Type);
36 pragma Convention (C, Partition_Status_Type);
39 pragma Import (C, Get_Partition_Status,
"GET_PARTITION_STATUS");
40 pragma Import (C, Set_Partition_Mode,
"SET_PARTITION_MODE");
41 -- END OF POK BINDINGS