Package haizea :: Package common :: Module constants
[hide private]
[frames] | no frames]

Source Code for Module haizea.common.constants

 1  # -------------------------------------------------------------------------- # 
 2  # Copyright 2006-2009, University of Chicago                                 # 
 3  # Copyright 2008-2009, Distributed Systems Architecture Group, Universidad   # 
 4  # Complutense de Madrid (dsa-research.org)                                   # 
 5  #                                                                            # 
 6  # Licensed under the Apache License, Version 2.0 (the "License"); you may    # 
 7  # not use this file except in compliance with the License. You may obtain    # 
 8  # a copy of the License at                                                   # 
 9  #                                                                            # 
10  # http://www.apache.org/licenses/LICENSE-2.0                                 # 
11  #                                                                            # 
12  # Unless required by applicable law or agreed to in writing, software        # 
13  # distributed under the License is distributed on an "AS IS" BASIS,          # 
14  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   # 
15  # See the License for the specific language governing permissions and        # 
16  # limitations under the License.                                             # 
17  # -------------------------------------------------------------------------- # 
18   
19  # Types of resources 
20  RES_CPU = "CPU" 
21  RES_MEM = "Memory" 
22  RES_NETIN = "Net-in" 
23  RES_NETOUT = "Net-out" 
24  RES_DISK = "Disk" 
25   
26  COMMON_SEC="common" 
27  MULTI_SEC="multi" 
28  BASEDATADIR_OPT="basedatadir" 
29   
30  MODE_SIMULATION="simulation" 
31  MODE_OPENNEBULA="opennebula" 
32   
33  BACKFILLING_OFF="off" 
34  BACKFILLING_AGGRESSIVE="aggressive" 
35  BACKFILLING_CONSERVATIVE="conservative" 
36  BACKFILLING_INTERMEDIATE="intermediate" 
37   
38  SUSPENSION_NONE="none" 
39  SUSPENSION_SERIAL="serial-only" 
40  SUSPENSION_ALL="all" 
41   
42  SUSPRES_EXCLUSION_LOCAL="local" 
43  SUSPRES_EXCLUSION_GLOBAL="global" 
44   
45  MIGRATE_NO="no" 
46  MIGRATE_YES="yes" 
47  MIGRATE_YES_NOTRANSFER="yes-notransfer" 
48   
49  TRANSFER_UNICAST="unicast" 
50  TRANSFER_MULTICAST="multicast" 
51   
52  STOPWHEN_ALLDONE = "all-leases-done" 
53  STOPWHEN_BESUBMITTED="besteffort-submitted" 
54  STOPWHEN_BEDONE="besteffort-done" 
55   
56  REUSE_NONE="none" 
57  REUSE_IMAGECACHES="image-caches" 
58   
59  RUNTIMEOVERHEAD_NONE="none" 
60  RUNTIMEOVERHEAD_ALL="all" 
61  RUNTIMEOVERHEAD_BE="besteffort" 
62   
63  PREPARATION_UNMANAGED = "unmanaged" 
64  PREPARATION_PREDEPLOY = "predeployed-images" 
65  PREPARATION_TRANSFER = "imagetransfer" 
66   
67  CLOCK_SIMULATED = "simulated" 
68  CLOCK_REAL = "real" 
69   
70  # Misc 
71  BETTER = -1 
72  EQUAL = 0 
73  WORSE = 1 
74   
75  DIRECTION_FORWARD = 0 
76  DIRECTION_BACKWARD = 1 
77           
78  CACHESIZE_UNLIMITED = -1 
79   
80   
81   
82  ENACT_PACKAGE="haizea.core.enact" 
83   
84  EVENT_END_VM=0 
85   
86  LOGLEVEL_VDEBUG = 5 
87  LOGLEVEL_STATUS = 25 
88   
89  NO_MEMORY_OVERRIDE = -1 
90   
91  ONFAILURE_CANCEL = "cancel" 
92  ONFAILURE_EXIT = "exit" 
93  ONFAILURE_EXIT_RAISE = "exit-raise" 
94