Statistics
| Branch: | Tag: | Revision:

one / src / scheduler / src / pool / ClusterXML.cc @ 4697f1ee

History | View | Annotate | Download (1.89 KB)

1
/* -------------------------------------------------------------------------- */
2
/* Copyright 2002-2015, OpenNebula Project, OpenNebula Systems                */
3
/*                                                                            */
4
/* Licensed under the Apache License, Version 2.0 (the "License"); you may    */
5
/* not use this file except in compliance with the License. You may obtain    */
6
/* a copy of the License at                                                   */
7
/*                                                                            */
8
/* http://www.apache.org/licenses/LICENSE-2.0                                 */
9
/*                                                                            */
10
/* Unless required by applicable law or agreed to in writing, software        */
11
/* distributed under the License is distributed on an "AS IS" BASIS,          */
12
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   */
13
/* See the License for the specific language governing permissions and        */
14
/* limitations under the License.                                             */
15
/* -------------------------------------------------------------------------- */
16

    
17
#include "ClusterXML.h"
18

    
19
/* -------------------------------------------------------------------------- */
20
/* -------------------------------------------------------------------------- */
21
int ClusterXML::cluster_num_paths =  2;
22

    
23
const char *ClusterXML::cluster_paths[] = {
24
    "/CLUSTER/TEMPLATE/",
25
    "/CLUSTER/"};
26

    
27
/* -------------------------------------------------------------------------- */
28
/* -------------------------------------------------------------------------- */
29

    
30
void ClusterXML::init_attributes()
31
{
32
    xpath(oid, "/CLUSTER/ID", -1);
33

    
34
    //-------------------- Init search xpath routes ---------------------------
35
    ObjectXML::paths     = cluster_paths;
36
    ObjectXML::num_paths = cluster_num_paths;
37
}