Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
scheduler_python.cc File Reference
#include "logical_blocks_scheduler.hh"
#include "../common/context_singleton.hh"
#include "../messages/blockinfo.hh"
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/exceptions.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/foreach.hpp>
Include dependency graph for scheduler_python.cc:

Macros

#define WRITE   1
 
#define READ   0
 
#define OUTPUT_LEN   (1 << 18)
 

Functions

void addblock (FileDescription &file_desc, std::vector< std::string > nodes, std::vector< int > sblock, string host, int block_seq, Histogram *)
 

Variables

string input
 

Macro Definition Documentation

#define OUTPUT_LEN   (1 << 18)
#define READ   0
#define WRITE   1

Function Documentation

void addblock ( FileDescription file_desc,
std::vector< std::string >  nodes,
std::vector< int >  sblock,
string  host,
int  block_seq,
Histogram boundaries 
)

Variable Documentation

string input
Initial value:
= " \
{\
\"nodes\" : [0, 1, 2, 3, 4, 5],\
\"io\" : [0.1, 0.4, 0.2, 0.5, 0.6, 0.3],\
\"chunksPerBlock\" : 10,\
\"chunks\" : {\
\"0\" : [0, 1, 6, 7, 5, 12, 13, 11, 18, 19, 17, 24, 25, 23, 30, 31, 29, 36, 37, 35, 42, 43, 41, 48, 49, 47, 54, 55, 53, 60, 61, 59, 66, 67, 65, 72, 73, 71, 78, 79, 77, 84, 85, 83, 90, 91, 89, 96, 97, 95],\
\"1\" : [1, 2, 0, 7, 8, 6, 13, 14, 12, 19, 20, 18, 25, 26, 24, 31, 32, 30, 37, 38, 36, 43, 44, 42, 49, 50, 48, 55, 56, 54, 61, 62, 60, 67, 68, 66, 73, 74, 72, 79, 80, 78, 85, 86, 84, 91, 92, 90, 97, 98, 96],\
\"2\" : [2, 3, 1, 8, 9, 7, 14, 15, 13, 20, 21, 19, 26, 27, 25, 32, 33, 31, 38, 39, 37, 44, 45, 43, 50, 51, 49, 56, 57, 55, 62, 63, 61, 68, 69, 67, 74, 75, 73, 80, 81, 79, 86, 87, 85, 92, 93, 91, 98, 99, 97],\
\"3\" : [3, 4, 2, 9, 10, 8, 15, 16, 14, 21, 22, 20, 27, 28, 26, 33, 34, 32, 39, 40, 38, 45, 46, 44, 51, 52, 50, 57, 58, 56, 63, 64, 62, 69, 70, 68, 75, 76, 74, 81, 82, 80, 87, 88, 86, 93, 94, 92, 99, 0, 98],\
\"4\" : [4, 5, 3, 10, 11, 9, 16, 17, 15, 22, 23, 21, 28, 29, 27, 34, 35, 33, 40, 41, 39, 46, 47, 45, 52, 53, 51, 58, 59, 57, 64, 65, 63, 70, 71, 69, 76, 77, 75, 82, 83, 81, 88, 89, 87, 94, 95, 93, 99],\
\"5\" : [5, 6, 4, 11, 12, 10, 17, 18, 16, 23, 24, 22, 29, 30, 28, 35, 36, 34, 41, 42, 40, 47, 48, 46, 53, 54, 52, 59, 60, 58, 65, 66, 64, 71, 72, 70, 77, 78, 76, 83, 84, 82, 89, 90, 88, 95, 96, 94]\
}}"