Project

General

Profile

root / branches / 1.1 / src / haizea / common / constants.py @ 847

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
STOPWHEN_EXACT="exact"
56

    
57
REUSE_NONE="none"
58
REUSE_IMAGECACHES="image-caches"
59

    
60
RUNTIMEOVERHEAD_NONE="none"
61
RUNTIMEOVERHEAD_ALL="all"
62
RUNTIMEOVERHEAD_BE="besteffort"
63

    
64
PREPARATION_UNMANAGED = "unmanaged"
65
PREPARATION_PREDEPLOY = "predeployed-images"
66
PREPARATION_TRANSFER = "imagetransfer"
67

    
68
CLOCK_SIMULATED = "simulated"
69
CLOCK_REAL = "real"
70

    
71
# Misc
72
BETTER = -1
73
EQUAL = 0
74
WORSE = 1
75

    
76
DIRECTION_FORWARD = 0
77
DIRECTION_BACKWARD = 1
78
        
79
CACHESIZE_UNLIMITED = -1
80

    
81

    
82

    
83
ENACT_PACKAGE="haizea.core.enact"
84

    
85
EVENT_END_VM=0
86

    
87
LOGLEVEL_VDEBUG = 5
88
LOGLEVEL_STATUS = 25
89

    
90
NO_MEMORY_OVERRIDE = -1
91

    
92
ONFAILURE_CANCEL = "cancel"
93
ONFAILURE_EXIT = "exit"
94
ONFAILURE_EXIT_RAISE = "exit-raise"