/usr/share/pyshared/arc.py is in nordugrid-arc-python 1.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_arc', [dirname(__file__)])
except ImportError:
import _arc
return _arc
if fp is not None:
try:
_mod = imp.load_module('_arc', fp, pathname, description)
finally:
fp.close()
return _mod
_arc = swig_import_helper()
del swig_import_helper
else:
import _arc
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name)
def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0
class SwigPyIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_SwigPyIterator
__del__ = lambda self : None;
def value(self): return _arc.SwigPyIterator_value(self)
def incr(self, n = 1): return _arc.SwigPyIterator_incr(self, n)
def decr(self, n = 1): return _arc.SwigPyIterator_decr(self, n)
def distance(self, *args): return _arc.SwigPyIterator_distance(self, *args)
def equal(self, *args): return _arc.SwigPyIterator_equal(self, *args)
def copy(self): return _arc.SwigPyIterator_copy(self)
def next(self): return _arc.SwigPyIterator_next(self)
def __next__(self): return _arc.SwigPyIterator___next__(self)
def previous(self): return _arc.SwigPyIterator_previous(self)
def advance(self, *args): return _arc.SwigPyIterator_advance(self, *args)
def __eq__(self, *args): return _arc.SwigPyIterator___eq__(self, *args)
def __ne__(self, *args): return _arc.SwigPyIterator___ne__(self, *args)
def __iadd__(self, *args): return _arc.SwigPyIterator___iadd__(self, *args)
def __isub__(self, *args): return _arc.SwigPyIterator___isub__(self, *args)
def __add__(self, *args): return _arc.SwigPyIterator___add__(self, *args)
def __sub__(self, *args): return _arc.SwigPyIterator___sub__(self, *args)
def __iter__(self): return self
SwigPyIterator_swigregister = _arc.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
class StringPair(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, StringPair, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, StringPair, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _arc.new_StringPair(*args)
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["first"] = _arc.StringPair_first_set
__swig_getmethods__["first"] = _arc.StringPair_first_get
if _newclass:first = _swig_property(_arc.StringPair_first_get, _arc.StringPair_first_set)
__swig_setmethods__["second"] = _arc.StringPair_second_set
__swig_getmethods__["second"] = _arc.StringPair_second_get
if _newclass:second = _swig_property(_arc.StringPair_second_get, _arc.StringPair_second_set)
def __len__(self): return 2
def __repr__(self): return str((self.first, self.second))
def __getitem__(self, index):
if not (index % 2):
return self.first
else:
return self.second
def __setitem__(self, index, val):
if not (index % 2):
self.first = val
else:
self.second = val
__swig_destroy__ = _arc.delete_StringPair
__del__ = lambda self : None;
StringPair_swigregister = _arc.StringPair_swigregister
StringPair_swigregister(StringPair)
class StringList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, StringList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, StringList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.StringList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.StringList___nonzero__(self)
def __bool__(self): return _arc.StringList___bool__(self)
def __len__(self): return _arc.StringList___len__(self)
def pop(self): return _arc.StringList_pop(self)
def __getslice__(self, *args): return _arc.StringList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.StringList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.StringList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.StringList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.StringList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.StringList___setitem__(self, *args)
def append(self, *args): return _arc.StringList_append(self, *args)
def empty(self): return _arc.StringList_empty(self)
def size(self): return _arc.StringList_size(self)
def clear(self): return _arc.StringList_clear(self)
def swap(self, *args): return _arc.StringList_swap(self, *args)
def get_allocator(self): return _arc.StringList_get_allocator(self)
def begin(self): return _arc.StringList_begin(self)
def end(self): return _arc.StringList_end(self)
def rbegin(self): return _arc.StringList_rbegin(self)
def rend(self): return _arc.StringList_rend(self)
def pop_back(self): return _arc.StringList_pop_back(self)
def erase(self, *args): return _arc.StringList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_StringList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.StringList_push_back(self, *args)
def front(self): return _arc.StringList_front(self)
def back(self): return _arc.StringList_back(self)
def assign(self, *args): return _arc.StringList_assign(self, *args)
def resize(self, *args): return _arc.StringList_resize(self, *args)
def insert(self, *args): return _arc.StringList_insert(self, *args)
def pop_front(self): return _arc.StringList_pop_front(self)
def push_front(self, *args): return _arc.StringList_push_front(self, *args)
def reverse(self): return _arc.StringList_reverse(self)
__swig_destroy__ = _arc.delete_StringList
__del__ = lambda self : None;
StringList_swigregister = _arc.StringList_swigregister
StringList_swigregister(StringList)
class StringStringMap(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, StringStringMap, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, StringStringMap, name)
__repr__ = _swig_repr
def iterator(self): return _arc.StringStringMap_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.StringStringMap___nonzero__(self)
def __bool__(self): return _arc.StringStringMap___bool__(self)
def __len__(self): return _arc.StringStringMap___len__(self)
def __iter__(self): return self.key_iterator()
def iterkeys(self): return self.key_iterator()
def itervalues(self): return self.value_iterator()
def iteritems(self): return self.iterator()
def __getitem__(self, *args): return _arc.StringStringMap___getitem__(self, *args)
def __delitem__(self, *args): return _arc.StringStringMap___delitem__(self, *args)
def has_key(self, *args): return _arc.StringStringMap_has_key(self, *args)
def keys(self): return _arc.StringStringMap_keys(self)
def values(self): return _arc.StringStringMap_values(self)
def items(self): return _arc.StringStringMap_items(self)
def __contains__(self, *args): return _arc.StringStringMap___contains__(self, *args)
def key_iterator(self): return _arc.StringStringMap_key_iterator(self)
def value_iterator(self): return _arc.StringStringMap_value_iterator(self)
def __setitem__(self, *args): return _arc.StringStringMap___setitem__(self, *args)
def asdict(self): return _arc.StringStringMap_asdict(self)
def __init__(self, *args):
this = _arc.new_StringStringMap(*args)
try: self.this.append(this)
except: self.this = this
def empty(self): return _arc.StringStringMap_empty(self)
def size(self): return _arc.StringStringMap_size(self)
def clear(self): return _arc.StringStringMap_clear(self)
def swap(self, *args): return _arc.StringStringMap_swap(self, *args)
def get_allocator(self): return _arc.StringStringMap_get_allocator(self)
def begin(self): return _arc.StringStringMap_begin(self)
def end(self): return _arc.StringStringMap_end(self)
def rbegin(self): return _arc.StringStringMap_rbegin(self)
def rend(self): return _arc.StringStringMap_rend(self)
def count(self, *args): return _arc.StringStringMap_count(self, *args)
def erase(self, *args): return _arc.StringStringMap_erase(self, *args)
def find(self, *args): return _arc.StringStringMap_find(self, *args)
def lower_bound(self, *args): return _arc.StringStringMap_lower_bound(self, *args)
def upper_bound(self, *args): return _arc.StringStringMap_upper_bound(self, *args)
__swig_destroy__ = _arc.delete_StringStringMap
__del__ = lambda self : None;
StringStringMap_swigregister = _arc.StringStringMap_swigregister
StringStringMap_swigregister(StringStringMap)
import warnings
def deprecated(method):
"""This decorator is used to mark python methods as deprecated, _not_
functions. It will result in a warning being emmitted when the method
is used."""
def newMethod(*args, **kwargs):
warnings.warn("Call to deprecated method 'arc.%s.%s'." % (args[0].__class__.__name__, method.__name__), category = DeprecationWarning, stacklevel = 2)
return method(*args, **kwargs)
newMethod.__name__ = method.__name__
newMethod.__doc__ = method.__doc__
newMethod.__dict__.update(method.__dict__)
return newMethod
class XMLNodeList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XMLNodeList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XMLNodeList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.XMLNodeList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.XMLNodeList___nonzero__(self)
def __bool__(self): return _arc.XMLNodeList___bool__(self)
def __len__(self): return _arc.XMLNodeList___len__(self)
def pop(self): return _arc.XMLNodeList_pop(self)
def __getslice__(self, *args): return _arc.XMLNodeList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.XMLNodeList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.XMLNodeList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.XMLNodeList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.XMLNodeList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.XMLNodeList___setitem__(self, *args)
def append(self, *args): return _arc.XMLNodeList_append(self, *args)
def empty(self): return _arc.XMLNodeList_empty(self)
def size(self): return _arc.XMLNodeList_size(self)
def clear(self): return _arc.XMLNodeList_clear(self)
def swap(self, *args): return _arc.XMLNodeList_swap(self, *args)
def get_allocator(self): return _arc.XMLNodeList_get_allocator(self)
def begin(self): return _arc.XMLNodeList_begin(self)
def end(self): return _arc.XMLNodeList_end(self)
def rbegin(self): return _arc.XMLNodeList_rbegin(self)
def rend(self): return _arc.XMLNodeList_rend(self)
def pop_back(self): return _arc.XMLNodeList_pop_back(self)
def erase(self, *args): return _arc.XMLNodeList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_XMLNodeList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.XMLNodeList_push_back(self, *args)
def front(self): return _arc.XMLNodeList_front(self)
def back(self): return _arc.XMLNodeList_back(self)
def assign(self, *args): return _arc.XMLNodeList_assign(self, *args)
def resize(self, *args): return _arc.XMLNodeList_resize(self, *args)
def insert(self, *args): return _arc.XMLNodeList_insert(self, *args)
def pop_front(self): return _arc.XMLNodeList_pop_front(self)
def push_front(self, *args): return _arc.XMLNodeList_push_front(self, *args)
def reverse(self): return _arc.XMLNodeList_reverse(self)
__swig_destroy__ = _arc.delete_XMLNodeList
__del__ = lambda self : None;
XMLNodeList_swigregister = _arc.XMLNodeList_swigregister
XMLNodeList_swigregister(XMLNodeList)
class URLList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, URLList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, URLList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.URLList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.URLList___nonzero__(self)
def __bool__(self): return _arc.URLList___bool__(self)
def __len__(self): return _arc.URLList___len__(self)
def pop(self): return _arc.URLList_pop(self)
def __getslice__(self, *args): return _arc.URLList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.URLList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.URLList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.URLList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.URLList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.URLList___setitem__(self, *args)
def append(self, *args): return _arc.URLList_append(self, *args)
def empty(self): return _arc.URLList_empty(self)
def size(self): return _arc.URLList_size(self)
def clear(self): return _arc.URLList_clear(self)
def swap(self, *args): return _arc.URLList_swap(self, *args)
def get_allocator(self): return _arc.URLList_get_allocator(self)
def begin(self): return _arc.URLList_begin(self)
def end(self): return _arc.URLList_end(self)
def rbegin(self): return _arc.URLList_rbegin(self)
def rend(self): return _arc.URLList_rend(self)
def pop_back(self): return _arc.URLList_pop_back(self)
def erase(self, *args): return _arc.URLList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_URLList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.URLList_push_back(self, *args)
def front(self): return _arc.URLList_front(self)
def back(self): return _arc.URLList_back(self)
def assign(self, *args): return _arc.URLList_assign(self, *args)
def resize(self, *args): return _arc.URLList_resize(self, *args)
def insert(self, *args): return _arc.URLList_insert(self, *args)
def pop_front(self): return _arc.URLList_pop_front(self)
def push_front(self, *args): return _arc.URLList_push_front(self, *args)
def reverse(self): return _arc.URLList_reverse(self)
__swig_destroy__ = _arc.delete_URLList
__del__ = lambda self : None;
URLList_swigregister = _arc.URLList_swigregister
URLList_swigregister(URLList)
class URLVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, URLVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, URLVector, name)
__repr__ = _swig_repr
def iterator(self): return _arc.URLVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.URLVector___nonzero__(self)
def __bool__(self): return _arc.URLVector___bool__(self)
def __len__(self): return _arc.URLVector___len__(self)
def pop(self): return _arc.URLVector_pop(self)
def __getslice__(self, *args): return _arc.URLVector___getslice__(self, *args)
def __setslice__(self, *args): return _arc.URLVector___setslice__(self, *args)
def __delslice__(self, *args): return _arc.URLVector___delslice__(self, *args)
def __delitem__(self, *args): return _arc.URLVector___delitem__(self, *args)
def __getitem__(self, *args): return _arc.URLVector___getitem__(self, *args)
def __setitem__(self, *args): return _arc.URLVector___setitem__(self, *args)
def append(self, *args): return _arc.URLVector_append(self, *args)
def empty(self): return _arc.URLVector_empty(self)
def size(self): return _arc.URLVector_size(self)
def clear(self): return _arc.URLVector_clear(self)
def swap(self, *args): return _arc.URLVector_swap(self, *args)
def get_allocator(self): return _arc.URLVector_get_allocator(self)
def begin(self): return _arc.URLVector_begin(self)
def end(self): return _arc.URLVector_end(self)
def rbegin(self): return _arc.URLVector_rbegin(self)
def rend(self): return _arc.URLVector_rend(self)
def pop_back(self): return _arc.URLVector_pop_back(self)
def erase(self, *args): return _arc.URLVector_erase(self, *args)
def __init__(self, *args):
this = _arc.new_URLVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.URLVector_push_back(self, *args)
def front(self): return _arc.URLVector_front(self)
def back(self): return _arc.URLVector_back(self)
def assign(self, *args): return _arc.URLVector_assign(self, *args)
def resize(self, *args): return _arc.URLVector_resize(self, *args)
def insert(self, *args): return _arc.URLVector_insert(self, *args)
def reserve(self, *args): return _arc.URLVector_reserve(self, *args)
def capacity(self): return _arc.URLVector_capacity(self)
__swig_destroy__ = _arc.delete_URLVector
__del__ = lambda self : None;
URLVector_swigregister = _arc.URLVector_swigregister
URLVector_swigregister(URLVector)
class URLListMap(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, URLListMap, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, URLListMap, name)
__repr__ = _swig_repr
def iterator(self): return _arc.URLListMap_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.URLListMap___nonzero__(self)
def __bool__(self): return _arc.URLListMap___bool__(self)
def __len__(self): return _arc.URLListMap___len__(self)
def __iter__(self): return self.key_iterator()
def iterkeys(self): return self.key_iterator()
def itervalues(self): return self.value_iterator()
def iteritems(self): return self.iterator()
def __getitem__(self, *args): return _arc.URLListMap___getitem__(self, *args)
def __delitem__(self, *args): return _arc.URLListMap___delitem__(self, *args)
def has_key(self, *args): return _arc.URLListMap_has_key(self, *args)
def keys(self): return _arc.URLListMap_keys(self)
def values(self): return _arc.URLListMap_values(self)
def items(self): return _arc.URLListMap_items(self)
def __contains__(self, *args): return _arc.URLListMap___contains__(self, *args)
def key_iterator(self): return _arc.URLListMap_key_iterator(self)
def value_iterator(self): return _arc.URLListMap_value_iterator(self)
def __setitem__(self, *args): return _arc.URLListMap___setitem__(self, *args)
def asdict(self): return _arc.URLListMap_asdict(self)
def __init__(self, *args):
this = _arc.new_URLListMap(*args)
try: self.this.append(this)
except: self.this = this
def empty(self): return _arc.URLListMap_empty(self)
def size(self): return _arc.URLListMap_size(self)
def clear(self): return _arc.URLListMap_clear(self)
def swap(self, *args): return _arc.URLListMap_swap(self, *args)
def get_allocator(self): return _arc.URLListMap_get_allocator(self)
def begin(self): return _arc.URLListMap_begin(self)
def end(self): return _arc.URLListMap_end(self)
def rbegin(self): return _arc.URLListMap_rbegin(self)
def rend(self): return _arc.URLListMap_rend(self)
def count(self, *args): return _arc.URLListMap_count(self, *args)
def erase(self, *args): return _arc.URLListMap_erase(self, *args)
def find(self, *args): return _arc.URLListMap_find(self, *args)
def lower_bound(self, *args): return _arc.URLListMap_lower_bound(self, *args)
def upper_bound(self, *args): return _arc.URLListMap_upper_bound(self, *args)
__swig_destroy__ = _arc.delete_URLListMap
__del__ = lambda self : None;
URLListMap_swigregister = _arc.URLListMap_swigregister
URLListMap_swigregister(URLListMap)
class URLLocationList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, URLLocationList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, URLLocationList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.URLLocationList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.URLLocationList___nonzero__(self)
def __bool__(self): return _arc.URLLocationList___bool__(self)
def __len__(self): return _arc.URLLocationList___len__(self)
def pop(self): return _arc.URLLocationList_pop(self)
def __getslice__(self, *args): return _arc.URLLocationList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.URLLocationList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.URLLocationList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.URLLocationList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.URLLocationList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.URLLocationList___setitem__(self, *args)
def append(self, *args): return _arc.URLLocationList_append(self, *args)
def empty(self): return _arc.URLLocationList_empty(self)
def size(self): return _arc.URLLocationList_size(self)
def clear(self): return _arc.URLLocationList_clear(self)
def swap(self, *args): return _arc.URLLocationList_swap(self, *args)
def get_allocator(self): return _arc.URLLocationList_get_allocator(self)
def begin(self): return _arc.URLLocationList_begin(self)
def end(self): return _arc.URLLocationList_end(self)
def rbegin(self): return _arc.URLLocationList_rbegin(self)
def rend(self): return _arc.URLLocationList_rend(self)
def pop_back(self): return _arc.URLLocationList_pop_back(self)
def erase(self, *args): return _arc.URLLocationList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_URLLocationList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.URLLocationList_push_back(self, *args)
def front(self): return _arc.URLLocationList_front(self)
def back(self): return _arc.URLLocationList_back(self)
def assign(self, *args): return _arc.URLLocationList_assign(self, *args)
def resize(self, *args): return _arc.URLLocationList_resize(self, *args)
def insert(self, *args): return _arc.URLLocationList_insert(self, *args)
def pop_front(self): return _arc.URLLocationList_pop_front(self)
def push_front(self, *args): return _arc.URLLocationList_push_front(self, *args)
def reverse(self): return _arc.URLLocationList_reverse(self)
__swig_destroy__ = _arc.delete_URLLocationList
__del__ = lambda self : None;
URLLocationList_swigregister = _arc.URLLocationList_swigregister
URLLocationList_swigregister(URLLocationList)
class XMLNodePList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XMLNodePList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XMLNodePList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.XMLNodePList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.XMLNodePList___nonzero__(self)
def __bool__(self): return _arc.XMLNodePList___bool__(self)
def __len__(self): return _arc.XMLNodePList___len__(self)
def pop(self): return _arc.XMLNodePList_pop(self)
def __getslice__(self, *args): return _arc.XMLNodePList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.XMLNodePList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.XMLNodePList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.XMLNodePList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.XMLNodePList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.XMLNodePList___setitem__(self, *args)
def append(self, *args): return _arc.XMLNodePList_append(self, *args)
def empty(self): return _arc.XMLNodePList_empty(self)
def size(self): return _arc.XMLNodePList_size(self)
def clear(self): return _arc.XMLNodePList_clear(self)
def swap(self, *args): return _arc.XMLNodePList_swap(self, *args)
def get_allocator(self): return _arc.XMLNodePList_get_allocator(self)
def begin(self): return _arc.XMLNodePList_begin(self)
def end(self): return _arc.XMLNodePList_end(self)
def rbegin(self): return _arc.XMLNodePList_rbegin(self)
def rend(self): return _arc.XMLNodePList_rend(self)
def pop_back(self): return _arc.XMLNodePList_pop_back(self)
def erase(self, *args): return _arc.XMLNodePList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_XMLNodePList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.XMLNodePList_push_back(self, *args)
def front(self): return _arc.XMLNodePList_front(self)
def back(self): return _arc.XMLNodePList_back(self)
def assign(self, *args): return _arc.XMLNodePList_assign(self, *args)
def resize(self, *args): return _arc.XMLNodePList_resize(self, *args)
def insert(self, *args): return _arc.XMLNodePList_insert(self, *args)
def pop_front(self): return _arc.XMLNodePList_pop_front(self)
def push_front(self, *args): return _arc.XMLNodePList_push_front(self, *args)
def remove(self, *args): return _arc.XMLNodePList_remove(self, *args)
def unique(self): return _arc.XMLNodePList_unique(self)
def reverse(self): return _arc.XMLNodePList_reverse(self)
def sort(self): return _arc.XMLNodePList_sort(self)
def merge(self, *args): return _arc.XMLNodePList_merge(self, *args)
__swig_destroy__ = _arc.delete_XMLNodePList
__del__ = lambda self : None;
XMLNodePList_swigregister = _arc.XMLNodePList_swigregister
XMLNodePList_swigregister(XMLNodePList)
class LogDestinationList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LogDestinationList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LogDestinationList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.LogDestinationList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.LogDestinationList___nonzero__(self)
def __bool__(self): return _arc.LogDestinationList___bool__(self)
def __len__(self): return _arc.LogDestinationList___len__(self)
def pop(self): return _arc.LogDestinationList_pop(self)
def __getslice__(self, *args): return _arc.LogDestinationList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.LogDestinationList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.LogDestinationList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.LogDestinationList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.LogDestinationList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.LogDestinationList___setitem__(self, *args)
def append(self, *args): return _arc.LogDestinationList_append(self, *args)
def empty(self): return _arc.LogDestinationList_empty(self)
def size(self): return _arc.LogDestinationList_size(self)
def clear(self): return _arc.LogDestinationList_clear(self)
def swap(self, *args): return _arc.LogDestinationList_swap(self, *args)
def get_allocator(self): return _arc.LogDestinationList_get_allocator(self)
def begin(self): return _arc.LogDestinationList_begin(self)
def end(self): return _arc.LogDestinationList_end(self)
def rbegin(self): return _arc.LogDestinationList_rbegin(self)
def rend(self): return _arc.LogDestinationList_rend(self)
def pop_back(self): return _arc.LogDestinationList_pop_back(self)
def erase(self, *args): return _arc.LogDestinationList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_LogDestinationList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.LogDestinationList_push_back(self, *args)
def front(self): return _arc.LogDestinationList_front(self)
def back(self): return _arc.LogDestinationList_back(self)
def assign(self, *args): return _arc.LogDestinationList_assign(self, *args)
def resize(self, *args): return _arc.LogDestinationList_resize(self, *args)
def insert(self, *args): return _arc.LogDestinationList_insert(self, *args)
def pop_front(self): return _arc.LogDestinationList_pop_front(self)
def push_front(self, *args): return _arc.LogDestinationList_push_front(self, *args)
def remove(self, *args): return _arc.LogDestinationList_remove(self, *args)
def unique(self): return _arc.LogDestinationList_unique(self)
def reverse(self): return _arc.LogDestinationList_reverse(self)
def sort(self): return _arc.LogDestinationList_sort(self)
def merge(self, *args): return _arc.LogDestinationList_merge(self, *args)
__swig_destroy__ = _arc.delete_LogDestinationList
__del__ = lambda self : None;
LogDestinationList_swigregister = _arc.LogDestinationList_swigregister
LogDestinationList_swigregister(LogDestinationList)
class NS(StringStringMap):
__swig_setmethods__ = {}
for _s in [StringStringMap]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, NS, name, value)
__swig_getmethods__ = {}
for _s in [StringStringMap]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, NS, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::NS::NS(const std::map<
std::string, std::string > &nslist)
"""
this = _arc.new_NS(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_NS
__del__ = lambda self : None;
NS_swigregister = _arc.NS_swigregister
NS_swigregister(NS)
class XMLNode(_object):
"""
Wrapper for LibXML library Tree interface.
This class wraps XML Node, Document and Property/Attribute structures.
Each instance serves as pointer to actual LibXML element and provides
convenient (for chosen purpose) methods for manipulating it. This
class has no special ties to LibXML library and may be easily
rewritten for any XML parser which provides interface similar to
LibXML Tree. It implements only small subset of XML capabilities,
which is probably enough for performing most of useful actions. This
class also filters out (usually) useless textual nodes which are often
used to make XML documents human-readable.
C++ includes: XMLNode.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XMLNode, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XMLNode, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::XMLNode::XMLNode(const NS &ns, const char *name)
Creates empty XML document structure with specified namespaces.
Created XML contains only root element named 'name'. Created structure
is pointed and owned by constructed instance
"""
this = _arc.new_XMLNode(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_XMLNode
__del__ = lambda self : None;
def New(self, *args):
"""
void
Arc::XMLNode::New(XMLNode &node) const
Creates a copy of XML (sub)tree. If object does not represent whole
document - top level document is created. 'node' becomes a pointer
owning new XML document.
"""
return _arc.XMLNode_New(self, *args)
def Exchange(self, *args):
"""
void
Arc::XMLNode::Exchange(XMLNode &node)
Exchanges XML (sub)trees. Following conbinations are possible If
either this ir node are refering owned XML tree (top level node) then
references are simply excanged. This opearationis fast. If both this
and node are refering to XML (sub)tree of different documents then
(sub)trees are exchahed between documments. If both this and node are
refering to XML (sub)tree of same document then (sub)trees are moved
inside document. The main reason for this method is to provide
effective way to insert one XML document inside another. One should
take into account that if any of exchanged nodes is top level it must
be also owner of document. Otherwise method will fail. If both nodes
are top level owners and/or invlaid nodes then this method is
identical to Swap().
"""
return _arc.XMLNode_Exchange(self, *args)
def Move(self, *args):
"""
void
Arc::XMLNode::Move(XMLNode &node)
Moves content of this XML (sub)tree to node This opeartion is similar
to New except that XML (sub)tree to refered by this is destroyed. This
method is more effective than combination of New() and Destroy()
because internally it is optimized not to copy data if not needed. The
main purpose of this is to effectively extract part of XML document.
"""
return _arc.XMLNode_Move(self, *args)
def Swap(self, *args):
"""
void
Arc::XMLNode::Swap(XMLNode &node)
Swaps XML (sub)trees to this this and node refer. For XML subtrees
this method is not anyhow different then using combinaiion XMLNode
tmp=*this; *this=node; node=tmp; But in case of either this or node
owning XML document ownership is swapped too. And this is a main
purpose of Swap() method.
"""
return _arc.XMLNode_Swap(self, *args)
def __nonzero__(self):
return _arc.XMLNode___nonzero__(self)
__bool__ = __nonzero__
def Same(self, *args):
"""
bool
Arc::XMLNode::Same(const XMLNode &node)
Returns true if 'node' represents same XML element - for bindings
"""
return _arc.XMLNode_Same(self, *args)
def __eq__(self, *args): return _arc.XMLNode___eq__(self, *args)
def __ne__(self, *args): return _arc.XMLNode___ne__(self, *args)
def Child(self, n = 0):
"""
XMLNode
Arc::XMLNode::Child(int n=0)
Returns XMLNode instance representing n-th child of XML element. If
such does not exist invalid XMLNode instance is returned
"""
return _arc.XMLNode_Child(self, n)
def Size(self):
"""
int
Arc::XMLNode::Size(void) const
Returns number of children nodes
"""
return _arc.XMLNode_Size(self)
def Get(self, *args):
"""
XMLNode
Arc::XMLNode::Get(const std::string &name) const
Same as operator[]
"""
return _arc.XMLNode_Get(self, *args)
def Prefix(self):
"""
std::string
Arc::XMLNode::Prefix(void) const
Returns namespace prefix of XML node
"""
return _arc.XMLNode_Prefix(self)
def FullName(self):
"""
std::string
Arc::XMLNode::FullName(void) const
Returns prefix:name of XML node
"""
return _arc.XMLNode_FullName(self)
def Namespace(self):
"""
std::string
Arc::XMLNode::Namespace(void) const
Returns namespace URI of XML node
"""
return _arc.XMLNode_Namespace(self)
def Name(self, *args):
"""
void
Arc::XMLNode::Name(const std::string &name)
Assigns new name to XML node
"""
return _arc.XMLNode_Name(self, *args)
def GetXML(self, *args):
"""
void
Arc::XMLNode::GetXML(std::string &out_xml_str, const std::string
&encoding, bool user_friendly=false) const
Fills argument with this instance XML subtree textual representation
if the XML subtree is corresponding to the encoding format specified
in the argument, e.g. utf-8
"""
return _arc.XMLNode_GetXML(self, *args)
def GetDoc(self, user_friendly = False):
"""
void
Arc::XMLNode::GetDoc(std::string &out_xml_str, bool
user_friendly=false) const
Fills argument with whole XML document textual representation
"""
return _arc.XMLNode_GetDoc(self, user_friendly)
def __str__(self): return _arc.XMLNode___str__(self)
def Set(self, *args):
"""
void
Arc::XMLNode::Set(const std::string &content)
Same as operator=. Used for bindings.
"""
return _arc.XMLNode_Set(self, *args)
def Attribute(self, *args):
"""
XMLNode
Arc::XMLNode::Attribute(const std::string &name)
Returns XMLNode instance representing first attribute of node with
specified by name
"""
return _arc.XMLNode_Attribute(self, *args)
def NewAttribute(self, *args):
"""
XMLNode
Arc::XMLNode::NewAttribute(const std::string &name)
Creates new attribute with specified name.
"""
return _arc.XMLNode_NewAttribute(self, *args)
def AttributesSize(self):
"""
int
Arc::XMLNode::AttributesSize(void) const
Returns number of attributes of node
"""
return _arc.XMLNode_AttributesSize(self)
def Namespaces(self, *args):
"""
NS
Arc::XMLNode::Namespaces(void)
Returns namespaces known at this node
"""
return _arc.XMLNode_Namespaces(self, *args)
def NamespacePrefix(self, *args):
"""
std::string
Arc::XMLNode::NamespacePrefix(const char *urn)
Returns prefix of specified namespace. Empty string if no such
namespace.
"""
return _arc.XMLNode_NamespacePrefix(self, *args)
def NewChild(self, *args):
"""
XMLNode
Arc::XMLNode::NewChild(const XMLNode &node, int n=-1, bool
global_order=false)
Link a copy of supplied XML node as child. Returns instance refering
to new child. XML element is a copy of supplied one but not owned by
returned instance
"""
return _arc.XMLNode_NewChild(self, *args)
def Replace(self, *args):
"""
void
Arc::XMLNode::Replace(const XMLNode &node)
Makes a copy of supplied XML node and makes this instance refere to it
"""
return _arc.XMLNode_Replace(self, *args)
def Destroy(self):
"""
void
Arc::XMLNode::Destroy(void)
Destroys underlying XML element. XML element is unlinked from XML tree
and destroyed. After this operation XMLNode instance becomes invalid
"""
return _arc.XMLNode_Destroy(self)
def Path(self, *args):
"""
XMLNodeList
Arc::XMLNode::Path(const std::string &path)
Collects nodes corresponding to specified path. This is a convenience
function to cover common use of XPath but without performance hit.
Path is made of node_name[/node_name[...]] and is relative to current
node. node_names are treated in same way as in operator[]. Returns all
nodes which are represented by path.
"""
return _arc.XMLNode_Path(self, *args)
def XPathLookup(self, *args):
"""
XMLNodeList
Arc::XMLNode::XPathLookup(const std::string &xpathExpr, const NS
&nsList)
Uses xPath to look up the whole xml structure, Returns a list of
XMLNode points. The xpathExpr should be like "//xx:child1/" which
indicates the namespace and node that you would like to find; The
nsList is the namespace the result should belong to (e.g.
xx="uri:test"). Query is run on whole XML document but only the
elements belonging to this XML subtree are returned.
"""
return _arc.XMLNode_XPathLookup(self, *args)
def GetRoot(self):
"""
XMLNode
Arc::XMLNode::GetRoot(void)
Get the root node from any child node of the tree
"""
return _arc.XMLNode_GetRoot(self)
def Parent(self):
"""
XMLNode
Arc::XMLNode::Parent(void)
Get the parent node from any child node of the tree
"""
return _arc.XMLNode_Parent(self)
def SaveToFile(self, *args):
"""
bool
Arc::XMLNode::SaveToFile(const std::string &file_name) const
Save string representation of node to file
"""
return _arc.XMLNode_SaveToFile(self, *args)
def SaveToStream(self, *args):
"""
bool
Arc::XMLNode::SaveToStream(std::ostream &out) const
Save string representation of node to stream
"""
return _arc.XMLNode_SaveToStream(self, *args)
def ReadFromFile(self, *args):
"""
bool
Arc::XMLNode::ReadFromFile(const std::string &file_name)
Read XML document from file and associate it with this node
"""
return _arc.XMLNode_ReadFromFile(self, *args)
def ReadFromStream(self, *args):
"""
bool
Arc::XMLNode::ReadFromStream(std::istream &in)
Read XML document from stream and associate it with this node
"""
return _arc.XMLNode_ReadFromStream(self, *args)
def Validate(self, *args):
"""
bool
Arc::XMLNode::Validate(const std::string &schema_file, std::string
&err_msg)
Remove all eye-candy information leaving only informational parts *
void Purify(void); XML schema validation against the schema file
defined as argument
"""
return _arc.XMLNode_Validate(self, *args)
XMLNode_swigregister = _arc.XMLNode_swigregister
XMLNode_swigregister(XMLNode)
def __rshift__(*args):
return _arc.__rshift__(*args)
__rshift__ = _arc.__rshift__
class XMLNodeContainer(_object):
"""
Container for multiple XMLNode elements
C++ includes: XMLNode.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XMLNodeContainer, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XMLNodeContainer, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::XMLNodeContainer::XMLNodeContainer(const XMLNodeContainer &)
Copy constructor. Add nodes from argument. Nodes owning XML document
are copied using AddNew(). Not owning nodes are linked using Add()
method.
"""
this = _arc.new_XMLNodeContainer(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_XMLNodeContainer
__del__ = lambda self : None;
def Add(self, *args):
"""
void
Arc::XMLNodeContainer::Add(const std::list< XMLNode > &)
Link multiple XML subtrees to container.
"""
return _arc.XMLNodeContainer_Add(self, *args)
def AddNew(self, *args):
"""
void
Arc::XMLNodeContainer::AddNew(const std::list< XMLNode > &)
Copy multiple XML subtrees to container.
"""
return _arc.XMLNodeContainer_AddNew(self, *args)
def Size(self):
"""
int
Arc::XMLNodeContainer::Size(void) const
Return number of refered/stored nodes.
"""
return _arc.XMLNodeContainer_Size(self)
def Nodes(self):
"""
std::list<XMLNode> Arc::XMLNodeContainer::Nodes(void)
Returns all stored nodes.
"""
return _arc.XMLNodeContainer_Nodes(self)
XMLNodeContainer_swigregister = _arc.XMLNodeContainer_swigregister
XMLNodeContainer_swigregister(XMLNodeContainer)
class Config(XMLNode):
"""
Configuration element - represents (sub)tree of ARC configuration.
This class is intended to be used to pass configuration details to
various parts of HED and external modules. Currently it's just a
wrapper over XML tree. But than may change in a future, although
interface should be preserved. Currently it is capable of loading XML
configuration document from file. In future it will be capable of
loading more user-readable format and process it into tree-like
structure convenient for machine processing (XML-like). So far there
are no schema and/or namespaces assigned.
C++ includes: ArcConfig.h
"""
__swig_setmethods__ = {}
for _s in [XMLNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, Config, name, value)
__swig_getmethods__ = {}
for _s in [XMLNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, Config, name)
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_Config
__del__ = lambda self : None;
def __init__(self, *args):
"""
Arc::Config::Config(const
Config &cfg)
Copy constructor used by language bindings
"""
this = _arc.new_Config(*args)
try: self.this.append(this)
except: self.this = this
def _print(self):
"""
void
Arc::Config::print(void)
Print structure of document. For debuging purposes. Printed content is
not an XML document.
"""
return _arc.Config__print(self)
def parse(self, *args):
"""
bool
Arc::Config::parse(const char *filename)
Parse configuration document from file 'filename'
"""
return _arc.Config_parse(self, *args)
def getFileName(self):
"""
const std::string&
Arc::Config::getFileName(void) const
Gives back file name of config file or empty string if it was
generared from the XMLNode subtree
"""
return _arc.Config_getFileName(self)
def setFileName(self, *args):
"""
void
Arc::Config::setFileName(const std::string &filename)
Set the file name of config file
"""
return _arc.Config_setFileName(self, *args)
def save(self, *args):
"""
void
Arc::Config::save(const char *filename)
Save to file
"""
return _arc.Config_save(self, *args)
Config_swigregister = _arc.Config_swigregister
Config_swigregister(Config)
class BaseConfig(_object):
"""
Configuration for client interface. It contains information which
can't be expressed in class constructor arguments. Most probably
common things like software installation location, identity of user,
etc.
C++ includes: ArcConfig.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, BaseConfig, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, BaseConfig, name)
__repr__ = _swig_repr
__swig_setmethods__["key"] = _arc.BaseConfig_key_set
__swig_getmethods__["key"] = _arc.BaseConfig_key_get
if _newclass:key = _swig_property(_arc.BaseConfig_key_get, _arc.BaseConfig_key_set)
__swig_setmethods__["cert"] = _arc.BaseConfig_cert_set
__swig_getmethods__["cert"] = _arc.BaseConfig_cert_get
if _newclass:cert = _swig_property(_arc.BaseConfig_cert_get, _arc.BaseConfig_cert_set)
__swig_setmethods__["proxy"] = _arc.BaseConfig_proxy_set
__swig_getmethods__["proxy"] = _arc.BaseConfig_proxy_get
if _newclass:proxy = _swig_property(_arc.BaseConfig_proxy_get, _arc.BaseConfig_proxy_set)
__swig_setmethods__["cafile"] = _arc.BaseConfig_cafile_set
__swig_getmethods__["cafile"] = _arc.BaseConfig_cafile_get
if _newclass:cafile = _swig_property(_arc.BaseConfig_cafile_get, _arc.BaseConfig_cafile_set)
__swig_setmethods__["cadir"] = _arc.BaseConfig_cadir_set
__swig_getmethods__["cadir"] = _arc.BaseConfig_cadir_get
if _newclass:cadir = _swig_property(_arc.BaseConfig_cadir_get, _arc.BaseConfig_cadir_set)
__swig_setmethods__["overlay"] = _arc.BaseConfig_overlay_set
__swig_getmethods__["overlay"] = _arc.BaseConfig_overlay_get
if _newclass:overlay = _swig_property(_arc.BaseConfig_overlay_get, _arc.BaseConfig_overlay_set)
def __init__(self):
"""Arc::BaseConfig::BaseConfig() """
this = _arc.new_BaseConfig()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_BaseConfig
__del__ = lambda self : None;
def AddPluginsPath(self, *args):
"""
void
Arc::BaseConfig::AddPluginsPath(const std::string &path)
Adds non-standard location of plugins
"""
return _arc.BaseConfig_AddPluginsPath(self, *args)
def AddPrivateKey(self, *args):
"""
void
Arc::BaseConfig::AddPrivateKey(const std::string &path)
Add private key
"""
return _arc.BaseConfig_AddPrivateKey(self, *args)
def AddCertificate(self, *args):
"""
void
Arc::BaseConfig::AddCertificate(const std::string &path)
Add certificate
"""
return _arc.BaseConfig_AddCertificate(self, *args)
def AddProxy(self, *args):
"""
void
Arc::BaseConfig::AddProxy(const std::string &path)
Add credentials proxy
"""
return _arc.BaseConfig_AddProxy(self, *args)
def AddCAFile(self, *args):
"""
void
Arc::BaseConfig::AddCAFile(const std::string &path)
Add CA file
"""
return _arc.BaseConfig_AddCAFile(self, *args)
def AddCADir(self, *args):
"""
void
Arc::BaseConfig::AddCADir(const std::string &path)
Add CA directory
"""
return _arc.BaseConfig_AddCADir(self, *args)
def AddOverlay(self, *args):
"""
void
Arc::BaseConfig::AddOverlay(XMLNode cfg)
Add configuration overlay
"""
return _arc.BaseConfig_AddOverlay(self, *args)
def GetOverlay(self, *args):
"""
void
Arc::BaseConfig::GetOverlay(std::string fname)
Read overlay from file
"""
return _arc.BaseConfig_GetOverlay(self, *args)
def MakeConfig(self, *args):
"""
virtual XMLNode
Arc::BaseConfig::MakeConfig(XMLNode cfg) const
Adds configuration part corresponding to stored information into
common configuration tree supplied in 'cfg' argument. Returns
reference to XML node representing configuration of ModuleManager
"""
return _arc.BaseConfig_MakeConfig(self, *args)
BaseConfig_swigregister = _arc.BaseConfig_swigregister
BaseConfig_swigregister(BaseConfig)
class ArcLocation(_object):
"""
Determines ARC installation location.
C++ includes: ArcLocation.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ArcLocation, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ArcLocation, name)
__repr__ = _swig_repr
__swig_getmethods__["Init"] = lambda x: _arc.ArcLocation_Init
if _newclass:Init = staticmethod(_arc.ArcLocation_Init)
__swig_getmethods__["Get"] = lambda x: _arc.ArcLocation_Get
if _newclass:Get = staticmethod(_arc.ArcLocation_Get)
__swig_getmethods__["GetPlugins"] = lambda x: _arc.ArcLocation_GetPlugins
if _newclass:GetPlugins = staticmethod(_arc.ArcLocation_GetPlugins)
def __init__(self):
this = _arc.new_ArcLocation()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ArcLocation
__del__ = lambda self : None;
ArcLocation_swigregister = _arc.ArcLocation_swigregister
ArcLocation_swigregister(ArcLocation)
def ArcLocation_Init(*args):
return _arc.ArcLocation_Init(*args)
ArcLocation_Init = _arc.ArcLocation_Init
def ArcLocation_Get():
return _arc.ArcLocation_Get()
ArcLocation_Get = _arc.ArcLocation_Get
def ArcLocation_GetPlugins():
return _arc.ArcLocation_GetPlugins()
ArcLocation_GetPlugins = _arc.ArcLocation_GetPlugins
class ArcVersion(_object):
"""
Determines ARC HED libraries version.
C++ includes: ArcVersion.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ArcVersion, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ArcVersion, name)
__repr__ = _swig_repr
__swig_getmethods__["Major"] = _arc.ArcVersion_Major_get
if _newclass:Major = _swig_property(_arc.ArcVersion_Major_get)
__swig_getmethods__["Minor"] = _arc.ArcVersion_Minor_get
if _newclass:Minor = _swig_property(_arc.ArcVersion_Minor_get)
__swig_getmethods__["Patch"] = _arc.ArcVersion_Patch_get
if _newclass:Patch = _swig_property(_arc.ArcVersion_Patch_get)
def __init__(self, *args):
"""Arc::ArcVersion::ArcVersion(const char *ver) """
this = _arc.new_ArcVersion(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ArcVersion
__del__ = lambda self : None;
ArcVersion_swigregister = _arc.ArcVersion_swigregister
ArcVersion_swigregister(ArcVersion)
class PrintFBase(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, PrintFBase, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, PrintFBase, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_PrintFBase
__del__ = lambda self : None;
def msg(self, *args):
"""
virtual void
Arc::PrintFBase::msg(std::ostream &os)=0
"""
return _arc.PrintFBase_msg(self, *args)
def Retain(self):
"""
void
Arc::PrintFBase::Retain()
"""
return _arc.PrintFBase_Retain(self)
def Release(self):
"""
bool
Arc::PrintFBase::Release()
"""
return _arc.PrintFBase_Release(self)
PrintFBase_swigregister = _arc.PrintFBase_swigregister
PrintFBase_swigregister(PrintFBase)
cvar = _arc.cvar
Version = cvar.Version
def FindTrans(*args):
"""
const char*
Arc::FindTrans(const char *p)
"""
return _arc.FindTrans(*args)
def FindNTrans(*args):
"""
const char*
Arc::FindNTrans(const char *s, const char *p, unsigned long n)
"""
return _arc.FindNTrans(*args)
class IString(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, IString, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, IString, name)
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_IString
__del__ = lambda self : None;
def __init__(self, *args):
"""Arc::IString::IString(const IString &istr) """
this = _arc.new_IString(*args)
try: self.this.append(this)
except: self.this = this
IString_swigregister = _arc.IString_swigregister
IString_swigregister(IString)
DEBUG = _arc.DEBUG
VERBOSE = _arc.VERBOSE
INFO = _arc.INFO
WARNING = _arc.WARNING
ERROR = _arc.ERROR
FATAL = _arc.FATAL
LongFormat = _arc.LongFormat
ShortFormat = _arc.ShortFormat
DebugFormat = _arc.DebugFormat
EmptyFormat = _arc.EmptyFormat
class LoggerFormat(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LoggerFormat, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LoggerFormat, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""Arc::LoggerFormat::LoggerFormat(LogFormat format) """
this = _arc.new_LoggerFormat(*args)
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["format"] = _arc.LoggerFormat_format_set
__swig_getmethods__["format"] = _arc.LoggerFormat_format_get
if _newclass:format = _swig_property(_arc.LoggerFormat_format_get, _arc.LoggerFormat_format_set)
__swig_destroy__ = _arc.delete_LoggerFormat
__del__ = lambda self : None;
LoggerFormat_swigregister = _arc.LoggerFormat_swigregister
LoggerFormat_swigregister(LoggerFormat)
def istring_to_level(*args):
"""
bool
Arc::istring_to_level(const std::string &llStr, LogLevel &ll)
Case-insensitive parsing of a string to a LogLevel with error
response.
The method will try to parse (case-insensitive) the argument string to
a corresponding LogLevel. If the method suceeds, true will be returned
and the argument ll will be set to the parsed LogLevel. If the parsing
fails false will be returned. The parsing succeeds if llStr match
(case-insensitively) one of the names of the LogLevel members.
Parameters:
-----------
llStr: a string which should be parsed to a Arc::LogLevel.
ll: a Arc::LogLevel reference which will be set to the matching
Arc::LogLevel upon successful parsing.
true in case of successful parsing, otherwise false.
See: LogLevel
"""
return _arc.istring_to_level(*args)
def level_to_string(*args):
"""
std::string
Arc::level_to_string(const LogLevel &level)
Convert LogLevel to a string.
"""
return _arc.level_to_string(*args)
def old_level_to_level(*args):
"""
LogLevel
Arc::old_level_to_level(unsigned int old_level)
Convert an old-style log level (int from 0 to 5) to a LogLevel.
"""
return _arc.old_level_to_level(*args)
class LogMessage(_object):
"""
A class for log messages.
This class is used to represent log messages internally. It contains
the time the message was created, its level, from which domain it was
sent, an identifier and the message text itself.
C++ includes: Logger.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LogMessage, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LogMessage, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::LogMessage::LogMessage(LogLevel level, const IString &message,
const std::string &identifier)
Creates a LogMessage with the specified attributes.
This constructor creates a LogMessage with the specified level,
message text and identifier. The time is set automatically and the
domain is set by the Logger to which the LogMessage is sent.
Parameters:
-----------
level: The level of the LogMessage.
message: The message text.
ident: The identifier of the LogMessage.
"""
this = _arc.new_LogMessage(*args)
try: self.this.append(this)
except: self.this = this
def getLevel(self):
"""
LogLevel
Arc::LogMessage::getLevel() const
Returns the level of the LogMessage.
Returns the level of the LogMessage. The level of the LogMessage.
"""
return _arc.LogMessage_getLevel(self)
__swig_destroy__ = _arc.delete_LogMessage
__del__ = lambda self : None;
LogMessage_swigregister = _arc.LogMessage_swigregister
LogMessage_swigregister(LogMessage)
def string_to_level(*args):
"""
bool
Arc::string_to_level(const std::string &str, LogLevel &ll)
Same as istring_to_level except it is case-sensitive.
"""
return _arc.string_to_level(*args)
class LogDestination(_object):
"""
A base class for log destinations.
This class defines an interface for LogDestinations. LogDestination
objects will typically contain synchronization mechanisms and should
therefore never be copied.
C++ includes: Logger.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LogDestination, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LogDestination, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
def log(self, *args):
"""
virtual void
Arc::LogDestination::log(const LogMessage &message)=0
Logs a LogMessage to this LogDestination.
"""
return _arc.LogDestination_log(self, *args)
__swig_destroy__ = _arc.delete_LogDestination
__del__ = lambda self : None;
def setFormat(self, *args):
"""
void
Arc::LogDestination::setFormat(const LogFormat &newformat)
"""
return _arc.LogDestination_setFormat(self, *args)
LogDestination_swigregister = _arc.LogDestination_swigregister
LogDestination_swigregister(LogDestination)
class LogStream_ostream(LogDestination):
"""
A class for logging to ostreams.
This class is used for logging to ostreams (cout, cerr, files). It
provides synchronization in order to prevent different LogMessages to
appear mixed with each other in the stream. In order not to break the
synchronization, LogStreams should never be copied. Therefore the copy
constructor and assignment operator are private. Furthermore, it is
important to keep a LogStream object as long as the Logger to which it
has been registered.
C++ includes: Logger.h
"""
__swig_setmethods__ = {}
for _s in [LogDestination]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, LogStream_ostream, name, value)
__swig_getmethods__ = {}
for _s in [LogDestination]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, LogStream_ostream, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::LogStream::LogStream(std::ostream &destination, const std::string
&locale)
Creates a LogStream connected to an ostream.
Creates a LogStream connected to the specified ostream. The output
will be localised to the specified locale.
"""
this = _arc.new_LogStream_ostream(*args)
try: self.this.append(this)
except: self.this = this
def log(self, *args):
"""
virtual void
Arc::LogStream::log(const LogMessage &message)
Writes a LogMessage to the stream.
This method writes a LogMessage to the ostream that is connected to
this LogStream object. It is synchronized so that not more than one
LogMessage can be written at a time.
Parameters:
-----------
message: The LogMessage to write.
"""
return _arc.LogStream_ostream_log(self, *args)
__swig_destroy__ = _arc.delete_LogStream_ostream
__del__ = lambda self : None;
LogStream_ostream_swigregister = _arc.LogStream_ostream_swigregister
LogStream_ostream_swigregister(LogStream_ostream)
class LogFile(LogDestination):
"""
A class for logging to files.
This class is used for logging to files. It provides synchronization
in order to prevent different LogMessages to appear mixed with each
other in the stream. It is possible to limit size of created file.
Whenever specified size is exceeded fiel is deleted and new one is
created. Old files may be moved into backup files instead of being
deleted. Those files have names same as initial file with additional
number suffix - similar to those found in /var/log of many Unix-like
systems.
C++ includes: Logger.h
"""
__swig_setmethods__ = {}
for _s in [LogDestination]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, LogFile, name, value)
__swig_getmethods__ = {}
for _s in [LogDestination]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, LogFile, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::LogFile::LogFile(const std::string &path, const std::string
&locale)
Creates a LogFile connected to a file.
Creates a LogFile connected to the file located at specified path. The
output will be localised to the specified locale.
"""
this = _arc.new_LogFile(*args)
try: self.this.append(this)
except: self.this = this
def setMaxSize(self, *args):
"""
void
Arc::LogFile::setMaxSize(int newsize)
Set maximal allowed size of file.
Set maximal allowed size of file. This value is not obeyed exactly.
Spesified size may be exceeded by amount of one LogMessage. To disable
limit specify -1.
Parameters:
-----------
newsize: Max size of log file.
"""
return _arc.LogFile_setMaxSize(self, *args)
def setBackups(self, *args):
"""
void
Arc::LogFile::setBackups(int newbackup)
Set number of backups to store.
Set number of backups to store. When file size exceeds one specified
with setMaxSize() file is closed and moved to one named path.1. If
path.1 exists it is moved to path.2 and so on. Number of path.# files
is one set in newbackup.
Parameters:
-----------
newbackup: Number of backup files.
"""
return _arc.LogFile_setBackups(self, *args)
def setReopen(self, *args):
"""
void
Arc::LogFile::setReopen(bool newreopen)
Set file reopen on every write.
Set file reopen on every write. If set to true file is opened before
writing every log record and closed afterward.
Parameters:
-----------
newreopen: If file to be reopened for every log record.
"""
return _arc.LogFile_setReopen(self, *args)
def __nonzero__(self):
return _arc.LogFile___nonzero__(self)
__bool__ = __nonzero__
def log(self, *args):
"""
virtual void
Arc::LogFile::log(const LogMessage &message)
Writes a LogMessage to the file.
This method writes a LogMessage to the file that is connected to this
LogFile object. If after writitng size of file exceeds one set by
setMaxSize() file is moved to backup and new one is created.
Parameters:
-----------
message: The LogMessage to write.
"""
return _arc.LogFile_log(self, *args)
__swig_destroy__ = _arc.delete_LogFile
__del__ = lambda self : None;
LogFile_swigregister = _arc.LogFile_swigregister
LogFile_swigregister(LogFile)
class LoggerContext(_object):
"""
Container for logger configuration.
C++ includes: Logger.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LoggerContext, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LoggerContext, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
LoggerContext_swigregister = _arc.LoggerContext_swigregister
LoggerContext_swigregister(LoggerContext)
class Logger(_object):
"""
A logger class.
This class defines a Logger to which LogMessages can be sent.
Every Logger (except for the rootLogger) has a parent Logger. The
domain of a Logger (a string that indicates the origin of LogMessages)
is composed by adding a subdomain to the domain of its parent Logger.
A Logger also has a threshold. Every LogMessage that have a level that
is greater than or equal to the threshold is forwarded to any
LogDestination connected to this Logger as well as to the parent
Logger.
Typical usage of the Logger class is to declare a global Logger object
for each library/module/component to be used by all classes and
methods there.
C++ includes: Logger.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Logger, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Logger, name)
__repr__ = _swig_repr
__swig_getmethods__["getRootLogger"] = lambda x: _arc.Logger_getRootLogger
if _newclass:getRootLogger = staticmethod(_arc.Logger_getRootLogger)
def __init__(self, *args):
"""
Arc::Logger::Logger(Logger &parent, const std::string &subdomain,
LogLevel threshold)
Creates a logger.
Creates a logger.
Parameters:
-----------
parent: The parent Logger of the new Logger.
subdomain: The subdomain of the new logger.
threshold: The threshold of the new logger.
"""
this = _arc.new_Logger(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_Logger
__del__ = lambda self : None;
def addDestination(self, *args):
"""
void
Arc::Logger::addDestination(LogDestination &destination)
Adds a LogDestination.
Adds a LogDestination to which to forward LogMessages sent to this
logger (if they pass the threshold). Since LogDestinatoins should not
be copied, the new LogDestination is passed by reference and a pointer
to it is kept for later use. It is therefore important that the
LogDestination passed to this Logger exists at least as long as the
Logger iteslf.
"""
return _arc.Logger_addDestination(self, *args)
def addDestinations(self, *args):
"""
void
Arc::Logger::addDestinations(const std::list< LogDestination * >
&destinations)
Adds LogDestinations.
See addDestination(LogDestination& destination).
"""
return _arc.Logger_addDestinations(self, *args)
def getDestinations(self):
"""
const
std::list<LogDestination*>& Arc::Logger::getDestinations(void) const
Obtains current LogDestinations.
Returns list of pointers to LogDestination objects. Returned result
refers directly to internal member of Logger intance. Hence it should
not be used after this Logger is destroyed.
"""
return _arc.Logger_getDestinations(self)
def removeDestinations(self):
"""
void
Arc::Logger::removeDestinations(void)
Removes all LogDestinations.
"""
return _arc.Logger_removeDestinations(self)
def deleteDestinations(self):
"""
void
Arc::Logger::deleteDestinations(void)
Remove all LogDestinations and delete LogDestination objects.
"""
return _arc.Logger_deleteDestinations(self)
def setThreshold(self, *args):
"""
void
Arc::Logger::setThreshold(LogLevel threshold)
Sets the threshold.
This method sets the threshold of the Logger. Any message sent to this
Logger that has a level below this threshold will be discarded.
Parameters:
-----------
The: threshold
"""
return _arc.Logger_setThreshold(self, *args)
__swig_getmethods__["setThresholdForDomain"] = lambda x: _arc.Logger_setThresholdForDomain
if _newclass:setThresholdForDomain = staticmethod(_arc.Logger_setThresholdForDomain)
def getThreshold(self):
"""
LogLevel
Arc::Logger::getThreshold() const
Returns the threshold.
Returns the threshold. The threshold of this Logger.
"""
return _arc.Logger_getThreshold(self)
def setThreadContext(self):
"""
void
Arc::Logger::setThreadContext(void)
Creates per-thread context.
Creates new context for this logger which becomes effective for
operations initiated by this thread. All new threads started by this
one will inherit new context. Context stores current threshold and
pointers to destinations. Hence new context is identical to current
one. One can modify new context using setThreshold(),
removeDestinations() and addDestination(). All such operations will
not affect old context.
"""
return _arc.Logger_setThreadContext(self)
def msg(self, *args):
"""
void
Arc::Logger::msg(LogLevel level, const std::string &str, const T0 &t0,
const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5,
const T6 &t6, const T7 &t7)
"""
return _arc.Logger_msg(self, *args)
Logger_swigregister = _arc.Logger_swigregister
Logger_swigregister(Logger)
def Logger_getRootLogger():
return _arc.Logger_getRootLogger()
Logger_getRootLogger = _arc.Logger_getRootLogger
def Logger_setThresholdForDomain(*args):
return _arc.Logger_setThresholdForDomain(*args)
Logger_setThresholdForDomain = _arc.Logger_setThresholdForDomain
MDSTime = _arc.MDSTime
ASCTime = _arc.ASCTime
UserTime = _arc.UserTime
ISOTime = _arc.ISOTime
UTCTime = _arc.UTCTime
RFC1123Time = _arc.RFC1123Time
EpochTime = _arc.EpochTime
PeriodNanoseconds = _arc.PeriodNanoseconds
PeriodMicroseconds = _arc.PeriodMicroseconds
PeriodMiliseconds = _arc.PeriodMiliseconds
PeriodSeconds = _arc.PeriodSeconds
PeriodMinutes = _arc.PeriodMinutes
PeriodHours = _arc.PeriodHours
PeriodDays = _arc.PeriodDays
PeriodWeeks = _arc.PeriodWeeks
class Period(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Period, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Period, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::Period::Period(const
std::string &, PeriodBase base=PeriodSeconds)
Constructor that tries to convert a string.
"""
this = _arc.new_Period(*args)
try: self.this.append(this)
except: self.this = this
def SetPeriod(self, *args):
"""
void
Arc::Period::SetPeriod(time_t sec, uint32_t nanosec)
"""
return _arc.Period_SetPeriod(self, *args)
def GetPeriod(self):
"""
time_t
Arc::Period::GetPeriod() const
gets the period
"""
return _arc.Period_GetPeriod(self)
def GetPeriodNanoseconds(self):
"""
time_t
Arc::Period::GetPeriodNanoseconds() const
"""
return _arc.Period_GetPeriodNanoseconds(self)
def istr(self):
"""
const sigc::slot<const
char*>* Arc::Period::istr() const
For use with IString
"""
return _arc.Period_istr(self)
def __str__(self): return _arc.Period___str__(self)
def __lt__(self, *args): return _arc.Period___lt__(self, *args)
def __gt__(self, *args): return _arc.Period___gt__(self, *args)
def __le__(self, *args): return _arc.Period___le__(self, *args)
def __ge__(self, *args): return _arc.Period___ge__(self, *args)
def __eq__(self, *args): return _arc.Period___eq__(self, *args)
def __ne__(self, *args): return _arc.Period___ne__(self, *args)
__swig_destroy__ = _arc.delete_Period
__del__ = lambda self : None;
Period_swigregister = _arc.Period_swigregister
Period_swigregister(Period)
class Time(_object):
"""
A class for storing and manipulating times.
C++ includes: DateTime.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Time, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Time, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::Time::Time(const
std::string &)
Constructor that tries to convert a string into a time_t.
"""
this = _arc.new_Time(*args)
try: self.this.append(this)
except: self.this = this
def SetTime(self, *args):
"""
void
Arc::Time::SetTime(time_t time, uint32_t nanosec)
sets the fine grained time
"""
return _arc.Time_SetTime(self, *args)
def GetTime(self):
"""
time_t
Arc::Time::GetTime() const
gets the time
"""
return _arc.Time_GetTime(self)
def GetTimeNanosec(self):
"""
time_t
Arc::Time::GetTimeNanosec() const
"""
return _arc.Time_GetTimeNanosec(self)
def __str__(self): return _arc.Time___str__(self)
def str(self, *args):
"""
std::string
Arc::Time::str(const TimeFormat &=time_format) const
Returns a string representation of the time, using the specified
format.
"""
return _arc.Time_str(self, *args)
__swig_getmethods__["SetFormat"] = lambda x: _arc.Time_SetFormat
if _newclass:SetFormat = staticmethod(_arc.Time_SetFormat)
__swig_getmethods__["GetFormat"] = lambda x: _arc.Time_GetFormat
if _newclass:GetFormat = staticmethod(_arc.Time_GetFormat)
def __lt__(self, *args): return _arc.Time___lt__(self, *args)
def __gt__(self, *args): return _arc.Time___gt__(self, *args)
def __le__(self, *args): return _arc.Time___le__(self, *args)
def __ge__(self, *args): return _arc.Time___ge__(self, *args)
def __eq__(self, *args): return _arc.Time___eq__(self, *args)
def __ne__(self, *args): return _arc.Time___ne__(self, *args)
def __add__(self, *args): return _arc.Time___add__(self, *args)
def __sub__(self, *args): return _arc.Time___sub__(self, *args)
YEAR = _arc.Time_YEAR
MONTH = _arc.Time_MONTH
WEEK = _arc.Time_WEEK
DAY = _arc.Time_DAY
HOUR = _arc.Time_HOUR
UNDEFINED = _arc.Time_UNDEFINED
__swig_destroy__ = _arc.delete_Time
__del__ = lambda self : None;
Time_swigregister = _arc.Time_swigregister
Time_swigregister(Time)
def Time_SetFormat(*args):
return _arc.Time_SetFormat(*args)
Time_SetFormat = _arc.Time_SetFormat
def Time_GetFormat():
return _arc.Time_GetFormat()
Time_GetFormat = _arc.Time_GetFormat
RC_DEFAULT_PORT = _arc.RC_DEFAULT_PORT
RLS_DEFAULT_PORT = _arc.RLS_DEFAULT_PORT
HTTP_DEFAULT_PORT = _arc.HTTP_DEFAULT_PORT
HTTPS_DEFAULT_PORT = _arc.HTTPS_DEFAULT_PORT
HTTPG_DEFAULT_PORT = _arc.HTTPG_DEFAULT_PORT
LDAP_DEFAULT_PORT = _arc.LDAP_DEFAULT_PORT
FTP_DEFAULT_PORT = _arc.FTP_DEFAULT_PORT
GSIFTP_DEFAULT_PORT = _arc.GSIFTP_DEFAULT_PORT
LFC_DEFAULT_PORT = _arc.LFC_DEFAULT_PORT
XROOTD_DEFAULT_PORT = _arc.XROOTD_DEFAULT_PORT
class URL(_object):
"""
Class to hold general URLs.
The URL is split into protocol, hostname, port and path. This class
tries to follow RFC 3986 for spliting URLs, at least for protocol +
host part. It also accepts local file paths which are converted
tofile:path. The usual system dependent file paths are supported.
Relative paths are converted to absolute paths by prepending them with
current working directory path. A file path can't start from # symbol.
If the string representation of URL starts from '@' then it is treated
as path to a file containing a list of URLs.
A URL is parsed in the following way:
[protocol:][//[username:passwd@][host][:port]][;urloptions[;...]][/path[?httpoption[&...]][:metadataoption[:...]]]
The 'protocol' and 'host' parts are treated as case-insensitive and to
avoid confusion are converted to lowercase in constructor. Note that
'path' is always converted to absolute path in constructor. The
meaning of 'absolute' may depend upon URL type. For generic URL and
local POSIX file paths that means path starts from / like
/path/to/file
For Windows paths absolute path may look like
C:\\path\\to\\file
It is important to note that path still can be empty. For referencing
local file using absolute path on POSIX filesystem one may use either
file:///path/to/file orfile:/path/to/file
Relative path will look like
file:to/file
For local Windows files possible URLs are
file:C:\\path\\to\\file or file:to\\file
URLs representing LDAP resources have different structure of options
following 'path' part:
ldap://host[:port][;urloptions[;...]][/path[?attributes[?scope[?filter]]]]
For LDAP URLs paths are converted from /key1=value1/.../keyN=valueN
notation to keyN=valueN,...,key1=value1 and hence path does not
contain leading /. If LDAP URL initially had path in second notation
leading / is treated as separator only and is stripped.
URLs of indexing services optionally may have locations specified
before 'host' part
protocol://[location[;location[;...]]@][host][:port]...
The structure of 'location' element is protocol specific.
C++ includes: URL.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, URL, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, URL, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::URL::URL(const std::string
&url)
Constructs a new URL from a string representation.
"""
this = _arc.new_URL(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_URL
__del__ = lambda self : None;
base = _arc.URL_base
onelevel = _arc.URL_onelevel
subtree = _arc.URL_subtree
def Protocol(self):
"""
const std::string&
Arc::URL::Protocol() const
Returns the protocol of the URL.
"""
return _arc.URL_Protocol(self)
def ChangeProtocol(self, *args):
"""
void
Arc::URL::ChangeProtocol(const std::string &newprot)
Changes the protocol of the URL.
"""
return _arc.URL_ChangeProtocol(self, *args)
def IsSecureProtocol(self):
"""
bool
Arc::URL::IsSecureProtocol() const
Indicates whether the protocol is secure or not.
"""
return _arc.URL_IsSecureProtocol(self)
def Username(self):
"""
const std::string&
Arc::URL::Username() const
Returns the username of the URL.
"""
return _arc.URL_Username(self)
def Passwd(self):
"""
const std::string&
Arc::URL::Passwd() const
Returns the password of the URL.
"""
return _arc.URL_Passwd(self)
def Host(self):
"""
const std::string&
Arc::URL::Host() const
Returns the hostname of the URL.
"""
return _arc.URL_Host(self)
def ChangeHost(self, *args):
"""
void
Arc::URL::ChangeHost(const std::string &newhost)
Changes the hostname of the URL.
"""
return _arc.URL_ChangeHost(self, *args)
def Port(self):
"""
int Arc::URL::Port() const
Returns the port of the URL.
"""
return _arc.URL_Port(self)
def ChangePort(self, *args):
"""
void
Arc::URL::ChangePort(int newport)
Changes the port of the URL.
"""
return _arc.URL_ChangePort(self, *args)
def Path(self):
"""
const std::string&
Arc::URL::Path() const
Returns the path of the URL.
"""
return _arc.URL_Path(self)
def FullPath(self):
"""
std::string
Arc::URL::FullPath() const
Returns the path of the URL with all options attached.
"""
return _arc.URL_FullPath(self)
def FullPathURIEncoded(self):
"""
std::string
Arc::URL::FullPathURIEncoded() const
Returns the path and all options, URI-encoded according to RFC 3986.
Forward slashes ('/') in the path are not encoded but are encoded in
the options.
"""
return _arc.URL_FullPathURIEncoded(self)
def ChangePath(self, *args):
"""
void
Arc::URL::ChangePath(const std::string &newpath)
Changes the path of the URL.
"""
return _arc.URL_ChangePath(self, *args)
def ChangeFullPath(self, *args):
"""
void
Arc::URL::ChangeFullPath(const std::string &newpath)
Changes the path of the URL and all options attached.
"""
return _arc.URL_ChangeFullPath(self, *args)
def HTTPOptions(self):
"""
const
std::map<std::string, std::string>& Arc::URL::HTTPOptions() const
Returns HTTP options if any.
"""
return _arc.URL_HTTPOptions(self)
def HTTPOption(self, *args):
"""
const std::string&
Arc::URL::HTTPOption(const std::string &option, const std::string
&undefined="") const
Returns the value of an HTTP option.
Parameters:
-----------
option: The option whose value is returned.
undefined: This value is returned if the HTTP option is not defined.
"""
return _arc.URL_HTTPOption(self, *args)
def AddHTTPOption(self, *args):
"""
bool
Arc::URL::AddHTTPOption(const std::string &option, const std::string
&value, bool overwrite=true)
Adds a HTP option with the given value. Returns false if overwrite is
false and option already exists, true otherwise.
"""
return _arc.URL_AddHTTPOption(self, *args)
def RemoveHTTPOption(self, *args):
"""
void
Arc::URL::RemoveHTTPOption(const std::string &option)
Removes a HTTP option if exists.
Parameters:
-----------
option: The option to remove.
"""
return _arc.URL_RemoveHTTPOption(self, *args)
def LDAPAttributes(self):
"""
const
std::list<std::string>& Arc::URL::LDAPAttributes() const
Returns the LDAP attributes if any.
"""
return _arc.URL_LDAPAttributes(self)
def AddLDAPAttribute(self, *args):
"""
void
Arc::URL::AddLDAPAttribute(const std::string &attribute)
Adds an LDAP attribute.
"""
return _arc.URL_AddLDAPAttribute(self, *args)
def LDAPScope(self):
"""
Scope
Arc::URL::LDAPScope() const
Returns the LDAP scope.
"""
return _arc.URL_LDAPScope(self)
def ChangeLDAPScope(self, *args):
"""
void
Arc::URL::ChangeLDAPScope(const Scope newscope)
Changes the LDAP scope.
"""
return _arc.URL_ChangeLDAPScope(self, *args)
def LDAPFilter(self):
"""
const std::string&
Arc::URL::LDAPFilter() const
Returns the LDAP filter.
"""
return _arc.URL_LDAPFilter(self)
def ChangeLDAPFilter(self, *args):
"""
void
Arc::URL::ChangeLDAPFilter(const std::string &newfilter)
Changes the LDAP filter.
"""
return _arc.URL_ChangeLDAPFilter(self, *args)
def Options(self):
"""
const std::map<std::string,
std::string>& Arc::URL::Options() const
Returns URL options if any.
"""
return _arc.URL_Options(self)
def Option(self, *args):
"""
const std::string&
Arc::URL::Option(const std::string &option, const std::string
&undefined="") const
Returns the value of a URL option.
Parameters:
-----------
option: The option whose value is returned.
undefined: This value is returned if the URL option is not defined.
"""
return _arc.URL_Option(self, *args)
def MetaDataOptions(self):
"""
const
std::map<std::string, std::string>& Arc::URL::MetaDataOptions() const
Returns metadata options if any.
"""
return _arc.URL_MetaDataOptions(self)
def MetaDataOption(self, *args):
"""
const std::string&
Arc::URL::MetaDataOption(const std::string &option, const std::string
&undefined="") const
Returns the value of a metadata option.
Parameters:
-----------
option: The option whose value is returned.
undefined: This value is returned if the metadata option is not
defined.
"""
return _arc.URL_MetaDataOption(self, *args)
def AddOption(self, *args):
"""
bool
Arc::URL::AddOption(const std::string &option, bool overwrite=true)
Adds a URL option where option has the format "name=value". Returns
false if overwrite is true and option already exists or if option does
not have the correct format. Returns true otherwise.
"""
return _arc.URL_AddOption(self, *args)
def AddMetaDataOption(self, *args):
"""
void
Arc::URL::AddMetaDataOption(const std::string &option, const
std::string &value, bool overwrite=true)
Adds a metadata option
"""
return _arc.URL_AddMetaDataOption(self, *args)
def AddLocation(self, *args):
"""
void
Arc::URL::AddLocation(const URLLocation &location)
Adds a Location
"""
return _arc.URL_AddLocation(self, *args)
def Locations(self):
"""
const
std::list<URLLocation>& Arc::URL::Locations() const
Returns the locations if any.
"""
return _arc.URL_Locations(self)
def CommonLocOptions(self):
"""
const
std::map<std::string, std::string>& Arc::URL::CommonLocOptions() const
Returns the common location options if any.
"""
return _arc.URL_CommonLocOptions(self)
def CommonLocOption(self, *args):
"""
const std::string&
Arc::URL::CommonLocOption(const std::string &option, const std::string
&undefined="") const
Returns the value of a common location option.
Parameters:
-----------
option: The option whose value is returned.
undefined: This value is returned if the common location option is
not defined.
"""
return _arc.URL_CommonLocOption(self, *args)
def RemoveOption(self, *args):
"""
void
Arc::URL::RemoveOption(const std::string &option)
Removes a URL option if exists.
Parameters:
-----------
option: The option to remove.
"""
return _arc.URL_RemoveOption(self, *args)
def RemoveMetaDataOption(self, *args):
"""
void
Arc::URL::RemoveMetaDataOption(const std::string &option)
Remove a metadata option if exits.
Parameters:
-----------
option: The option to remove.
"""
return _arc.URL_RemoveMetaDataOption(self, *args)
def str(self):
"""
virtual std::string
Arc::URL::str() const
Returns a string representation of the URL including meta-options.
"""
return _arc.URL_str(self)
def plainstr(self):
"""
virtual std::string
Arc::URL::plainstr() const
Returns a string representation of the URL without any options
"""
return _arc.URL_plainstr(self)
def fullstr(self):
"""
virtual std::string
Arc::URL::fullstr() const
Returns a string representation including options and locations
"""
return _arc.URL_fullstr(self)
def ConnectionURL(self):
"""
virtual std::string
Arc::URL::ConnectionURL() const
Returns a string representation with protocol, host and port only
"""
return _arc.URL_ConnectionURL(self)
def __lt__(self, *args): return _arc.URL___lt__(self, *args)
def __eq__(self, *args): return _arc.URL___eq__(self, *args)
def __nonzero__(self):
return _arc.URL___nonzero__(self)
__bool__ = __nonzero__
def StringMatches(self, *args):
"""
bool
Arc::URL::StringMatches(const std::string &str) const
Returns true if string matches url.
"""
return _arc.URL_StringMatches(self, *args)
def ParseOptions(self, *args):
"""
std::map<std::string,
std::string> Arc::URL::ParseOptions(const std::string &optstring, char
separator)
Parse a string of options separated by separator into an
attribute->value map
"""
return _arc.URL_ParseOptions(self, *args)
__swig_getmethods__["OptionString"] = lambda x: _arc.URL_OptionString
if _newclass:OptionString = staticmethod(_arc.URL_OptionString)
URL_swigregister = _arc.URL_swigregister
URL_swigregister(URL)
def TimeStamp(*args):
"""
std::string
Arc::TimeStamp(Time, const TimeFormat &=Time::GetFormat())
Returns a time-stamp of some specified time in some format.
"""
return _arc.TimeStamp(*args)
def URL_OptionString(*args):
return _arc.URL_OptionString(*args)
URL_OptionString = _arc.URL_OptionString
class URLLocation(URL):
"""
Class to hold a resolved URL location.
It is specific to file indexing service registrations.
C++ includes: URL.h
"""
__swig_setmethods__ = {}
for _s in [URL]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, URLLocation, name, value)
__swig_getmethods__ = {}
for _s in [URL]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, URLLocation, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::URLLocation::URLLocation(const std::map< std::string, std::string
> &options, const std::string &name)
Creates a URLLocation from options and a name.
"""
this = _arc.new_URLLocation(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_URLLocation
__del__ = lambda self : None;
def Name(self):
"""
const std::string&
Arc::URLLocation::Name() const
Returns the URLLocation name.
"""
return _arc.URLLocation_Name(self)
def str(self):
"""
virtual std::string
Arc::URLLocation::str() const
Returns a string representation of the URLLocation.
"""
return _arc.URLLocation_str(self)
def fullstr(self):
"""
virtual std::string
Arc::URLLocation::fullstr() const
Returns a string representation including options and locations
"""
return _arc.URLLocation_fullstr(self)
URLLocation_swigregister = _arc.URLLocation_swigregister
URLLocation_swigregister(URLLocation)
class PathIterator(_object):
"""
Class to iterate through elements of path.
C++ includes: URL.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, PathIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, PathIterator, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::PathIterator::PathIterator(const std::string &path, bool
end=false)
Constructor accepts path and stores it internally. If end is set to
false iterator is pointing at first element in path. Otherwise
selected element is one before last.
"""
this = _arc.new_PathIterator(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_PathIterator
__del__ = lambda self : None;
def __nonzero__(self):
return _arc.PathIterator___nonzero__(self)
__bool__ = __nonzero__
def __ref__(self): return _arc.PathIterator___ref__(self)
def Rest(self):
"""
std::string
Arc::PathIterator::Rest() const
Returns part of initial path from one after current till end
"""
return _arc.PathIterator_Rest(self)
PathIterator_swigregister = _arc.PathIterator_swigregister
PathIterator_swigregister(PathIterator)
def ReadURLList(*args):
"""
std::list<URL>
Arc::ReadURLList(const URL &urllist)
Reads a list of URLs from a file.
"""
return _arc.ReadURLList(*args)
class User(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, User, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, User, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""Arc::User::User(int uid) """
this = _arc.new_User(*args)
try: self.this.append(this)
except: self.this = this
def Name(self):
"""
const std::string&
Arc::User::Name(void) const
"""
return _arc.User_Name(self)
def Home(self):
"""
const std::string&
Arc::User::Home(void) const
"""
return _arc.User_Home(self)
def get_uid(self):
"""
int
Arc::User::get_uid(void) const
"""
return _arc.User_get_uid(self)
def get_gid(self):
"""
int
Arc::User::get_gid(void) const
"""
return _arc.User_get_gid(self)
def __eq__(self, *args): return _arc.User___eq__(self, *args)
def check_file_access(self, *args):
"""
int
Arc::User::check_file_access(const std::string &path, int flags) const
"""
return _arc.User_check_file_access(self, *args)
def RunAs(self, *args):
"""
bool
Arc::User::RunAs(std::string cmd)
"""
return _arc.User_RunAs(self, *args)
__swig_destroy__ = _arc.delete_User
__del__ = lambda self : None;
User_swigregister = _arc.User_swigregister
User_swigregister(User)
class UserSwitch(_object):
"""
If this class is created user identity is switched to provided uid and
gid. Due to internal lock there will be only one valid instance of
this class. Any attempt to create another instance will block till
first one is destroyed. If uid and gid are set to 0 then user identity
is not switched. But lock is applied anyway. The lock has dual
purpose. First and most important is to protect communication with
underlying operating system which may depend on user identity. For
that it is advisable for code which talks to operating system to
acquire valid instance of this class. Care must be taken for not to
hold that instance too long cause that may block other code in
multithreaded envoronment. Other purpose of this lock is to provide
workaround for glibc bug in __nptl_setxid. That bug causes lockup of
seteuid() function if racing with fork. To avoid this problem the lock
mentioned above is used by Run class while spawning new process.
C++ includes: User.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, UserSwitch, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, UserSwitch, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""Arc::UserSwitch::UserSwitch(int uid, int gid) """
this = _arc.new_UserSwitch(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_UserSwitch
__del__ = lambda self : None;
def __nonzero__(self):
return _arc.UserSwitch___nonzero__(self)
__bool__ = __nonzero__
UserSwitch_swigregister = _arc.UserSwitch_swigregister
UserSwitch_swigregister(UserSwitch)
COMPUTING = _arc.COMPUTING
INDEX = _arc.INDEX
def tostring(*args):
"""
std::string Arc::tostring(const
ServiceType st)
"""
return _arc.tostring(*args)
class initializeCredentialsType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, initializeCredentialsType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, initializeCredentialsType, name)
__repr__ = _swig_repr
SkipCredentials = _arc.initializeCredentialsType_SkipCredentials
SkipCACredentials = _arc.initializeCredentialsType_SkipCACredentials
TryCredentials = _arc.initializeCredentialsType_TryCredentials
RequireCredentials = _arc.initializeCredentialsType_RequireCredentials
def __init__(self, *args):
"""
Arc::initializeCredentialsType::initializeCredentialsType(initializeType
v)
"""
this = _arc.new_initializeCredentialsType(*args)
try: self.this.append(this)
except: self.this = this
def __eq__(self, *args): return _arc.initializeCredentialsType___eq__(self, *args)
def __ne__(self, *args): return _arc.initializeCredentialsType___ne__(self, *args)
__swig_destroy__ = _arc.delete_initializeCredentialsType
__del__ = lambda self : None;
initializeCredentialsType_swigregister = _arc.initializeCredentialsType_swigregister
initializeCredentialsType_swigregister(initializeCredentialsType)
class UserConfig(_object):
"""
User configuration class
This class provides a container for a selection of various
attributes/parameters which can be configured to needs of the user,
and can be read by implementing instances or programs. The class can
be used in two ways. One can create a object from a configuration
file, or simply set the desired attributes by using the setter method,
associated with every setable attribute. The list of attributes which
can be configured in this class are: certificatepath /
CertificatePath(const std::string&)
keypath / KeyPath(const std::string&)
proxypath / ProxyPath(const std::string&)
cacertificatesdirectory / CACertificatesDirectory(const std::string&)
cacertificatepath / CACertificatePath(const std::string&)
timeout / Timeout(int)
joblist / JobListFile(const std::string&)
defaultservices / AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType)
rejectservices / AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType)
verbosity / Verbosity(const std::string&)
brokername / Broker(const std::string&) or Broker(const std::string&,
const std::string&)
brokerarguments / Broker(const std::string&) or Broker(const
std::string&, const std::string&)
bartender / Bartender(const std::list<URL>&)
vomsserverpath / VOMSESPath(const std::string&)
username / UserName(const std::string&)
password / Password(const std::string&)
keypassword / KeyPassword(const std::string&)
keysize / KeySize(int)
certificatelifetime / CertificateLifeTime(const Period&)
slcs / SLCS(const URL&)
storedirectory / StoreDirectory(const std::string&)
jobdownloaddirectory / JobDownloadDirectory(const std::string&)
idpname / IdPName(const std::string&)
where the first term is the name of the attribute used in the
configuration file, and the second term is the associated setter
method (for more information about a given attribute see the
description of the setter method).
The configuration file should have a INI-style format and the
IniConfig class will thus be used to parse the file. The above
mentioned attributes should be placed in the common section. Another
section is also valid in the configuration file, which is the alias
section. Here it is possible to define aliases representing one or
multiple services. These aliases can be used in the AddServices(const
std::list<std::string>&, ServiceType) and AddServices(const
std::list<std::string>&, const std::list<std::string>&, ServiceType)
methods.
The UserConfig class also provides a method InitializeCredentials()
for locating user credentials by searching in different standard
locations. The CredentialsFound() method can be used to test if
locating the credentials succeeded.
C++ includes: UserConfig.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, UserConfig, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, UserConfig, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::UserConfig::UserConfig(const long int &ptraddr)
Language binding constructor.
The passed long int should be a pointer address to a UserConfig
object, and this address is then casted into this UserConfig object.
Parameters:
-----------
ptraddr: is an memory address to a UserConfig object.
"""
this = _arc.new_UserConfig(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_UserConfig
__del__ = lambda self : None;
def InitializeCredentials(self):
"""
void
Arc::UserConfig::InitializeCredentials()
Initialize user credentials.
The location of the user credentials will be tried located when
calling this method and stored internally when found. The method
searches in different locations. First the user proxy or the user
key/certificate pair is tried located in the following order: Proxy
path specified by the environment variable X509_USER_PROXY
Key/certificate path specified by the environment X509_USER_KEY and
X509_USER_CERT
Proxy path specified in either configuration file passed to the
contructor or explicitly set using the setter method ProxyPath(const
std::string&)
Key/certificate path specified in either configuration file passed to
the constructor or explicitly set using the setter methods
KeyPath(const std::string&) and CertificatePath(const std::string&)
ProxyPath with file name x509up_u concatenated with the user ID
located in the OS temporary directory.
If the proxy or key/certificate pair have been explicitly specified
only the specified path(s) will be tried, and if not found a ::ERROR
is reported. If the proxy or key/certificate have not been specified
and it is not located in the temporary directory a ::WARNING will be
reported and the host key/certificate pair is tried and then the
Globus key/certificate pair and a ::ERROR will be reported if not
found in any of these locations.
Together with the proxy and key/certificate pair, the path to the
directory containing CA certificates is also tried located when
invoking this method. The directory will be tried located in the
following order: Path specified by the X509_CERT_DIR environment
variable.
Path explicitly specified either in a parsed configuration file using
the cacertficatecirectory or by using the setter method
CACertificatesDirectory().
Path created by concatenating the output of User::Home() with
'.globus' and 'certificates' separated by the directory delimeter.
Path created by concatenating the output of Glib::get_home_dir() with
'.globus' and 'certificates' separated by the directory delimeter.
Path created by concatenating the output of ArcLocation::Get(), with
'etc' and 'certificates' separated by the directory delimeter.
Path created by concatenating the output of ArcLocation::Get(), with
'etc', 'grid-security' and 'certificates' separated by the directory
delimeter.
Path created by concatenating the output of ArcLocation::Get(), with
'share' and 'certificates' separated by the directory delimeter.
Path created by concatenating 'etc', 'grid-security' and
'certificates' separated by the directory delimeter.
If the CA certificate directory have explicitly been specified and the
directory does not exist a ::ERROR is reported. If none of the
directories above does not exist a ::ERROR is reported.
See: CredentialsFound()
ProxyPath(const std::string&)
KeyPath(const std::string&)
CertificatePath(const std::string&)
CACertificatesDirectory(const std::string&)
"""
return _arc.UserConfig_InitializeCredentials(self)
def CredentialsFound(self):
"""
bool
Arc::UserConfig::CredentialsFound() const
Validate credential location.
Valid credentials consists of a combination of a path to existing CA-
certificate directory and either a path to existing proxy or a path to
existing user key/certificate pair. If valid credentials are found
this method returns true, otherwise false is returned.
true if valid credentials are found, otherwise false.
See: InitializeCredentials()
"""
return _arc.UserConfig_CredentialsFound(self)
def LoadConfigurationFile(self, *args):
"""
bool
Arc::UserConfig::LoadConfigurationFile(const std::string &conffile,
bool ignoreJobListFile=true)
Load specified configuration file.
The configuration file passed is parsed by this method by using the
IniConfig class. If the parsing is unsuccessful a ::WARNING is
reported.
The format of the configuration file should follow that of INI, and
every attribute present in the file is only allowed once, if otherwise
a ::WARNING will be reported. The file can contain at most two
sections, one named common and the other name alias. If other sections
exist a ::WARNING will be reported. Only the following attributes is
allowed in the common section of the configurationfile:
certificatepath ( CertificatePath(const std::string&))
keypath ( KeyPath(const std::string&))
proxypath ( ProxyPath(const std::string&))
cacertificatesdirectory ( CACertificatesDirectory(const std::string&))
cacertificatepath ( CACertificatePath(const std::string&))
timeout ( Timeout(int))
joblist ( JobListFile(const std::string&))
defaultservices ( AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType))
rejectservices ( AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType))
verbosity ( Verbosity(const std::string&))
brokername ( Broker(const std::string&) or Broker(const std::string&,
const std::string&))
brokerarguments ( Broker(const std::string&) or Broker(const
std::string&, const std::string&))
bartender (Bartender(const std::list<URL>&))
vomsserverpath ( VOMSESPath(const std::string&))
username ( UserName(const std::string&))
password ( Password(const std::string&))
keypassword ( KeyPassword(const std::string&))
keysize ( KeySize(int))
certificatelifetime ( CertificateLifeTime(const Period&))
slcs ( SLCS(const URL&))
storedirectory ( StoreDirectory(const std::string&))
jobdownloaddirectory ( JobDownloadDirectory(const std::string&))
idpname ( IdPName(const std::string&))
where the method in parentheses is the associated setter method. If
other attributes exist in the common section a ::WARNING will be
reported for each of these attributes. In the alias section aliases
can be defined, and should represent a selection of services. The
alias can then refered to by input to the AddServices(const
std::list<std::string>&, ServiceType) and AddServices(const
std::list<std::string>&, const std::list<std::string>&, ServiceType)
methods. An alias can not contain any of the characters '.', ':', ' '
or '\\t' and should be defined as follows: \\[
<alias\\_name>=<service\\_type>:<flavour>:<service\\_url>|<alias\\_ref>
[...] \\] where <alias_name> is the name of the defined alias,
<service_type> is the service type in lower case, <flavour> is the
type of middleware plugin to use, <service_url> is the URL which
should be used to contact the service and <alias_ref> is another
defined alias. The parsed aliases will be stored internally and
resolved when needed. If a alias already exist, and another alias with
the same name is parsed then this other alias will overwrite the
existing alias.
Parameters:
-----------
conffile: is the path to the configuration file.
ignoreJobListFile: is a optional boolean which indicates whether the
joblistfile attribute in the configuration file should be ignored.
Default is to ignored it ( true).
If loading the configuration file succeeds true is returned, otherwise
false is returned.
See: SaveToFile()
"""
return _arc.UserConfig_LoadConfigurationFile(self, *args)
def SaveToFile(self, *args):
"""
bool
Arc::UserConfig::SaveToFile(const std::string &filename) const
Save to INI file.
This method will save the object data as a INI file. The saved file
can be loaded with the LoadConfigurationFile method.
Parameters:
-----------
filename: the name of the file which the data will be saved to.
false if unable to get handle on file, otherwise true is returned.
See: LoadConfigurationFile()
"""
return _arc.UserConfig_SaveToFile(self, *args)
def ApplyToConfig(self, *args):
"""
void
Arc::UserConfig::ApplyToConfig(BaseConfig &ccfg) const
Apply credentials to BaseConfig.
This methods sets the BaseConfig credentials to the credentials
contained in this object. It also passes user defined configuration
overlay if any.
See: InitializeCredentials()
CredentialsFound()
BaseConfig
Parameters:
-----------
ccfg: a BaseConfig object which will configured with the credentials
of this object.
"""
return _arc.UserConfig_ApplyToConfig(self, *args)
def __nonzero__(self):
return _arc.UserConfig___nonzero__(self)
__bool__ = __nonzero__
def JobListFile(self, *args):
"""
const
std::string& Arc::UserConfig::JobListFile() const
Get a reference to the path of the job list file.
The job list file is used to store and fetch information about
submitted computing jobs to computing services. This method will
return the path to the specified job list file.
The path to the job list file is returned.
See: JobListFile(const std::string&)
"""
return _arc.UserConfig_JobListFile(self, *args)
def ResolveAliases(self, *args):
"""
bool
Arc::UserConfig::ResolveAliases(std::list< std::string > &services,
ServiceType st)
"""
return _arc.UserConfig_ResolveAliases(self, *args)
def AddServices(self, *args):
"""
bool
Arc::UserConfig::AddServices(const std::list< std::string > &selected,
const std::list< std::string > &rejected, ServiceType st)
Add selected and rejected services.
The only diffence in behaviour of this method compared to the
AddServices(const std::list<std::string>&, ServiceType) method is the
input parameters and the format these parameters should follow.
Instead of having an optional '-' in front of the string selected and
rejected services should be specified in the two different arguments.
Two attributes are indirectly associated with this setter method
'defaultservices' and 'rejectservices'. The values specified with the
'defaultservices' attribute will be added to the list of selected
services, and like-wise with the 'rejectservices' attribute.
Parameters:
-----------
selected: is a list of services which will be added to the selected
services of this object.
rejected: is a list of services which will be added to the rejected
services of this object.
st: specifies the ServiceType of the services to add.
This method return false in case an alias cannot be resolved. In any
other case true is returned.
See: AddServices(const std::list<std::string>&, ServiceType)
GetSelectedServices()
GetRejectedServices()
ClearSelectedServices()
ClearRejectedServices()
LoadConfigurationFile()
"""
return _arc.UserConfig_AddServices(self, *args)
def GetSelectedServices(self, *args):
"""
const
std::list<std::string>&
Arc::UserConfig::GetSelectedServices(ServiceType st) const
Get selected services.
Get the selected services with the ServiceType specified by st.
Parameters:
-----------
st: specifies which ServiceType should be returned by the method.
The selected services is returned.
See: AddServices(const std::list<std::string>&, ServiceType)
AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType)
GetRejectedServices(ServiceType) const
ClearSelectedServices()
"""
return _arc.UserConfig_GetSelectedServices(self, *args)
def GetRejectedServices(self, *args):
"""
const
std::list<std::string>&
Arc::UserConfig::GetRejectedServices(ServiceType st) const
Get rejected services.
Get the rejected services with the ServiceType specified by st.
Parameters:
-----------
st: specifies which ServiceType should be returned by the method.
The rejected services is returned.
See: AddServices(const std::list<std::string>&, ServiceType)
AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType)
GetSelectedServices(ServiceType)
ClearRejectedServices()
"""
return _arc.UserConfig_GetRejectedServices(self, *args)
def ClearSelectedServices(self, *args):
"""
void
Arc::UserConfig::ClearSelectedServices(ServiceType st)
Clear selected services with specified ServiceType.
Calling this method will cause the internally stored selected services
with the ServiceType st to be cleared.
See: ClearSelectedServices()
ClearRejectedServices(ServiceType)
AddServices(const std::list<std::string>&, ServiceType)
AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType)
GetSelectedServices()
"""
return _arc.UserConfig_ClearSelectedServices(self, *args)
def ClearRejectedServices(self, *args):
"""
void
Arc::UserConfig::ClearRejectedServices(ServiceType st)
Clear rejected services with specified ServiceType.
Calling this method will cause the internally stored rejected services
with the ServiceType st to be cleared.
See: ClearRejectedServices()
ClearSelectedServices(ServiceType)
AddServices(const std::list<std::string>&, ServiceType)
AddServices(const std::list<std::string>&, const
std::list<std::string>&, ServiceType)
GetRejectedServices()
"""
return _arc.UserConfig_ClearRejectedServices(self, *args)
def Timeout(self, *args):
"""
int
Arc::UserConfig::Timeout() const
Get timeout.
Returns the timeout in seconds.
timeout in seconds.
See: Timeout(int)
DEFAULT_TIMEOUT
"""
return _arc.UserConfig_Timeout(self, *args)
def Verbosity(self, *args):
"""
const std::string&
Arc::UserConfig::Verbosity() const
Get the user selected level of verbosity.
The string representation of the verbosity level specified by the user
is returned when calling this method. If the user have not specified
the verbosity level the empty string will be referenced.
the verbosity level, or empty if it has not been set.
See: Verbosity(const std::string&)
"""
return _arc.UserConfig_Verbosity(self, *args)
def Broker(self, *args):
"""
const
std::pair<std::string, std::string>& Arc::UserConfig::Broker() const
Get the broker and corresponding arguments.
The returned pair contains the broker name as the first component and
the argument as the second.
See: Broker(const std::string&)
Broker(const std::string&, const std::string&)
DEFAULT_BROKER
"""
return _arc.UserConfig_Broker(self, *args)
def AddBartender(self, *args):
"""
void
Arc::UserConfig::AddBartender(const URL &url)
Set bartenders, used to contact Chelonia.
Takes as input a Bartender URL and adds this to the list of
bartenders.
Parameters:
-----------
url: is a URL to be added to the list of bartenders.
See: Bartender(const std::list<URL>&)
Bartender() const
"""
return _arc.UserConfig_AddBartender(self, *args)
def Bartender(self, *args):
"""
const
std::vector<URL>& Arc::UserConfig::Bartender() const
Get bartenders.
Returns a list of Bartender URLs
The list of bartender URL objects is returned.
See: Bartender(const std::list<URL>&)
AddBartender(const URL&)
"""
return _arc.UserConfig_Bartender(self, *args)
def VOMSESPath(self, *args):
"""
const
std::string& Arc::UserConfig::VOMSESPath()
Get path to file containing VOMS configuration.
Get path to file which contians list of VOMS services and associated
configuration parameters.
The path to VOMS configuration file is returned.
See: VOMSESPath(const std::string&)
"""
return _arc.UserConfig_VOMSESPath(self, *args)
def UserName(self, *args):
"""
const std::string&
Arc::UserConfig::UserName() const
Get user-name.
Get username which is used for requesting credentials from Short Lived
Credentials Service.
The username is returned.
See: UserName(const std::string&)
"""
return _arc.UserConfig_UserName(self, *args)
def Password(self, *args):
"""
const std::string&
Arc::UserConfig::Password() const
Get password.
Get password which is used for requesting credentials from Short Lived
Credentials Service.
The password is returned.
See: Password(const std::string&)
"""
return _arc.UserConfig_Password(self, *args)
def ProxyPath(self, *args):
"""
const std::string&
Arc::UserConfig::ProxyPath() const
Get path to user proxy.
Retrieve path to user proxy.
Returns the path to the user proxy.
See: ProxyPath(const std::string&)
"""
return _arc.UserConfig_ProxyPath(self, *args)
def CertificatePath(self, *args):
"""
const
std::string& Arc::UserConfig::CertificatePath() const
Get path to certificate.
The path to the cerficate is returned when invoking this method. The
certificate path is returned.
See: InitializeCredentials()
CredentialsFound() const
CertificatePath(const std::string&)
KeyPath() const
"""
return _arc.UserConfig_CertificatePath(self, *args)
def KeyPath(self, *args):
"""
const std::string&
Arc::UserConfig::KeyPath() const
Get path to key.
The path to the key is returned when invoking this method.
The path to the user key is returned.
See: InitializeCredentials()
CredentialsFound() const
KeyPath(const std::string&)
CertificatePath() const
KeyPassword() const
KeySize() const
"""
return _arc.UserConfig_KeyPath(self, *args)
def KeyPassword(self, *args):
"""
const
std::string& Arc::UserConfig::KeyPassword() const
Get password for generated key.
Get password to be used to encode private key of credentials obtained
from Short Lived Credentials Service.
The key password is returned.
See: KeyPassword(const std::string&)
KeyPath() const
KeySize() const
"""
return _arc.UserConfig_KeyPassword(self, *args)
def KeySize(self, *args):
"""
int
Arc::UserConfig::KeySize() const
Get key size.
Get size/strengt of private key of credentials obtained from Short
Lived Credentials Service.
The key size, as an integer, is returned.
See: KeySize(int)
KeyPath() const
KeyPassword() const
"""
return _arc.UserConfig_KeySize(self, *args)
def CACertificatePath(self, *args):
"""
const
std::string& Arc::UserConfig::CACertificatePath() const
Get path to CA-certificate.
Retrieve the path to the file containing CA-certificate. This
configuration parameter is deprecated.
The path to the CA-certificate is returned.
See: CACertificatePath(const std::string&)
"""
return _arc.UserConfig_CACertificatePath(self, *args)
def CACertificatesDirectory(self, *args):
"""
const std::string& Arc::UserConfig::CACertificatesDirectory() const
Get path to CA-certificate directory.
Retrieve the path to the CA-certificate directory.
The path to the CA-certificate directory is returned.
See: InitializeCredentials()
CredentialsFound() const
CACertificatesDirectory(const std::string&)
"""
return _arc.UserConfig_CACertificatesDirectory(self, *args)
def CertificateLifeTime(self, *args):
"""
const
Period& Arc::UserConfig::CertificateLifeTime() const
Get certificate life time.
Gets lifetime of user certificate which will be obtained from Short
Lived Credentials Service.
The certificate life time is returned as a Period object.
See: CertificateLifeTime(const Period&)
"""
return _arc.UserConfig_CertificateLifeTime(self, *args)
def SLCS(self, *args):
"""
const URL&
Arc::UserConfig::SLCS() const
Get the URL to the Short Lived Certificate Service (SLCS).
The SLCS is returned.
See: SLCS(const URL&)
"""
return _arc.UserConfig_SLCS(self, *args)
def StoreDirectory(self, *args):
"""
const
std::string& Arc::UserConfig::StoreDirectory() const
Get store diretory.
Sets directory which is used to store credentials obtained from Short
Lived Credential Servide.
The path to the store directory is returned.
See: StoreDirectory(const std::string&)
"""
return _arc.UserConfig_StoreDirectory(self, *args)
def JobDownloadDirectory(self, *args):
"""
const
std::string& Arc::UserConfig::JobDownloadDirectory() const
Get download directory.
returns directory which will be used to download the job directory
using arcget command.
The attribute associated with the method is 'jobdownloaddirectory'.
This method returns the job download directory.
See:
"""
return _arc.UserConfig_JobDownloadDirectory(self, *args)
def IdPName(self, *args):
"""
const std::string&
Arc::UserConfig::IdPName() const
Get IdP name.
Gets Identity Provider name (Shibboleth) to which user belongs.
The IdP name
See: IdPName(const std::string&)
"""
return _arc.UserConfig_IdPName(self, *args)
def OverlayFile(self, *args):
"""
const
std::string& Arc::UserConfig::OverlayFile() const
Get path to configuration overlay file.
The overlay file path
See: OverlayFile(const std::string&)
"""
return _arc.UserConfig_OverlayFile(self, *args)
def UtilsDirPath(self, *args):
"""
const
std::string& Arc::UserConfig::UtilsDirPath() const
Get path to directory storing utility files for DataPoints.
The utils dir path
See: UtilsDirPath(const std::string&)
"""
return _arc.UserConfig_UtilsDirPath(self, *args)
def SetUser(self, *args):
"""
void
Arc::UserConfig::SetUser(const User &u)
Set User for filesystem access.
Sometimes it is desirable to use the identity of another user when
accessing the filesystem. This user can be specified through this
method. By default this user is the same as the user running the
process.
Parameters:
-----------
u: User identity to use
"""
return _arc.UserConfig_SetUser(self, *args)
def GetUser(self):
"""
const User&
Arc::UserConfig::GetUser() const
Get User for filesystem access.
The user identity to use for file system access
See: SetUser(const User&)
"""
return _arc.UserConfig_GetUser(self)
DEFAULT_TIMEOUT = _arc.UserConfig_DEFAULT_TIMEOUT
UserConfig_swigregister = _arc.UserConfig_swigregister
UserConfig_swigregister(UserConfig)
UserConfig.ARCUSERDIRECTORY = _arc.cvar.UserConfig_ARCUSERDIRECTORY
UserConfig.SYSCONFIG = _arc.cvar.UserConfig_SYSCONFIG
UserConfig.SYSCONFIGARCLOC = _arc.cvar.UserConfig_SYSCONFIGARCLOC
UserConfig.DEFAULTCONFIG = _arc.cvar.UserConfig_DEFAULTCONFIG
UserConfig.EXAMPLECONFIG = _arc.cvar.UserConfig_EXAMPLECONFIG
UserConfig.DEFAULT_BROKER = _arc.cvar.UserConfig_DEFAULT_BROKER
class CertEnvLocker(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CertEnvLocker, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CertEnvLocker, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""Arc::CertEnvLocker::CertEnvLocker(const UserConfig &cfg) """
this = _arc.new_CertEnvLocker(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_CertEnvLocker
__del__ = lambda self : None;
CertEnvLocker_swigregister = _arc.CertEnvLocker_swigregister
CertEnvLocker_swigregister(CertEnvLocker)
def GUID(*args):
"""
void Arc::GUID(std::string &guid)
Utilities for generating unique identifiers in the form 12345678-90ab-
cdef-1234-567890abcdef.
Generates a unique identifier using information such as IP address,
current time etc.
"""
return _arc.GUID(*args)
def UUID():
"""
std::string Arc::UUID(void)
Generates a unique identifier using the system uuid libraries.
"""
return _arc.UUID()
class CPyOutbuf(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CPyOutbuf, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CPyOutbuf, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _arc.new_CPyOutbuf(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_CPyOutbuf
__del__ = lambda self : None;
CPyOutbuf_swigregister = _arc.CPyOutbuf_swigregister
CPyOutbuf_swigregister(CPyOutbuf)
class CPyOstream(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CPyOstream, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CPyOstream, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _arc.new_CPyOstream(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_CPyOstream
__del__ = lambda self : None;
CPyOstream_swigregister = _arc.CPyOstream_swigregister
CPyOstream_swigregister(CPyOstream)
def LogStream(file):
os = CPyOstream(file)
os.thisown = False
ls = LogStream_ostream(os)
ls.thisown = False
return ls
STATUS_UNDEFINED = _arc.STATUS_UNDEFINED
STATUS_OK = _arc.STATUS_OK
GENERIC_ERROR = _arc.GENERIC_ERROR
PARSING_ERROR = _arc.PARSING_ERROR
PROTOCOL_RECOGNIZED_ERROR = _arc.PROTOCOL_RECOGNIZED_ERROR
UNKNOWN_SERVICE_ERROR = _arc.UNKNOWN_SERVICE_ERROR
BUSY_ERROR = _arc.BUSY_ERROR
SESSION_CLOSE = _arc.SESSION_CLOSE
def string(*args):
"""
std::string
Arc::string(StatusKind kind)
Conversion to string.
Conversion from StatusKind to string.
Parameters:
-----------
kind: The StatusKind to convert.
"""
return _arc.string(*args)
class MCC_Status(_object):
"""
A class for communication of MCC processing results.
This class is used to communicate result status between MCCs. It
contains a status kind, a string specifying the origin ( MCC) of the
status object and an explanation.
C++ includes: MCC_Status.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MCC_Status, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MCC_Status, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::MCC_Status::MCC_Status(StatusKind kind=STATUS_UNDEFINED, const
std::string &origin="???", const std::string &explanation="No
explanation.")
The constructor.
Creates a MCC_Status object.
Parameters:
-----------
kind: The StatusKind (default: STATUS_UNDEFINED)
origin: The origin MCC (default: "???")
explanation: An explanation (default: "No explanation.")
"""
this = _arc.new_MCC_Status(*args)
try: self.this.append(this)
except: self.this = this
def isOk(self):
"""
bool
Arc::MCC_Status::isOk() const
Is the status kind ok?
This method returns true if the status kind of this object is
STATUS_OK true if kind==STATUS_OK
"""
return _arc.MCC_Status_isOk(self)
def getKind(self):
"""
StatusKind
Arc::MCC_Status::getKind() const
Returns the status kind.
Returns the status kind of this object. The status kind of this
object.
"""
return _arc.MCC_Status_getKind(self)
def getOrigin(self):
"""
const std::string&
Arc::MCC_Status::getOrigin() const
Returns the origin.
This method returns a string specifying the origin MCC of this object.
A string specifying the origin MCC of this object.
"""
return _arc.MCC_Status_getOrigin(self)
def getExplanation(self):
"""
const
std::string& Arc::MCC_Status::getExplanation() const
Returns an explanation.
This method returns an explanation of this object. An explanation of
this object.
"""
return _arc.MCC_Status_getExplanation(self)
def __str__(self): return _arc.MCC_Status___str__(self)
def __nonzero__(self):
return _arc.MCC_Status___nonzero__(self)
__bool__ = __nonzero__
__swig_destroy__ = _arc.delete_MCC_Status
__del__ = lambda self : None;
MCC_Status_swigregister = _arc.MCC_Status_swigregister
MCC_Status_swigregister(MCC_Status)
class AttributeIterator(_object):
"""
A const iterator class for accessing multiple values of an attribute.
This is an iterator class that is used when accessing multiple values
of an attribute. The getAll() method of the MessageAttributes class
returns an AttributeIterator object that can be used to access the
values of the attribute.
Typical usage is:
C++ includes: MessageAttributes.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, AttributeIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, AttributeIterator, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::AttributeIterator::AttributeIterator()
Default constructor.
The default constructor. Does nothing since all attributes are
instances of well-behaving STL classes.
"""
this = _arc.new_AttributeIterator()
try: self.this.append(this)
except: self.this = this
def __ref__(self): return _arc.AttributeIterator___ref__(self)
def __deref__(self): return _arc.AttributeIterator___deref__(self)
def key(self):
"""
const
std::string& Arc::AttributeIterator::key(void) const
The key of attribute.
This method returns reference to key of attribute to which iterator
refers.
"""
return _arc.AttributeIterator_key(self)
def next(self, *args): return _arc.AttributeIterator_next(self, *args)
def hasMore(self):
"""
bool
Arc::AttributeIterator::hasMore() const
Predicate method for iteration termination.
This method determines whether there are more values for the iterator
to refer to. Returns true if there are more values, otherwise false.
"""
return _arc.AttributeIterator_hasMore(self)
__swig_destroy__ = _arc.delete_AttributeIterator
__del__ = lambda self : None;
AttributeIterator_swigregister = _arc.AttributeIterator_swigregister
AttributeIterator_swigregister(AttributeIterator)
class MessageAttributes(_object):
"""
A class for storage of attribute values.
This class is used to store attributes of messages. All attribute keys
and their corresponding values are stored as strings. Any key or value
that is not a string must thus be represented as a string during
storage. Furthermore, an attribute is usually a key-value pair with a
unique key, but there may also be multiple such pairs with equal keys.
The key of an attribute is composed by the name of the Message Chain
Component ( MCC) which produce it and the name of the attribute itself
with a colon (:) in between, i.e. MCC_Name:Attribute_Name. For
example, the key of the "Content-Length" attribute of the HTTP MCC
is thus "HTTP:Content-Length".
There are also "global attributes", which may be produced by
different MCCs depending on the configuration. The keys of such
attributes are NOT prefixed by the name of the producing MCC. Before
any new global attribute is introduced, it must be agreed upon by the
core development team and added below. The global attributes decided
so far are: Request-URI Identifies the service to which the message
shall be sent. This attribute is produced by e.g. the HTTP MCC and
used by the plexer for routing the message to the appropriate service.
C++ includes: MessageAttributes.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MessageAttributes, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MessageAttributes, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::MessageAttributes::MessageAttributes()
The default constructor.
This is the default constructor of the MessageAttributes class. It
constructs an empty object that initially contains no attributes.
"""
this = _arc.new_MessageAttributes()
try: self.this.append(this)
except: self.this = this
def set(self, *args):
"""
void
Arc::MessageAttributes::set(const std::string &key, const std::string
&value)
Sets a unique value of an attribute.
This method removes any previous value of an attribute and sets the
new value as the only value.
Parameters:
-----------
key: The key of the attribute.
value: The (new) value of the attribute.
"""
return _arc.MessageAttributes_set(self, *args)
def add(self, *args):
"""
void
Arc::MessageAttributes::add(const std::string &key, const std::string
&value)
Adds a value to an attribute.
This method adds a new value to an attribute. Any previous value will
be preserved, i.e. the attribute may become multiple valued.
Parameters:
-----------
key: The key of the attribute.
value: The (new) value of the attribute.
"""
return _arc.MessageAttributes_add(self, *args)
def removeAll(self, *args):
"""
void
Arc::MessageAttributes::removeAll(const std::string &key)
Removes all attributes with a certain key.
This method removes all attributes that match a certain key.
Parameters:
-----------
key: The key of the attributes to remove.
"""
return _arc.MessageAttributes_removeAll(self, *args)
def remove(self, *args):
"""
void
Arc::MessageAttributes::remove(const std::string &key, const
std::string &value)
Removes one value of an attribute.
This method removes a certain value from the attribute that matches a
certain key.
Parameters:
-----------
key: The key of the attribute from which the value shall be removed.
value: The value to remove.
"""
return _arc.MessageAttributes_remove(self, *args)
def count(self, *args):
"""
int
Arc::MessageAttributes::count(const std::string &key) const
Returns the number of values of an attribute.
Returns the number of values of an attribute that matches a certain
key.
Parameters:
-----------
key: The key of the attribute for which to count values.
The number of values that corresponds to the key.
"""
return _arc.MessageAttributes_count(self, *args)
def get(self, *args):
"""
const
std::string& Arc::MessageAttributes::get(const std::string &key) const
Returns the value of a single-valued attribute.
This method returns the value of a single-valued attribute. If the
attribute is not single valued (i.e. there is no such attribute or it
is a multiple-valued attribute) an empty string is returned.
Parameters:
-----------
key: The key of the attribute for which to return the value.
The value of the attribute.
"""
return _arc.MessageAttributes_get(self, *args)
def getAll(self, *args):
"""
AttributeIterator Arc::MessageAttributes::getAll(void) const
Access all value and attributes.
"""
val = _arc.MessageAttributes_getAll(self, *args)
d = dict()
while val.hasMore():
d[val.key()] = val.__ref__()
val.next()
return d
return val
__swig_destroy__ = _arc.delete_MessageAttributes
__del__ = lambda self : None;
MessageAttributes_swigregister = _arc.MessageAttributes_swigregister
MessageAttributes_swigregister(MessageAttributes)
class SecAttrFormat(_object):
"""
Export/import format.
Format is identified by textual identity string. Class description
includes basic formats only. That list may be extended.
C++ includes: SecAttr.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SecAttrFormat, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SecAttrFormat, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""Arc::SecAttrFormat::SecAttrFormat(const char *format="") """
this = _arc.new_SecAttrFormat(*args)
try: self.this.append(this)
except: self.this = this
def __eq__(self, *args): return _arc.SecAttrFormat___eq__(self, *args)
def __ne__(self, *args): return _arc.SecAttrFormat___ne__(self, *args)
__swig_destroy__ = _arc.delete_SecAttrFormat
__del__ = lambda self : None;
SecAttrFormat_swigregister = _arc.SecAttrFormat_swigregister
SecAttrFormat_swigregister(SecAttrFormat)
class SecAttr(_object):
"""
This is an abstract interface to a security attribute.
This class is meant to be inherited to implement security attributes.
Depending on what data it needs to store inheriting classes may need
to implement constructor and destructor. They must however override
the equality and the boolean operators. The equality is meant to
compare security attributes. The prototype implies that all attributes
are comparable to all others. This behaviour should be modified as
needed by using dynamic_cast operations. The boolean cast operation is
meant to embody "nullness" if that is applicable to the particular
type.
C++ includes: SecAttr.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SecAttr, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SecAttr, name)
__repr__ = _swig_repr
__swig_setmethods__["UNDEFINED"] = _arc.SecAttr_UNDEFINED_set
__swig_getmethods__["UNDEFINED"] = _arc.SecAttr_UNDEFINED_get
if _newclass:UNDEFINED = _swig_property(_arc.SecAttr_UNDEFINED_get, _arc.SecAttr_UNDEFINED_set)
__swig_setmethods__["ARCAuth"] = _arc.SecAttr_ARCAuth_set
__swig_getmethods__["ARCAuth"] = _arc.SecAttr_ARCAuth_get
if _newclass:ARCAuth = _swig_property(_arc.SecAttr_ARCAuth_get, _arc.SecAttr_ARCAuth_set)
__swig_setmethods__["XACML"] = _arc.SecAttr_XACML_set
__swig_getmethods__["XACML"] = _arc.SecAttr_XACML_get
if _newclass:XACML = _swig_property(_arc.SecAttr_XACML_get, _arc.SecAttr_XACML_set)
__swig_setmethods__["SAML"] = _arc.SecAttr_SAML_set
__swig_getmethods__["SAML"] = _arc.SecAttr_SAML_get
if _newclass:SAML = _swig_property(_arc.SecAttr_SAML_get, _arc.SecAttr_SAML_set)
__swig_setmethods__["GACL"] = _arc.SecAttr_GACL_set
__swig_getmethods__["GACL"] = _arc.SecAttr_GACL_get
if _newclass:GACL = _swig_property(_arc.SecAttr_GACL_get, _arc.SecAttr_GACL_set)
def __init__(self):
"""
Arc::SecAttr::SecAttr()
representation for GACL policy
"""
this = _arc.new_SecAttr()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SecAttr
__del__ = lambda self : None;
def __eq__(self, *args): return _arc.SecAttr___eq__(self, *args)
def __ne__(self, *args): return _arc.SecAttr___ne__(self, *args)
def __nonzero__(self):
return _arc.SecAttr___nonzero__(self)
__bool__ = __nonzero__
def Export(self, *args):
"""
virtual bool
Arc::SecAttr::Export(SecAttrFormat format, XMLNode &val) const
Convert internal structure into specified format. Returns false if
format is not supported/suitable for this attribute. XML node
referenced by is turned into top level element of specified format.
"""
return _arc.SecAttr_Export(self, *args)
def Import(self, *args):
"""
virtual bool
Arc::SecAttr::Import(SecAttrFormat format, XMLNode val)
"""
return _arc.SecAttr_Import(self, *args)
def get(self, *args):
"""
virtual std::string
Arc::SecAttr::get(const std::string &id) const
Access to specific item of the security attribute. If there are few
items of same id the first one is presented. It is meant to be used
for tightly coupled SecHandlers and provides more effective interface
than Export.
"""
return _arc.SecAttr_get(self, *args)
def getAll(self, *args):
"""
virtual
std::list<std::string> Arc::SecAttr::getAll(const std::string &id)
const
Access to specific items of the security attribute. This method
returns all items which have id assigned. It is meant to be used for
tightly coupled SecHandlers and provides more effective interface than
Export.
"""
return _arc.SecAttr_getAll(self, *args)
SecAttr_swigregister = _arc.SecAttr_swigregister
SecAttr_swigregister(SecAttr)
class MultiSecAttr(SecAttr):
"""
Container of multiple SecAttr attributes.
This class combines multiple attributes. It's export/import methods
catenate results of underlying objects. Primary meaning of this class
is to serve as base for classes implementing multi level hierarchical
tree-like descriptions of user identity. It may also be used for
collecting information of same source or kind. Like all information
extracted from X509 certificate.
C++ includes: SecAttr.h
"""
__swig_setmethods__ = {}
for _s in [SecAttr]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, MultiSecAttr, name, value)
__swig_getmethods__ = {}
for _s in [SecAttr]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, MultiSecAttr, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::MultiSecAttr::MultiSecAttr() """
this = _arc.new_MultiSecAttr()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MultiSecAttr
__del__ = lambda self : None;
def __nonzero__(self):
return _arc.MultiSecAttr___nonzero__(self)
__bool__ = __nonzero__
def Export(self, *args):
"""
virtual bool
Arc::MultiSecAttr::Export(SecAttrFormat format, XMLNode &val) const
Convert internal structure into specified format. Returns false if
format is not supported/suitable for this attribute. XML node
referenced by is turned into top level element of specified format.
"""
return _arc.MultiSecAttr_Export(self, *args)
def Import(self, *args):
"""
virtual bool
Arc::MultiSecAttr::Import(SecAttrFormat format, XMLNode val)
"""
return _arc.MultiSecAttr_Import(self, *args)
MultiSecAttr_swigregister = _arc.MultiSecAttr_swigregister
MultiSecAttr_swigregister(MultiSecAttr)
class MessageAuth(_object):
"""
Contains authencity information, authorization tokens and decisions.
This class only supports string keys and SecAttr values.
C++ includes: MessageAuth.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MessageAuth, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MessageAuth, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::MessageAuth::MessageAuth(void) """
this = _arc.new_MessageAuth()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MessageAuth
__del__ = lambda self : None;
def set(self, *args):
"""
void
Arc::MessageAuth::set(const std::string &key, SecAttr *value)
Adds/overwrites security attribute stored under specified key.
"""
return _arc.MessageAuth_set(self, *args)
def remove(self, *args):
"""
void
Arc::MessageAuth::remove(const std::string &key)
Deletes security attribute stored under specified key.
"""
return _arc.MessageAuth_remove(self, *args)
def get(self, *args):
"""
SecAttr*
Arc::MessageAuth::get(const std::string &key)
Retrieves reference to security attribute stored under specified key.
"""
return _arc.MessageAuth_get(self, *args)
def Export(self, *args):
"""
bool
Arc::MessageAuth::Export(SecAttrFormat format, XMLNode &val) const
Returns properly catenated attributes in specified format.
Content of XML node at is replaced with generated information if XML
tree is empty. If tree at is not empty then Export() tries to merge
generated information to already existing like everything would be
generated inside same Export() method. If does not represent valid
node then new XML tree is created.
"""
x = XMLNode("<dummy/>")
args = args[:-1] + (args[-1].fget(), x)
val = _arc.MessageAuth_Export(self, *args)
return x
return val
def Filter(self, *args):
"""
MessageAuth*
Arc::MessageAuth::Filter(const std::list< std::string >
&selected_keys, const std::list< std::string > &rejected_keys)
Creates new instance of MessageAuth with attributes filtered.
In new instance all attributes with keys listed in are removed. If is
not empty only corresponding attributes are transferred to new
instance. Created instance does not own refered attributes. Hence
parent instance must not be deleted as long as this one is in use.
"""
return _arc.MessageAuth_Filter(self, *args)
MessageAuth_swigregister = _arc.MessageAuth_swigregister
MessageAuth_swigregister(MessageAuth)
class MessagePayload(_object):
"""
Base class for content of message passed through chain.
It's not intended to be used directly. Instead functional classes must
be derived from it.
C++ includes: Message.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MessagePayload, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MessagePayload, name)
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_MessagePayload
__del__ = lambda self : None;
def __init__(self):
this = _arc.new_MessagePayload()
try: self.this.append(this)
except: self.this = this
MessagePayload_swigregister = _arc.MessagePayload_swigregister
MessagePayload_swigregister(MessagePayload)
class MessageContextElement(_object):
"""
Top class for elements contained in message context.
Objects of classes inherited with this one may be stored in
MessageContext container.
C++ includes: Message.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MessageContextElement, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MessageContextElement, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::MessageContextElement::MessageContextElement(void) """
this = _arc.new_MessageContextElement()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MessageContextElement
__del__ = lambda self : None;
MessageContextElement_swigregister = _arc.MessageContextElement_swigregister
MessageContextElement_swigregister(MessageContextElement)
class MessageContext(_object):
"""
Handler for content of message context.
This class is a container for objects derived from
MessageContextElement. It gets associated with Message object usually
by first MCC in a chain and is kept as long as connection persists.
C++ includes: Message.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MessageContext, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MessageContext, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::MessageContext::MessageContext(void) """
this = _arc.new_MessageContext()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MessageContext
__del__ = lambda self : None;
def Add(self, *args):
"""
void
Arc::MessageContext::Add(const std::string &name,
MessageContextElement *element)
Provided element is taken over by this class. It is remembered by it
and destroyed when this class is destroyed.
"""
return _arc.MessageContext_Add(self, *args)
MessageContext_swigregister = _arc.MessageContext_swigregister
MessageContext_swigregister(MessageContext)
class MessageAuthContext(MessageAuth):
"""
Handler for content of message auth* context.
This class is a container for authorization and authentication
information. It gets associated with Message object usually by first
MCC in a chain and is kept as long as connection persists.
C++ includes: Message.h
"""
__swig_setmethods__ = {}
for _s in [MessageAuth]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, MessageAuthContext, name, value)
__swig_getmethods__ = {}
for _s in [MessageAuth]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, MessageAuthContext, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::MessageAuthContext::MessageAuthContext(void) """
this = _arc.new_MessageAuthContext()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MessageAuthContext
__del__ = lambda self : None;
MessageAuthContext_swigregister = _arc.MessageAuthContext_swigregister
MessageAuthContext_swigregister(MessageAuthContext)
class Message(_object):
"""
Object being passed through chain of MCCs.
An instance of this class refers to objects with main content (
MessagePayload), authentication/authorization information (
MessageAuth) and common purpose attributes ( MessageAttributes).
Message class does not manage pointers to objects and their content.
It only serves for grouping those objects. Message objects are
supposed to be processed by MCCs and Services implementing
MCCInterface method process(). All objects constituting content of
Message object are subject to following policies:
1. All objects created inside call to process() method using new
command must be explicitely destroyed within same call using delete
command with following exceptions. a) Objects which are assigned to
'response' Message. b) Objects whose management is completely acquired
by objects assigned to 'response' Message.
2. All objects not created inside call to process() method are not
explicitely destroyed within that call with following exception. a)
Objects which are part of 'response' Method returned from call to
next's process() method. Unless those objects are passed further to
calling process(), of course.
3. It is not allowed to make 'response' point to same objects as
'request' does on entry to process() method. That is needed to avoid
double destruction of same object. (Note: if in a future such need
arises it may be solved by storing additional flags in Message
object).
4. It is allowed to change content of pointers of 'request' Message.
Calling process() method must not rely on that object to stay intact.
5. Called process() method should either fill 'response' Message with
pointers to valid objects or to keep them intact. This makes it
possible for calling process() to preload 'response' with valid error
message.
C++ includes: Message.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Message, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Message, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::Message::Message(long msg_ptr_addr)
Copy constructor. Used by language bindigs
"""
this = _arc.new_Message(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_Message
__del__ = lambda self : None;
def Payload(self, *args):
"""
MessagePayload*
Arc::Message::Payload(MessagePayload *payload)
Replaces payload with new one. Returns the old one.
"""
return _arc.Message_Payload(self, *args)
def Attributes(self, *args):
"""
void
Arc::Message::Attributes(MessageAttributes *attr)
"""
return _arc.Message_Attributes(self, *args)
def Auth(self, *args):
"""
void
Arc::Message::Auth(MessageAuth *auth)
"""
return _arc.Message_Auth(self, *args)
def Context(self, *args):
"""
void
Arc::Message::Context(MessageContext *ctx)
Assigns message context object
"""
return _arc.Message_Context(self, *args)
def AuthContext(self, *args):
"""
void
Arc::Message::AuthContext(MessageAuthContext *auth_ctx)
Assigns auth* context object
"""
return _arc.Message_AuthContext(self, *args)
Message_swigregister = _arc.Message_swigregister
Message_swigregister(Message)
class MCCInterface(_object):
"""
Interface for communication between MCC, Service and Plexer objects.
The Interface consists of the method process() which is called by the
previous MCC in the chain. For memory management policies please read
the description of the Message class.
C++ includes: MCC.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MCCInterface, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MCCInterface, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
def process(self, *args):
"""
virtual MCC_Status
Arc::MCCInterface::process(Message &request, Message &response)=0
Method for processing of requests and responses. This method is called
by preceeding MCC in chain when a request needs to be processed. This
method must call similar method of next MCC in chain unless any
failure happens. Result returned by call to next MCC should be
processed and passed back to previous MCC. In case of failure this
method is expected to generate valid error response and return it back
to previous MCC without calling the next one.
Parameters:
-----------
request: The request that needs to be processed.
response: A Message object that will contain the response of the
request when the method returns.
An object representing the status of the call.
"""
return _arc.MCCInterface_process(self, *args)
__swig_destroy__ = _arc.delete_MCCInterface
__del__ = lambda self : None;
MCCInterface_swigregister = _arc.MCCInterface_swigregister
MCCInterface_swigregister(MCCInterface)
class MCC(MCCInterface):
"""
Message Chain Component - base class for every MCC plugin.
This is partialy virtual class which defines interface and common
functionality for every MCC plugin needed for managing of component in
a chain.
C++ includes: MCC.h
"""
__swig_setmethods__ = {}
for _s in [MCCInterface]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, MCC, name, value)
__swig_getmethods__ = {}
for _s in [MCCInterface]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, MCC, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::MCC::MCC(Config *)
Example contructor - MCC takes at least it's configuration subtree
"""
this = _arc.new_MCC(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MCC
__del__ = lambda self : None;
def Next(self, *args):
"""
virtual void
Arc::MCC::Next(MCCInterface *next, const std::string &label="")
Add reference to next MCC in chain. This method is called by Loader
for every potentially labeled link to next component which implements
MCCInterface. If next is NULL corresponding link is removed.
"""
return _arc.MCC_Next(self, *args)
def AddSecHandler(self, *args):
"""
virtual void
Arc::MCC::AddSecHandler(Config *cfg, ArcSec::SecHandler *sechandler,
const std::string &label="")
Add security components/handlers to this MCC. Security handlers are
stacked into a few queues with each queue identified by its label. The
queue labelled 'incoming' is executed for every 'request' message
after the message is processed by the MCC on the service side and
before processing on the client side. The queue labelled 'outgoing' is
run for response message before it is processed by MCC algorithms on
the service side and after processing on the client side. Those labels
are just a matter of agreement and some MCCs may implement different
queues executed at various message processing steps.
"""
return _arc.MCC_AddSecHandler(self, *args)
def Unlink(self):
"""
virtual void
Arc::MCC::Unlink()
Removing all links. Useful for destroying chains.
"""
return _arc.MCC_Unlink(self)
def process(self, *args):
"""
virtual MCC_Status
Arc::MCC::process(Message &, Message &)
Dummy Message processing method. Just a placeholder.
"""
return _arc.MCC_process(self, *args)
MCC_swigregister = _arc.MCC_swigregister
MCC_swigregister(MCC)
class MCCConfig(BaseConfig):
__swig_setmethods__ = {}
for _s in [BaseConfig]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, MCCConfig, name, value)
__swig_getmethods__ = {}
for _s in [BaseConfig]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, MCCConfig, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::MCCConfig::MCCConfig() """
this = _arc.new_MCCConfig()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MCCConfig
__del__ = lambda self : None;
def MakeConfig(self, *args):
"""
virtual XMLNode
Arc::MCCConfig::MakeConfig(XMLNode cfg) const
Adds configuration part corresponding to stored information into
common configuration tree supplied in 'cfg' argument. Returns
reference to XML node representing configuration of ModuleManager
"""
return _arc.MCCConfig_MakeConfig(self, *args)
MCCConfig_swigregister = _arc.MCCConfig_swigregister
MCCConfig_swigregister(MCCConfig)
MCCPluginKind = _arc.MCCPluginKind
class MCCPluginArgument(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MCCPluginArgument, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MCCPluginArgument, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::MCCPluginArgument::MCCPluginArgument(Config *config, ChainContext
*context)
"""
this = _arc.new_MCCPluginArgument(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_MCCPluginArgument
__del__ = lambda self : None;
MCCPluginArgument_swigregister = _arc.MCCPluginArgument_swigregister
MCCPluginArgument_swigregister(MCCPluginArgument)
class PayloadRawInterface(MessagePayload):
"""
Random Access Payload for Message objects.
This class is a virtual interface for managing Message payload with
arbitrarily accessible content. Inheriting classes are supposed to
implement memory-resident or memory-mapped content made of optionally
multiple chunks/buffers. Every buffer has own size and offset. This
class is purely virtual.
C++ includes: PayloadRaw.h
"""
__swig_setmethods__ = {}
for _s in [MessagePayload]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PayloadRawInterface, name, value)
__swig_getmethods__ = {}
for _s in [MessagePayload]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, PayloadRawInterface, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_PayloadRawInterface
__del__ = lambda self : None;
def Content(self, *args):
"""
virtual
char* Arc::PayloadRawInterface::Content(Size_t pos=-1)=0
Get pointer to buffer content at global position 'pos'. By default to
beginning of main buffer whatever that means.
"""
return _arc.PayloadRawInterface_Content(self, *args)
def Size(self):
"""
virtual Size_t
Arc::PayloadRawInterface::Size(void) const =0
Returns logical size of whole structure.
"""
return _arc.PayloadRawInterface_Size(self)
def Insert(self, *args):
"""
virtual
char* Arc::PayloadRawInterface::Insert(const char *s, Size_t pos=0,
Size_t size=-1)=0
Create new buffer at global position 'pos' of size 'size'. Created
buffer is filled with content of memory at 's'. If 'size' is negative
content at 's' is expected to be null-terminated.
"""
return _arc.PayloadRawInterface_Insert(self, *args)
def Buffer(self, *args):
"""
virtual
char* Arc::PayloadRawInterface::Buffer(unsigned int num)=0
Returns pointer to num'th buffer
"""
return _arc.PayloadRawInterface_Buffer(self, *args)
def BufferSize(self, *args):
"""
virtual
Size_t Arc::PayloadRawInterface::BufferSize(unsigned int num) const =0
Returns length of num'th buffer
"""
return _arc.PayloadRawInterface_BufferSize(self, *args)
def BufferPos(self, *args):
"""
virtual
Size_t Arc::PayloadRawInterface::BufferPos(unsigned int num) const =0
Returns position of num'th buffer
"""
return _arc.PayloadRawInterface_BufferPos(self, *args)
def Truncate(self, *args):
"""
virtual
bool Arc::PayloadRawInterface::Truncate(Size_t size)=0
Change size of stored information. If size exceeds end of allocated
buffer, buffers are not re-allocated, only logical size is extended.
Buffers with location behind new size are deallocated.
"""
return _arc.PayloadRawInterface_Truncate(self, *args)
PayloadRawInterface_swigregister = _arc.PayloadRawInterface_swigregister
PayloadRawInterface_swigregister(PayloadRawInterface)
class PayloadRawBuf(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, PayloadRawBuf, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, PayloadRawBuf, name)
__repr__ = _swig_repr
__swig_setmethods__["data"] = _arc.PayloadRawBuf_data_set
__swig_getmethods__["data"] = _arc.PayloadRawBuf_data_get
if _newclass:data = _swig_property(_arc.PayloadRawBuf_data_get, _arc.PayloadRawBuf_data_set)
__swig_setmethods__["size"] = _arc.PayloadRawBuf_size_set
__swig_getmethods__["size"] = _arc.PayloadRawBuf_size_get
if _newclass:size = _swig_property(_arc.PayloadRawBuf_size_get, _arc.PayloadRawBuf_size_set)
__swig_setmethods__["length"] = _arc.PayloadRawBuf_length_set
__swig_getmethods__["length"] = _arc.PayloadRawBuf_length_get
if _newclass:length = _swig_property(_arc.PayloadRawBuf_length_get, _arc.PayloadRawBuf_length_set)
__swig_setmethods__["allocated"] = _arc.PayloadRawBuf_allocated_set
__swig_getmethods__["allocated"] = _arc.PayloadRawBuf_allocated_get
if _newclass:allocated = _swig_property(_arc.PayloadRawBuf_allocated_get, _arc.PayloadRawBuf_allocated_set)
def __init__(self):
this = _arc.new_PayloadRawBuf()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_PayloadRawBuf
__del__ = lambda self : None;
PayloadRawBuf_swigregister = _arc.PayloadRawBuf_swigregister
PayloadRawBuf_swigregister(PayloadRawBuf)
class PayloadRaw(PayloadRawInterface):
"""
Raw byte multi-buffer.
This is implementation of PayloadRawInterface. Buffers are memory
blocks logically placed one after another.
C++ includes: PayloadRaw.h
"""
__swig_setmethods__ = {}
for _s in [PayloadRawInterface]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PayloadRaw, name, value)
__swig_getmethods__ = {}
for _s in [PayloadRawInterface]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, PayloadRaw, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::PayloadRaw::PayloadRaw(void)
List of handled buffers. Constructor. Created object contains no
buffers.
"""
this = _arc.new_PayloadRaw()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_PayloadRaw
__del__ = lambda self : None;
def Content(self, *args):
"""
virtual char*
Arc::PayloadRaw::Content(Size_t pos=-1)
Get pointer to buffer content at global position 'pos'. By default to
beginning of main buffer whatever that means.
"""
return _arc.PayloadRaw_Content(self, *args)
def Size(self):
"""
virtual Size_t
Arc::PayloadRaw::Size(void) const
Returns logical size of whole structure.
"""
return _arc.PayloadRaw_Size(self)
def Insert(self, *args):
"""
virtual char*
Arc::PayloadRaw::Insert(const char *s, Size_t pos=0, Size_t size=-1)
Create new buffer at global position 'pos' of size 'size'. Created
buffer is filled with content of memory at 's'. If 'size' is negative
content at 's' is expected to be null-terminated.
"""
return _arc.PayloadRaw_Insert(self, *args)
def Buffer(self, num = 0):
"""
virtual char*
Arc::PayloadRaw::Buffer(unsigned int num=0)
Returns pointer to num'th buffer
"""
return _arc.PayloadRaw_Buffer(self, num)
def BufferSize(self, num = 0):
"""
virtual Size_t
Arc::PayloadRaw::BufferSize(unsigned int num=0) const
Returns length of num'th buffer
"""
return _arc.PayloadRaw_BufferSize(self, num)
def BufferPos(self, num = 0):
"""
virtual Size_t
Arc::PayloadRaw::BufferPos(unsigned int num=0) const
Returns position of num'th buffer
"""
return _arc.PayloadRaw_BufferPos(self, num)
def Truncate(self, *args):
"""
virtual bool
Arc::PayloadRaw::Truncate(Size_t size)
Change size of stored information. If size exceeds end of allocated
buffer, buffers are not re-allocated, only logical size is extended.
Buffers with location behind new size are deallocated.
"""
return _arc.PayloadRaw_Truncate(self, *args)
PayloadRaw_swigregister = _arc.PayloadRaw_swigregister
PayloadRaw_swigregister(PayloadRaw)
def ContentFromPayload(*args):
"""
const char*
Arc::ContentFromPayload(const MessagePayload &payload)
Returns pointer to main memory chunk of Message payload.
If no buffer is present or if payload is not of PayloadRawInterface
type NULL is returned.
"""
return _arc.ContentFromPayload(*args)
class SOAPFault(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SOAPFault, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SOAPFault, name)
__repr__ = _swig_repr
undefined = _arc.SOAPFault_undefined
unknown = _arc.SOAPFault_unknown
VersionMismatch = _arc.SOAPFault_VersionMismatch
MustUnderstand = _arc.SOAPFault_MustUnderstand
Sender = _arc.SOAPFault_Sender
Receiver = _arc.SOAPFault_Receiver
DataEncodingUnknown = _arc.SOAPFault_DataEncodingUnknown
def __init__(self, *args):
this = _arc.new_SOAPFault(*args)
try: self.this.append(this)
except: self.this = this
def __nonzero__(self):
return _arc.SOAPFault___nonzero__(self)
__bool__ = __nonzero__
def Code(self, *args): return _arc.SOAPFault_Code(self, *args)
def Subcode(self, *args): return _arc.SOAPFault_Subcode(self, *args)
def Reason(self, *args): return _arc.SOAPFault_Reason(self, *args)
def Node(self, *args): return _arc.SOAPFault_Node(self, *args)
def Role(self, *args): return _arc.SOAPFault_Role(self, *args)
def Detail(self, create = False): return _arc.SOAPFault_Detail(self, create)
__swig_getmethods__["MakeSOAPFault"] = lambda x: _arc.SOAPFault_MakeSOAPFault
if _newclass:MakeSOAPFault = staticmethod(_arc.SOAPFault_MakeSOAPFault)
__swig_destroy__ = _arc.delete_SOAPFault
__del__ = lambda self : None;
SOAPFault_swigregister = _arc.SOAPFault_swigregister
SOAPFault_swigregister(SOAPFault)
def SOAPFault_MakeSOAPFault(*args):
return _arc.SOAPFault_MakeSOAPFault(*args)
SOAPFault_MakeSOAPFault = _arc.SOAPFault_MakeSOAPFault
class SOAPEnvelope(XMLNode):
__swig_setmethods__ = {}
for _s in [XMLNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SOAPEnvelope, name, value)
__swig_getmethods__ = {}
for _s in [XMLNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, SOAPEnvelope, name)
__repr__ = _swig_repr
Version_1_1 = _arc.SOAPEnvelope_Version_1_1
Version_1_2 = _arc.SOAPEnvelope_Version_1_2
def __init__(self, *args):
this = _arc.new_SOAPEnvelope(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SOAPEnvelope
__del__ = lambda self : None;
def New(self):
"""
void
Arc::XMLNode::New(XMLNode &node) const
Creates a copy of XML (sub)tree. If object does not represent whole
document - top level document is created. 'node' becomes a pointer
owning new XML document.
"""
return _arc.SOAPEnvelope_New(self)
def Swap(self, *args):
"""
void
Arc::XMLNode::Swap(XMLNode &node)
Swaps XML (sub)trees to this this and node refer. For XML subtrees
this method is not anyhow different then using combinaiion XMLNode
tmp=*this; *this=node; node=tmp; But in case of either this or node
owning XML document ownership is swapped too. And this is a main
purpose of Swap() method.
"""
return _arc.SOAPEnvelope_Swap(self, *args)
def Namespaces(self, *args):
"""
NS
Arc::XMLNode::Namespaces(void)
Returns namespaces known at this node
"""
return _arc.SOAPEnvelope_Namespaces(self, *args)
def GetXML(self, user_friendly = False):
"""
void
Arc::XMLNode::GetXML(std::string &out_xml_str, const std::string
&encoding, bool user_friendly=false) const
Fills argument with this instance XML subtree textual representation
if the XML subtree is corresponding to the encoding format specified
in the argument, e.g. utf-8
"""
return _arc.SOAPEnvelope_GetXML(self, user_friendly)
def Header(self): return _arc.SOAPEnvelope_Header(self)
def Body(self): return _arc.SOAPEnvelope_Body(self)
def IsFault(self): return _arc.SOAPEnvelope_IsFault(self)
def Fault(self): return _arc.SOAPEnvelope_Fault(self)
def Version(self): return _arc.SOAPEnvelope_Version(self)
SOAPEnvelope_swigregister = _arc.SOAPEnvelope_swigregister
SOAPEnvelope_swigregister(SOAPEnvelope)
class SOAPMessage(_object):
"""
Message restricted to SOAP payload.
This is a special Message intended to be used in language bindings for
programming languages which are not flexible enough to support all
kinds of Payloads. It is passed through chain of MCCs and works like
the Message but can carry only SOAP content.
C++ includes: SOAPMessage.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SOAPMessage, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SOAPMessage, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::SOAPMessage::SOAPMessage(Message &msg)
Copy constructor. Ensures shallow copy.
"""
this = _arc.new_SOAPMessage(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SOAPMessage
__del__ = lambda self : None;
def Payload(self, *args):
"""
void
Arc::SOAPMessage::Payload(SOAPEnvelope *new_payload)
Replace payload with a COPY of new one
"""
return _arc.SOAPMessage_Payload(self, *args)
def Attributes(self, *args):
"""
void
Arc::SOAPMessage::Attributes(MessageAttributes *attributes)
"""
return _arc.SOAPMessage_Attributes(self, *args)
def Auth(self, *args):
"""
void
Arc::SOAPMessage::Auth(MessageAuth *auth)
"""
return _arc.SOAPMessage_Auth(self, *args)
def Context(self, *args):
"""
void
Arc::SOAPMessage::Context(MessageContext *context)
"""
return _arc.SOAPMessage_Context(self, *args)
SOAPMessage_swigregister = _arc.SOAPMessage_swigregister
SOAPMessage_swigregister(SOAPMessage)
class PayloadSOAP(SOAPEnvelope,MessagePayload):
"""
Payload of Message with SOAP content.
This class combines MessagePayload with SOAPEnvelope to make it
possible to pass SOAP messages through MCC chain.
C++ includes: PayloadSOAP.h
"""
__swig_setmethods__ = {}
for _s in [SOAPEnvelope,MessagePayload]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PayloadSOAP, name, value)
__swig_getmethods__ = {}
for _s in [SOAPEnvelope,MessagePayload]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, PayloadSOAP, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::PayloadSOAP::PayloadSOAP(const MessagePayload &source)
Constructor - creates SOAP message from payload. PayloadRawInterface
and derived classes are supported.
"""
this = _arc.new_PayloadSOAP(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_PayloadSOAP
__del__ = lambda self : None;
PayloadSOAP_swigregister = _arc.PayloadSOAP_swigregister
PayloadSOAP_swigregister(PayloadSOAP)
class PayloadStreamInterface(MessagePayload):
"""
Stream-like Payload for Message object.
This class is a virtual interface for managing stream-like source and
destination. It's supposed to be passed through MCC chain as payload
of Message. It must be treated by MCCs and Services as dynamic
payload. This class is purely virtual.
C++ includes: PayloadStream.h
"""
__swig_setmethods__ = {}
for _s in [MessagePayload]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PayloadStreamInterface, name, value)
__swig_getmethods__ = {}
for _s in [MessagePayload]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, PayloadStreamInterface, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_PayloadStreamInterface
__del__ = lambda self : None;
def Get(self, *args):
"""
virtual
std::string Arc::PayloadStreamInterface::Get(void)=0
Read as many as possible (sane amount) of bytes.
"""
return _arc.PayloadStreamInterface_Get(self, *args)
def Put(self, *args):
"""
virtual bool
Arc::PayloadStreamInterface::Put(const char *buf)=0
Push null terminated information from 'buf' into stream. Returns true
on success.
"""
return _arc.PayloadStreamInterface_Put(self, *args)
def __nonzero__(self):
return _arc.PayloadStreamInterface___nonzero__(self)
__bool__ = __nonzero__
def Timeout(self, *args):
"""
virtual
void Arc::PayloadStreamInterface::Timeout(int to)=0
Set current timeout for Get() and Put() operations.
"""
return _arc.PayloadStreamInterface_Timeout(self, *args)
def Pos(self):
"""
virtual
Size_t Arc::PayloadStreamInterface::Pos(void) const =0
Returns current position in stream if supported.
"""
return _arc.PayloadStreamInterface_Pos(self)
def Size(self):
"""
virtual
Size_t Arc::PayloadStreamInterface::Size(void) const =0
Returns size of underlying object if supported.
"""
return _arc.PayloadStreamInterface_Size(self)
def Limit(self):
"""
virtual
Size_t Arc::PayloadStreamInterface::Limit(void) const =0
Returns position at which stream reading will stop if supported. That
may be not same as Size() if instance is meant to provide access to
only part of underlying obejct.
"""
return _arc.PayloadStreamInterface_Limit(self)
PayloadStreamInterface_swigregister = _arc.PayloadStreamInterface_swigregister
PayloadStreamInterface_swigregister(PayloadStreamInterface)
class PayloadStream(PayloadStreamInterface):
"""
POSIX handle as Payload.
This is an implemetation of PayloadStreamInterface for generic POSIX
handle.
C++ includes: PayloadStream.h
"""
__swig_setmethods__ = {}
for _s in [PayloadStreamInterface]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PayloadStream, name, value)
__swig_getmethods__ = {}
for _s in [PayloadStreamInterface]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, PayloadStream, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::PayloadStream::PayloadStream(int h=-1)
true if lseek operation is applicable to open handle Constructor.
Attaches to already open handle. Handle is not managed by this class
and must be closed by external code.
"""
this = _arc.new_PayloadStream(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_PayloadStream
__del__ = lambda self : None;
def Get(self, *args):
"""
virtual std::string
Arc::PayloadStream::Get(void)
Read as many as possible (sane amount) of bytes.
"""
return _arc.PayloadStream_Get(self, *args)
def Put(self, *args):
"""
virtual bool
Arc::PayloadStream::Put(const char *buf)
Push null terminated information from 'buf' into stream. Returns true
on success.
"""
return _arc.PayloadStream_Put(self, *args)
def __nonzero__(self):
return _arc.PayloadStream___nonzero__(self)
__bool__ = __nonzero__
def Timeout(self, *args):
"""
virtual void
Arc::PayloadStream::Timeout(int to)
Set current timeout for Get() and Put() operations.
"""
return _arc.PayloadStream_Timeout(self, *args)
def Pos(self):
"""
virtual Size_t
Arc::PayloadStream::Pos(void) const
Returns current position in stream if supported.
"""
return _arc.PayloadStream_Pos(self)
def Size(self):
"""
virtual Size_t
Arc::PayloadStream::Size(void) const
Returns size of underlying object if supported.
"""
return _arc.PayloadStream_Size(self)
def Limit(self):
"""
virtual Size_t
Arc::PayloadStream::Limit(void) const
Returns position at which stream reading will stop if supported. That
may be not same as Size() if instance is meant to provide access to
only part of underlying obejct.
"""
return _arc.PayloadStream_Limit(self)
PayloadStream_swigregister = _arc.PayloadStream_swigregister
PayloadStream_swigregister(PayloadStream)
class Service(MCCInterface):
"""
Service - last component in a Message Chain.
This class which defines interface and common functionality for every
Service plugin. Interface is made of method process() which is called
by Plexer or MCC class. There is one Service object created for every
service description processed by Loader class objects. Classes derived
from Service class must implement process() method of MCCInterface. It
is up to developer how internal state of service is stored and
communicated to other services and external utilites. Service is free
to expect any type of payload passed to it and generate any payload as
well. Useful types depend on MCCs in chain which leads to that
service. For example if service is expected to by linked to SOAP MCC
it must accept and generate messages with PayloadSOAP payload. Method
process() of class derived from Service class may be called
concurently in multiple threads. Developers must take that into
account and write thread-safe implementation. Simple example of
service is provided in /src/tests/echo/echo.cpp of source tree. The
way to write client couterpart of corresponding service is undefined
yet. For example see /src/tests/echo/test.cpp .
C++ includes: Service.h
"""
__swig_setmethods__ = {}
for _s in [MCCInterface]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, Service, name, value)
__swig_getmethods__ = {}
for _s in [MCCInterface]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, Service, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_Service
__del__ = lambda self : None;
def AddSecHandler(self, *args):
"""
virtual void
Arc::Service::AddSecHandler(Config *cfg, ArcSec::SecHandler
*sechandler, const std::string &label="")
Add security components/handlers to this MCC. For more information
please see description of MCC::AddSecHandler
"""
return _arc.Service_AddSecHandler(self, *args)
def RegistrationCollector(self, *args):
"""
virtual
bool Arc::Service::RegistrationCollector(XMLNode &doc)
Service specific registartion collector, used for generate service
registartions. In implemented service this method should generate
GLUE2 document with part of service description which service wishes
to advertise to Information Services.
"""
return _arc.Service_RegistrationCollector(self, *args)
def getID(self):
"""
virtual std::string
Arc::Service::getID()
Service may implement own service identitifer gathering method. This
method return identifier of service which is used for registering it
Information Services.
"""
return _arc.Service_getID(self)
Service_swigregister = _arc.Service_swigregister
Service_swigregister(Service)
ServicePluginKind = _arc.ServicePluginKind
class ServicePluginArgument(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ServicePluginArgument, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ServicePluginArgument, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ServicePluginArgument::ServicePluginArgument(Config *config,
ChainContext *context)
"""
this = _arc.new_ServicePluginArgument(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ServicePluginArgument
__del__ = lambda self : None;
ServicePluginArgument_swigregister = _arc.ServicePluginArgument_swigregister
ServicePluginArgument_swigregister(ServicePluginArgument)
class ExecutionTargetList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ExecutionTargetList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ExecutionTargetList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.ExecutionTargetList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.ExecutionTargetList___nonzero__(self)
def __bool__(self): return _arc.ExecutionTargetList___bool__(self)
def __len__(self): return _arc.ExecutionTargetList___len__(self)
def pop(self): return _arc.ExecutionTargetList_pop(self)
def __getslice__(self, *args): return _arc.ExecutionTargetList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.ExecutionTargetList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.ExecutionTargetList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.ExecutionTargetList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.ExecutionTargetList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.ExecutionTargetList___setitem__(self, *args)
def append(self, *args): return _arc.ExecutionTargetList_append(self, *args)
def empty(self): return _arc.ExecutionTargetList_empty(self)
def size(self): return _arc.ExecutionTargetList_size(self)
def clear(self): return _arc.ExecutionTargetList_clear(self)
def swap(self, *args): return _arc.ExecutionTargetList_swap(self, *args)
def get_allocator(self): return _arc.ExecutionTargetList_get_allocator(self)
def begin(self): return _arc.ExecutionTargetList_begin(self)
def end(self): return _arc.ExecutionTargetList_end(self)
def rbegin(self): return _arc.ExecutionTargetList_rbegin(self)
def rend(self): return _arc.ExecutionTargetList_rend(self)
def pop_back(self): return _arc.ExecutionTargetList_pop_back(self)
def erase(self, *args): return _arc.ExecutionTargetList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_ExecutionTargetList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.ExecutionTargetList_push_back(self, *args)
def front(self): return _arc.ExecutionTargetList_front(self)
def back(self): return _arc.ExecutionTargetList_back(self)
def assign(self, *args): return _arc.ExecutionTargetList_assign(self, *args)
def resize(self, *args): return _arc.ExecutionTargetList_resize(self, *args)
def insert(self, *args): return _arc.ExecutionTargetList_insert(self, *args)
def pop_front(self): return _arc.ExecutionTargetList_pop_front(self)
def push_front(self, *args): return _arc.ExecutionTargetList_push_front(self, *args)
def reverse(self): return _arc.ExecutionTargetList_reverse(self)
__swig_destroy__ = _arc.delete_ExecutionTargetList
__del__ = lambda self : None;
ExecutionTargetList_swigregister = _arc.ExecutionTargetList_swigregister
ExecutionTargetList_swigregister(ExecutionTargetList)
class JobControllerList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobControllerList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobControllerList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.JobControllerList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.JobControllerList___nonzero__(self)
def __bool__(self): return _arc.JobControllerList___bool__(self)
def __len__(self): return _arc.JobControllerList___len__(self)
def pop(self): return _arc.JobControllerList_pop(self)
def __getslice__(self, *args): return _arc.JobControllerList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.JobControllerList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.JobControllerList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.JobControllerList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.JobControllerList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.JobControllerList___setitem__(self, *args)
def append(self, *args): return _arc.JobControllerList_append(self, *args)
def empty(self): return _arc.JobControllerList_empty(self)
def size(self): return _arc.JobControllerList_size(self)
def clear(self): return _arc.JobControllerList_clear(self)
def swap(self, *args): return _arc.JobControllerList_swap(self, *args)
def get_allocator(self): return _arc.JobControllerList_get_allocator(self)
def begin(self): return _arc.JobControllerList_begin(self)
def end(self): return _arc.JobControllerList_end(self)
def rbegin(self): return _arc.JobControllerList_rbegin(self)
def rend(self): return _arc.JobControllerList_rend(self)
def pop_back(self): return _arc.JobControllerList_pop_back(self)
def erase(self, *args): return _arc.JobControllerList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_JobControllerList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.JobControllerList_push_back(self, *args)
def front(self): return _arc.JobControllerList_front(self)
def back(self): return _arc.JobControllerList_back(self)
def assign(self, *args): return _arc.JobControllerList_assign(self, *args)
def resize(self, *args): return _arc.JobControllerList_resize(self, *args)
def insert(self, *args): return _arc.JobControllerList_insert(self, *args)
def pop_front(self): return _arc.JobControllerList_pop_front(self)
def push_front(self, *args): return _arc.JobControllerList_push_front(self, *args)
def remove(self, *args): return _arc.JobControllerList_remove(self, *args)
def unique(self): return _arc.JobControllerList_unique(self)
def reverse(self): return _arc.JobControllerList_reverse(self)
def sort(self): return _arc.JobControllerList_sort(self)
def merge(self, *args): return _arc.JobControllerList_merge(self, *args)
__swig_destroy__ = _arc.delete_JobControllerList
__del__ = lambda self : None;
JobControllerList_swigregister = _arc.JobControllerList_swigregister
JobControllerList_swigregister(JobControllerList)
class JobList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.JobList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.JobList___nonzero__(self)
def __bool__(self): return _arc.JobList___bool__(self)
def __len__(self): return _arc.JobList___len__(self)
def pop(self): return _arc.JobList_pop(self)
def __getslice__(self, *args): return _arc.JobList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.JobList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.JobList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.JobList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.JobList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.JobList___setitem__(self, *args)
def append(self, *args): return _arc.JobList_append(self, *args)
def empty(self): return _arc.JobList_empty(self)
def size(self): return _arc.JobList_size(self)
def clear(self): return _arc.JobList_clear(self)
def swap(self, *args): return _arc.JobList_swap(self, *args)
def get_allocator(self): return _arc.JobList_get_allocator(self)
def begin(self): return _arc.JobList_begin(self)
def end(self): return _arc.JobList_end(self)
def rbegin(self): return _arc.JobList_rbegin(self)
def rend(self): return _arc.JobList_rend(self)
def pop_back(self): return _arc.JobList_pop_back(self)
def erase(self, *args): return _arc.JobList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_JobList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.JobList_push_back(self, *args)
def front(self): return _arc.JobList_front(self)
def back(self): return _arc.JobList_back(self)
def assign(self, *args): return _arc.JobList_assign(self, *args)
def resize(self, *args): return _arc.JobList_resize(self, *args)
def insert(self, *args): return _arc.JobList_insert(self, *args)
def pop_front(self): return _arc.JobList_pop_front(self)
def push_front(self, *args): return _arc.JobList_push_front(self, *args)
def reverse(self): return _arc.JobList_reverse(self)
__swig_destroy__ = _arc.delete_JobList
__del__ = lambda self : None;
JobList_swigregister = _arc.JobList_swigregister
JobList_swigregister(JobList)
class JobDescriptionList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobDescriptionList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobDescriptionList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.JobDescriptionList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.JobDescriptionList___nonzero__(self)
def __bool__(self): return _arc.JobDescriptionList___bool__(self)
def __len__(self): return _arc.JobDescriptionList___len__(self)
def pop(self): return _arc.JobDescriptionList_pop(self)
def __getslice__(self, *args): return _arc.JobDescriptionList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.JobDescriptionList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.JobDescriptionList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.JobDescriptionList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.JobDescriptionList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.JobDescriptionList___setitem__(self, *args)
def append(self, *args): return _arc.JobDescriptionList_append(self, *args)
def empty(self): return _arc.JobDescriptionList_empty(self)
def size(self): return _arc.JobDescriptionList_size(self)
def clear(self): return _arc.JobDescriptionList_clear(self)
def swap(self, *args): return _arc.JobDescriptionList_swap(self, *args)
def get_allocator(self): return _arc.JobDescriptionList_get_allocator(self)
def begin(self): return _arc.JobDescriptionList_begin(self)
def end(self): return _arc.JobDescriptionList_end(self)
def rbegin(self): return _arc.JobDescriptionList_rbegin(self)
def rend(self): return _arc.JobDescriptionList_rend(self)
def pop_back(self): return _arc.JobDescriptionList_pop_back(self)
def erase(self, *args): return _arc.JobDescriptionList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_JobDescriptionList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.JobDescriptionList_push_back(self, *args)
def front(self): return _arc.JobDescriptionList_front(self)
def back(self): return _arc.JobDescriptionList_back(self)
def assign(self, *args): return _arc.JobDescriptionList_assign(self, *args)
def resize(self, *args): return _arc.JobDescriptionList_resize(self, *args)
def insert(self, *args): return _arc.JobDescriptionList_insert(self, *args)
def pop_front(self): return _arc.JobDescriptionList_pop_front(self)
def push_front(self, *args): return _arc.JobDescriptionList_push_front(self, *args)
def reverse(self): return _arc.JobDescriptionList_reverse(self)
__swig_destroy__ = _arc.delete_JobDescriptionList
__del__ = lambda self : None;
JobDescriptionList_swigregister = _arc.JobDescriptionList_swigregister
JobDescriptionList_swigregister(JobDescriptionList)
class JobStateList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobStateList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobStateList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.JobStateList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.JobStateList___nonzero__(self)
def __bool__(self): return _arc.JobStateList___bool__(self)
def __len__(self): return _arc.JobStateList___len__(self)
def pop(self): return _arc.JobStateList_pop(self)
def __getslice__(self, *args): return _arc.JobStateList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.JobStateList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.JobStateList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.JobStateList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.JobStateList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.JobStateList___setitem__(self, *args)
def append(self, *args): return _arc.JobStateList_append(self, *args)
def empty(self): return _arc.JobStateList_empty(self)
def size(self): return _arc.JobStateList_size(self)
def clear(self): return _arc.JobStateList_clear(self)
def swap(self, *args): return _arc.JobStateList_swap(self, *args)
def get_allocator(self): return _arc.JobStateList_get_allocator(self)
def begin(self): return _arc.JobStateList_begin(self)
def end(self): return _arc.JobStateList_end(self)
def rbegin(self): return _arc.JobStateList_rbegin(self)
def rend(self): return _arc.JobStateList_rend(self)
def pop_back(self): return _arc.JobStateList_pop_back(self)
def erase(self, *args): return _arc.JobStateList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_JobStateList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.JobStateList_push_back(self, *args)
def front(self): return _arc.JobStateList_front(self)
def back(self): return _arc.JobStateList_back(self)
def assign(self, *args): return _arc.JobStateList_assign(self, *args)
def resize(self, *args): return _arc.JobStateList_resize(self, *args)
def insert(self, *args): return _arc.JobStateList_insert(self, *args)
def pop_front(self): return _arc.JobStateList_pop_front(self)
def push_front(self, *args): return _arc.JobStateList_push_front(self, *args)
def reverse(self): return _arc.JobStateList_reverse(self)
__swig_destroy__ = _arc.delete_JobStateList
__del__ = lambda self : None;
JobStateList_swigregister = _arc.JobStateList_swigregister
JobStateList_swigregister(JobStateList)
class FileTypeList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, FileTypeList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, FileTypeList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.FileTypeList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.FileTypeList___nonzero__(self)
def __bool__(self): return _arc.FileTypeList___bool__(self)
def __len__(self): return _arc.FileTypeList___len__(self)
def pop(self): return _arc.FileTypeList_pop(self)
def __getslice__(self, *args): return _arc.FileTypeList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.FileTypeList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.FileTypeList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.FileTypeList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.FileTypeList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.FileTypeList___setitem__(self, *args)
def append(self, *args): return _arc.FileTypeList_append(self, *args)
def empty(self): return _arc.FileTypeList_empty(self)
def size(self): return _arc.FileTypeList_size(self)
def clear(self): return _arc.FileTypeList_clear(self)
def swap(self, *args): return _arc.FileTypeList_swap(self, *args)
def get_allocator(self): return _arc.FileTypeList_get_allocator(self)
def begin(self): return _arc.FileTypeList_begin(self)
def end(self): return _arc.FileTypeList_end(self)
def rbegin(self): return _arc.FileTypeList_rbegin(self)
def rend(self): return _arc.FileTypeList_rend(self)
def pop_back(self): return _arc.FileTypeList_pop_back(self)
def erase(self, *args): return _arc.FileTypeList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_FileTypeList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.FileTypeList_push_back(self, *args)
def front(self): return _arc.FileTypeList_front(self)
def back(self): return _arc.FileTypeList_back(self)
def assign(self, *args): return _arc.FileTypeList_assign(self, *args)
def resize(self, *args): return _arc.FileTypeList_resize(self, *args)
def insert(self, *args): return _arc.FileTypeList_insert(self, *args)
def pop_front(self): return _arc.FileTypeList_pop_front(self)
def push_front(self, *args): return _arc.FileTypeList_push_front(self, *args)
def reverse(self): return _arc.FileTypeList_reverse(self)
__swig_destroy__ = _arc.delete_FileTypeList
__del__ = lambda self : None;
FileTypeList_swigregister = _arc.FileTypeList_swigregister
FileTypeList_swigregister(FileTypeList)
class ApplicationEnvironmentList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ApplicationEnvironmentList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ApplicationEnvironmentList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.ApplicationEnvironmentList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.ApplicationEnvironmentList___nonzero__(self)
def __bool__(self): return _arc.ApplicationEnvironmentList___bool__(self)
def __len__(self): return _arc.ApplicationEnvironmentList___len__(self)
def pop(self): return _arc.ApplicationEnvironmentList_pop(self)
def __getslice__(self, *args): return _arc.ApplicationEnvironmentList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.ApplicationEnvironmentList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.ApplicationEnvironmentList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.ApplicationEnvironmentList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.ApplicationEnvironmentList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.ApplicationEnvironmentList___setitem__(self, *args)
def append(self, *args): return _arc.ApplicationEnvironmentList_append(self, *args)
def empty(self): return _arc.ApplicationEnvironmentList_empty(self)
def size(self): return _arc.ApplicationEnvironmentList_size(self)
def clear(self): return _arc.ApplicationEnvironmentList_clear(self)
def swap(self, *args): return _arc.ApplicationEnvironmentList_swap(self, *args)
def get_allocator(self): return _arc.ApplicationEnvironmentList_get_allocator(self)
def begin(self): return _arc.ApplicationEnvironmentList_begin(self)
def end(self): return _arc.ApplicationEnvironmentList_end(self)
def rbegin(self): return _arc.ApplicationEnvironmentList_rbegin(self)
def rend(self): return _arc.ApplicationEnvironmentList_rend(self)
def pop_back(self): return _arc.ApplicationEnvironmentList_pop_back(self)
def erase(self, *args): return _arc.ApplicationEnvironmentList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_ApplicationEnvironmentList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.ApplicationEnvironmentList_push_back(self, *args)
def front(self): return _arc.ApplicationEnvironmentList_front(self)
def back(self): return _arc.ApplicationEnvironmentList_back(self)
def assign(self, *args): return _arc.ApplicationEnvironmentList_assign(self, *args)
def resize(self, *args): return _arc.ApplicationEnvironmentList_resize(self, *args)
def insert(self, *args): return _arc.ApplicationEnvironmentList_insert(self, *args)
def pop_front(self): return _arc.ApplicationEnvironmentList_pop_front(self)
def push_front(self, *args): return _arc.ApplicationEnvironmentList_push_front(self, *args)
def reverse(self): return _arc.ApplicationEnvironmentList_reverse(self)
__swig_destroy__ = _arc.delete_ApplicationEnvironmentList
__del__ = lambda self : None;
ApplicationEnvironmentList_swigregister = _arc.ApplicationEnvironmentList_swigregister
ApplicationEnvironmentList_swigregister(ApplicationEnvironmentList)
class SoftwareList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoftwareList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoftwareList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.SoftwareList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.SoftwareList___nonzero__(self)
def __bool__(self): return _arc.SoftwareList___bool__(self)
def __len__(self): return _arc.SoftwareList___len__(self)
def pop(self): return _arc.SoftwareList_pop(self)
def __getslice__(self, *args): return _arc.SoftwareList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.SoftwareList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.SoftwareList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.SoftwareList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.SoftwareList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.SoftwareList___setitem__(self, *args)
def append(self, *args): return _arc.SoftwareList_append(self, *args)
def empty(self): return _arc.SoftwareList_empty(self)
def size(self): return _arc.SoftwareList_size(self)
def clear(self): return _arc.SoftwareList_clear(self)
def swap(self, *args): return _arc.SoftwareList_swap(self, *args)
def get_allocator(self): return _arc.SoftwareList_get_allocator(self)
def begin(self): return _arc.SoftwareList_begin(self)
def end(self): return _arc.SoftwareList_end(self)
def rbegin(self): return _arc.SoftwareList_rbegin(self)
def rend(self): return _arc.SoftwareList_rend(self)
def pop_back(self): return _arc.SoftwareList_pop_back(self)
def erase(self, *args): return _arc.SoftwareList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_SoftwareList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.SoftwareList_push_back(self, *args)
def front(self): return _arc.SoftwareList_front(self)
def back(self): return _arc.SoftwareList_back(self)
def assign(self, *args): return _arc.SoftwareList_assign(self, *args)
def resize(self, *args): return _arc.SoftwareList_resize(self, *args)
def insert(self, *args): return _arc.SoftwareList_insert(self, *args)
def pop_front(self): return _arc.SoftwareList_pop_front(self)
def push_front(self, *args): return _arc.SoftwareList_push_front(self, *args)
def reverse(self): return _arc.SoftwareList_reverse(self)
__swig_destroy__ = _arc.delete_SoftwareList
__del__ = lambda self : None;
SoftwareList_swigregister = _arc.SoftwareList_swigregister
SoftwareList_swigregister(SoftwareList)
class SoftwareRequirementList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoftwareRequirementList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoftwareRequirementList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.SoftwareRequirementList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.SoftwareRequirementList___nonzero__(self)
def __bool__(self): return _arc.SoftwareRequirementList___bool__(self)
def __len__(self): return _arc.SoftwareRequirementList___len__(self)
def pop(self): return _arc.SoftwareRequirementList_pop(self)
def __getslice__(self, *args): return _arc.SoftwareRequirementList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.SoftwareRequirementList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.SoftwareRequirementList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.SoftwareRequirementList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.SoftwareRequirementList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.SoftwareRequirementList___setitem__(self, *args)
def append(self, *args): return _arc.SoftwareRequirementList_append(self, *args)
def empty(self): return _arc.SoftwareRequirementList_empty(self)
def size(self): return _arc.SoftwareRequirementList_size(self)
def clear(self): return _arc.SoftwareRequirementList_clear(self)
def swap(self, *args): return _arc.SoftwareRequirementList_swap(self, *args)
def get_allocator(self): return _arc.SoftwareRequirementList_get_allocator(self)
def begin(self): return _arc.SoftwareRequirementList_begin(self)
def end(self): return _arc.SoftwareRequirementList_end(self)
def rbegin(self): return _arc.SoftwareRequirementList_rbegin(self)
def rend(self): return _arc.SoftwareRequirementList_rend(self)
def pop_back(self): return _arc.SoftwareRequirementList_pop_back(self)
def erase(self, *args): return _arc.SoftwareRequirementList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_SoftwareRequirementList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.SoftwareRequirementList_push_back(self, *args)
def front(self): return _arc.SoftwareRequirementList_front(self)
def back(self): return _arc.SoftwareRequirementList_back(self)
def assign(self, *args): return _arc.SoftwareRequirementList_assign(self, *args)
def resize(self, *args): return _arc.SoftwareRequirementList_resize(self, *args)
def insert(self, *args): return _arc.SoftwareRequirementList_insert(self, *args)
def pop_front(self): return _arc.SoftwareRequirementList_pop_front(self)
def push_front(self, *args): return _arc.SoftwareRequirementList_push_front(self, *args)
def reverse(self): return _arc.SoftwareRequirementList_reverse(self)
__swig_destroy__ = _arc.delete_SoftwareRequirementList
__del__ = lambda self : None;
SoftwareRequirementList_swigregister = _arc.SoftwareRequirementList_swigregister
SoftwareRequirementList_swigregister(SoftwareRequirementList)
class TargetRetrieverList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, TargetRetrieverList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, TargetRetrieverList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.TargetRetrieverList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.TargetRetrieverList___nonzero__(self)
def __bool__(self): return _arc.TargetRetrieverList___bool__(self)
def __len__(self): return _arc.TargetRetrieverList___len__(self)
def pop(self): return _arc.TargetRetrieverList_pop(self)
def __getslice__(self, *args): return _arc.TargetRetrieverList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.TargetRetrieverList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.TargetRetrieverList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.TargetRetrieverList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.TargetRetrieverList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.TargetRetrieverList___setitem__(self, *args)
def append(self, *args): return _arc.TargetRetrieverList_append(self, *args)
def empty(self): return _arc.TargetRetrieverList_empty(self)
def size(self): return _arc.TargetRetrieverList_size(self)
def clear(self): return _arc.TargetRetrieverList_clear(self)
def swap(self, *args): return _arc.TargetRetrieverList_swap(self, *args)
def get_allocator(self): return _arc.TargetRetrieverList_get_allocator(self)
def begin(self): return _arc.TargetRetrieverList_begin(self)
def end(self): return _arc.TargetRetrieverList_end(self)
def rbegin(self): return _arc.TargetRetrieverList_rbegin(self)
def rend(self): return _arc.TargetRetrieverList_rend(self)
def pop_back(self): return _arc.TargetRetrieverList_pop_back(self)
def erase(self, *args): return _arc.TargetRetrieverList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_TargetRetrieverList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.TargetRetrieverList_push_back(self, *args)
def front(self): return _arc.TargetRetrieverList_front(self)
def back(self): return _arc.TargetRetrieverList_back(self)
def assign(self, *args): return _arc.TargetRetrieverList_assign(self, *args)
def resize(self, *args): return _arc.TargetRetrieverList_resize(self, *args)
def insert(self, *args): return _arc.TargetRetrieverList_insert(self, *args)
def pop_front(self): return _arc.TargetRetrieverList_pop_front(self)
def push_front(self, *args): return _arc.TargetRetrieverList_push_front(self, *args)
def remove(self, *args): return _arc.TargetRetrieverList_remove(self, *args)
def unique(self): return _arc.TargetRetrieverList_unique(self)
def reverse(self): return _arc.TargetRetrieverList_reverse(self)
def sort(self): return _arc.TargetRetrieverList_sort(self)
def merge(self, *args): return _arc.TargetRetrieverList_merge(self, *args)
__swig_destroy__ = _arc.delete_TargetRetrieverList
__del__ = lambda self : None;
TargetRetrieverList_swigregister = _arc.TargetRetrieverList_swigregister
TargetRetrieverList_swigregister(TargetRetrieverList)
class BrokerList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, BrokerList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, BrokerList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.BrokerList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.BrokerList___nonzero__(self)
def __bool__(self): return _arc.BrokerList___bool__(self)
def __len__(self): return _arc.BrokerList___len__(self)
def pop(self): return _arc.BrokerList_pop(self)
def __getslice__(self, *args): return _arc.BrokerList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.BrokerList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.BrokerList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.BrokerList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.BrokerList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.BrokerList___setitem__(self, *args)
def append(self, *args): return _arc.BrokerList_append(self, *args)
def empty(self): return _arc.BrokerList_empty(self)
def size(self): return _arc.BrokerList_size(self)
def clear(self): return _arc.BrokerList_clear(self)
def swap(self, *args): return _arc.BrokerList_swap(self, *args)
def get_allocator(self): return _arc.BrokerList_get_allocator(self)
def begin(self): return _arc.BrokerList_begin(self)
def end(self): return _arc.BrokerList_end(self)
def rbegin(self): return _arc.BrokerList_rbegin(self)
def rend(self): return _arc.BrokerList_rend(self)
def pop_back(self): return _arc.BrokerList_pop_back(self)
def erase(self, *args): return _arc.BrokerList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_BrokerList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.BrokerList_push_back(self, *args)
def front(self): return _arc.BrokerList_front(self)
def back(self): return _arc.BrokerList_back(self)
def assign(self, *args): return _arc.BrokerList_assign(self, *args)
def resize(self, *args): return _arc.BrokerList_resize(self, *args)
def insert(self, *args): return _arc.BrokerList_insert(self, *args)
def pop_front(self): return _arc.BrokerList_pop_front(self)
def push_front(self, *args): return _arc.BrokerList_push_front(self, *args)
def remove(self, *args): return _arc.BrokerList_remove(self, *args)
def unique(self): return _arc.BrokerList_unique(self)
def reverse(self): return _arc.BrokerList_reverse(self)
def sort(self): return _arc.BrokerList_sort(self)
def merge(self, *args): return _arc.BrokerList_merge(self, *args)
__swig_destroy__ = _arc.delete_BrokerList
__del__ = lambda self : None;
BrokerList_swigregister = _arc.BrokerList_swigregister
BrokerList_swigregister(BrokerList)
class SubmitterList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SubmitterList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SubmitterList, name)
__repr__ = _swig_repr
def iterator(self): return _arc.SubmitterList_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.SubmitterList___nonzero__(self)
def __bool__(self): return _arc.SubmitterList___bool__(self)
def __len__(self): return _arc.SubmitterList___len__(self)
def pop(self): return _arc.SubmitterList_pop(self)
def __getslice__(self, *args): return _arc.SubmitterList___getslice__(self, *args)
def __setslice__(self, *args): return _arc.SubmitterList___setslice__(self, *args)
def __delslice__(self, *args): return _arc.SubmitterList___delslice__(self, *args)
def __delitem__(self, *args): return _arc.SubmitterList___delitem__(self, *args)
def __getitem__(self, *args): return _arc.SubmitterList___getitem__(self, *args)
def __setitem__(self, *args): return _arc.SubmitterList___setitem__(self, *args)
def append(self, *args): return _arc.SubmitterList_append(self, *args)
def empty(self): return _arc.SubmitterList_empty(self)
def size(self): return _arc.SubmitterList_size(self)
def clear(self): return _arc.SubmitterList_clear(self)
def swap(self, *args): return _arc.SubmitterList_swap(self, *args)
def get_allocator(self): return _arc.SubmitterList_get_allocator(self)
def begin(self): return _arc.SubmitterList_begin(self)
def end(self): return _arc.SubmitterList_end(self)
def rbegin(self): return _arc.SubmitterList_rbegin(self)
def rend(self): return _arc.SubmitterList_rend(self)
def pop_back(self): return _arc.SubmitterList_pop_back(self)
def erase(self, *args): return _arc.SubmitterList_erase(self, *args)
def __init__(self, *args):
this = _arc.new_SubmitterList(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.SubmitterList_push_back(self, *args)
def front(self): return _arc.SubmitterList_front(self)
def back(self): return _arc.SubmitterList_back(self)
def assign(self, *args): return _arc.SubmitterList_assign(self, *args)
def resize(self, *args): return _arc.SubmitterList_resize(self, *args)
def insert(self, *args): return _arc.SubmitterList_insert(self, *args)
def pop_front(self): return _arc.SubmitterList_pop_front(self)
def push_front(self, *args): return _arc.SubmitterList_push_front(self, *args)
def remove(self, *args): return _arc.SubmitterList_remove(self, *args)
def unique(self): return _arc.SubmitterList_unique(self)
def reverse(self): return _arc.SubmitterList_reverse(self)
def sort(self): return _arc.SubmitterList_sort(self)
def merge(self, *args): return _arc.SubmitterList_merge(self, *args)
__swig_destroy__ = _arc.delete_SubmitterList
__del__ = lambda self : None;
SubmitterList_swigregister = _arc.SubmitterList_swigregister
SubmitterList_swigregister(SubmitterList)
class ClientInterface(_object):
"""
Utility base class for MCC.
The ClientInterface class is a utility base class used for configuring
a client side Message Chain Component ( MCC) chain and loading it into
memory. It has several specializations of increasing complexity of the
MCC chains.
C++ includes: ClientInterface.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ClientInterface, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ClientInterface, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""Arc::ClientInterface::ClientInterface(const BaseConfig &cfg) """
this = _arc.new_ClientInterface(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ClientInterface
__del__ = lambda self : None;
def Overlay(self, *args):
"""
void
Arc::ClientInterface::Overlay(XMLNode cfg)
"""
return _arc.ClientInterface_Overlay(self, *args)
def GetConfig(self):
"""
const Config&
Arc::ClientInterface::GetConfig() const
"""
return _arc.ClientInterface_GetConfig(self)
def GetContext(self):
"""MessageContext& Arc::ClientInterface::GetContext() """
return _arc.ClientInterface_GetContext(self)
def Load(self):
"""
virtual bool
Arc::ClientInterface::Load()
"""
return _arc.ClientInterface_Load(self)
ClientInterface_swigregister = _arc.ClientInterface_swigregister
ClientInterface_swigregister(ClientInterface)
NoSec = _arc.NoSec
TLSSec = _arc.TLSSec
GSISec = _arc.GSISec
SSL3Sec = _arc.SSL3Sec
GSIIOSec = _arc.GSIIOSec
class ClientTCP(ClientInterface):
"""
Class for setting up a MCC chain for TCP communication.
The ClientTCP class is a specialization of the ClientInterface which
sets up a client MCC chain for TCP communication, and optionally with
a security layer on top which can be either TLS, GSI or SSL3.
C++ includes: ClientInterface.h
"""
__swig_setmethods__ = {}
for _s in [ClientInterface]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ClientTCP, name, value)
__swig_getmethods__ = {}
for _s in [ClientInterface]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, ClientTCP, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ClientTCP::ClientTCP(const BaseConfig &cfg, const std::string
&host, int port, SecurityLayer sec, int timeout=-1, bool
no_delay=false)
"""
this = _arc.new_ClientTCP(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ClientTCP
__del__ = lambda self : None;
def process(self, *args):
"""
MCC_Status
Arc::ClientTCP::process(PayloadRawInterface *request,
PayloadStreamInterface **response, bool tls)
"""
return _arc.ClientTCP_process(self, *args)
def GetEntry(self):
"""
MCC*
Arc::ClientTCP::GetEntry()
"""
return _arc.ClientTCP_GetEntry(self)
def Load(self):
"""
virtual bool
Arc::ClientTCP::Load()
"""
return _arc.ClientTCP_Load(self)
def AddSecHandler(self, *args):
"""
void
Arc::ClientTCP::AddSecHandler(XMLNode handlercfg, SecurityLayer sec,
const std::string &libanme="", const std::string &libpath="")
"""
return _arc.ClientTCP_AddSecHandler(self, *args)
ClientTCP_swigregister = _arc.ClientTCP_swigregister
ClientTCP_swigregister(ClientTCP)
class HTTPClientInfo(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, HTTPClientInfo, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, HTTPClientInfo, name)
__repr__ = _swig_repr
__swig_setmethods__["code"] = _arc.HTTPClientInfo_code_set
__swig_getmethods__["code"] = _arc.HTTPClientInfo_code_get
if _newclass:code = _swig_property(_arc.HTTPClientInfo_code_get, _arc.HTTPClientInfo_code_set)
__swig_setmethods__["reason"] = _arc.HTTPClientInfo_reason_set
__swig_getmethods__["reason"] = _arc.HTTPClientInfo_reason_get
if _newclass:reason = _swig_property(_arc.HTTPClientInfo_reason_get, _arc.HTTPClientInfo_reason_set)
__swig_setmethods__["size"] = _arc.HTTPClientInfo_size_set
__swig_getmethods__["size"] = _arc.HTTPClientInfo_size_get
if _newclass:size = _swig_property(_arc.HTTPClientInfo_size_get, _arc.HTTPClientInfo_size_set)
__swig_setmethods__["lastModified"] = _arc.HTTPClientInfo_lastModified_set
__swig_getmethods__["lastModified"] = _arc.HTTPClientInfo_lastModified_get
if _newclass:lastModified = _swig_property(_arc.HTTPClientInfo_lastModified_get, _arc.HTTPClientInfo_lastModified_set)
__swig_setmethods__["type"] = _arc.HTTPClientInfo_type_set
__swig_getmethods__["type"] = _arc.HTTPClientInfo_type_get
if _newclass:type = _swig_property(_arc.HTTPClientInfo_type_get, _arc.HTTPClientInfo_type_set)
__swig_setmethods__["cookies"] = _arc.HTTPClientInfo_cookies_set
__swig_getmethods__["cookies"] = _arc.HTTPClientInfo_cookies_get
if _newclass:cookies = _swig_property(_arc.HTTPClientInfo_cookies_get, _arc.HTTPClientInfo_cookies_set)
__swig_setmethods__["location"] = _arc.HTTPClientInfo_location_set
__swig_getmethods__["location"] = _arc.HTTPClientInfo_location_get
if _newclass:location = _swig_property(_arc.HTTPClientInfo_location_get, _arc.HTTPClientInfo_location_set)
def __init__(self):
this = _arc.new_HTTPClientInfo()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_HTTPClientInfo
__del__ = lambda self : None;
HTTPClientInfo_swigregister = _arc.HTTPClientInfo_swigregister
HTTPClientInfo_swigregister(HTTPClientInfo)
class ClientHTTP(ClientTCP):
"""
Class for setting up a MCC chain for HTTP communication.
The ClientHTTP class inherits from the ClientTCP class and adds an
HTTP MCC to the chain.
C++ includes: ClientInterface.h
"""
__swig_setmethods__ = {}
for _s in [ClientTCP]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ClientHTTP, name, value)
__swig_getmethods__ = {}
for _s in [ClientTCP]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, ClientHTTP, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ClientHTTP::ClientHTTP(const BaseConfig &cfg, const URL &url, int
timeout=-1, const std::string &proxy_host="", int proxy_port=0)
"""
this = _arc.new_ClientHTTP(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ClientHTTP
__del__ = lambda self : None;
def process(self, *args):
"""
MCC_Status
Arc::ClientHTTP::process(const std::string &method, const std::string
&path, std::multimap< std::string, std::string > &attributes, uint64_t
range_start, uint64_t range_end, PayloadRawInterface *request,
HTTPClientInfo *info, PayloadRawInterface **response)
"""
return _arc.ClientHTTP_process(self, *args)
def GetEntry(self):
"""
MCC*
Arc::ClientHTTP::GetEntry()
"""
return _arc.ClientHTTP_GetEntry(self)
def AddSecHandler(self, *args):
"""
void
Arc::ClientHTTP::AddSecHandler(XMLNode handlercfg, const std::string
&libanme="", const std::string &libpath="")
"""
return _arc.ClientHTTP_AddSecHandler(self, *args)
def Load(self):
"""
virtual bool
Arc::ClientHTTP::Load()
"""
return _arc.ClientHTTP_Load(self)
def RelativeURI(self, *args):
"""
void
Arc::ClientHTTP::RelativeURI(bool val)
"""
return _arc.ClientHTTP_RelativeURI(self, *args)
ClientHTTP_swigregister = _arc.ClientHTTP_swigregister
ClientHTTP_swigregister(ClientHTTP)
class ClientSOAP(ClientHTTP):
"""
Class with easy interface for sending/receiving SOAP messages over
HTTP(S/G). It takes care of configuring MCC chain and making an entry
point.
C++ includes: ClientInterface.h
"""
__swig_setmethods__ = {}
for _s in [ClientHTTP]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ClientSOAP, name, value)
__swig_getmethods__ = {}
for _s in [ClientHTTP]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, ClientSOAP, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ClientSOAP::ClientSOAP(const BaseConfig &cfg, const URL &url, int
timeout=-1)
"""
this = _arc.new_ClientSOAP(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ClientSOAP
__del__ = lambda self : None;
def process(self, *args):
"""
MCC_Status
Arc::ClientSOAP::process(const std::string &action, PayloadSOAP
*request, PayloadSOAP **response)
Send SOAP request with specified SOAP action and receive response.
"""
return _arc.ClientSOAP_process(self, *args)
def GetEntry(self):
"""
MCC*
Arc::ClientSOAP::GetEntry()
Returns entry point to SOAP MCC in configured chain. To initialize
entry point Load() method must be called.
"""
return _arc.ClientSOAP_GetEntry(self)
def AddSecHandler(self, *args):
"""
void
Arc::ClientSOAP::AddSecHandler(XMLNode handlercfg, const std::string
&libanme="", const std::string &libpath="")
Adds security handler to configuration of SOAP MCC
"""
return _arc.ClientSOAP_AddSecHandler(self, *args)
def Load(self):
"""
virtual bool
Arc::ClientSOAP::Load()
Instantiates pluggable elements according to generated configuration
"""
return _arc.ClientSOAP_Load(self)
ClientSOAP_swigregister = _arc.ClientSOAP_swigregister
ClientSOAP_swigregister(ClientSOAP)
class SecHandlerConfig(XMLNode):
__swig_setmethods__ = {}
for _s in [XMLNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SecHandlerConfig, name, value)
__swig_getmethods__ = {}
for _s in [XMLNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, SecHandlerConfig, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::SecHandlerConfig::SecHandlerConfig(const std::string &name, const
std::string &event="incoming")
"""
this = _arc.new_SecHandlerConfig(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SecHandlerConfig
__del__ = lambda self : None;
SecHandlerConfig_swigregister = _arc.SecHandlerConfig_swigregister
SecHandlerConfig_swigregister(SecHandlerConfig)
class DNListHandlerConfig(SecHandlerConfig):
__swig_setmethods__ = {}
for _s in [SecHandlerConfig]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, DNListHandlerConfig, name, value)
__swig_getmethods__ = {}
for _s in [SecHandlerConfig]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, DNListHandlerConfig, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::DNListHandlerConfig::DNListHandlerConfig(const std::list<
std::string > &dns, const std::string &event="incoming")
"""
this = _arc.new_DNListHandlerConfig(*args)
try: self.this.append(this)
except: self.this = this
def AddDN(self, *args):
"""
void
Arc::DNListHandlerConfig::AddDN(const std::string &dn)
"""
return _arc.DNListHandlerConfig_AddDN(self, *args)
__swig_destroy__ = _arc.delete_DNListHandlerConfig
__del__ = lambda self : None;
DNListHandlerConfig_swigregister = _arc.DNListHandlerConfig_swigregister
DNListHandlerConfig_swigregister(DNListHandlerConfig)
class ARCPolicyHandlerConfig(SecHandlerConfig):
__swig_setmethods__ = {}
for _s in [SecHandlerConfig]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ARCPolicyHandlerConfig, name, value)
__swig_getmethods__ = {}
for _s in [SecHandlerConfig]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, ARCPolicyHandlerConfig, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ARCPolicyHandlerConfig::ARCPolicyHandlerConfig(XMLNode policy,
const std::string &event="incoming")
"""
this = _arc.new_ARCPolicyHandlerConfig(*args)
try: self.this.append(this)
except: self.this = this
def AddPolicy(self, *args):
"""
void
Arc::ARCPolicyHandlerConfig::AddPolicy(const std::string &policy)
"""
return _arc.ARCPolicyHandlerConfig_AddPolicy(self, *args)
__swig_destroy__ = _arc.delete_ARCPolicyHandlerConfig
__del__ = lambda self : None;
ARCPolicyHandlerConfig_swigregister = _arc.ARCPolicyHandlerConfig_swigregister
ARCPolicyHandlerConfig_swigregister(ARCPolicyHandlerConfig)
DELEG_ARC = _arc.DELEG_ARC
DELEG_GRIDSITE = _arc.DELEG_GRIDSITE
DELEG_GT4 = _arc.DELEG_GT4
DELEG_MYPROXY = _arc.DELEG_MYPROXY
DELEG_UNKNOWN = _arc.DELEG_UNKNOWN
class ClientX509Delegation(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ClientX509Delegation, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ClientX509Delegation, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ClientX509Delegation::ClientX509Delegation(const BaseConfig
&cfg, const URL &url)
"""
this = _arc.new_ClientX509Delegation(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ClientX509Delegation
__del__ = lambda self : None;
def createDelegation(self, *args):
"""
bool Arc::ClientX509Delegation::createDelegation(DelegationType deleg,
std::string &delegation_id)
Create the delegation credential according to the different remote
delegation service. This method should be called by holder of EEC(end
entity credential) which would delegate its EEC credential, or by
holder of delegated credential(normally, the holder is intermediate
service) which would further delegate the credential (on behalf of the
original EEC's holder) (for instance, the 'n' intermediate service
creates a delegation credential, then the 'n+1' intermediate service
aquires this delegation credential from the delegation service and
also acts on behalf of the EEC's holder by using this delegation
credential).
Parameters:
-----------
deleg: Delegation type
delegation_id: For gridsite delegation service, the delegation_id is
supposed to be created by client side, and sent to service side; for
ARC delegation service, the delegation_id is supposed to be created by
service side, and returned back. So for gridsite delegation service,
this parameter is treated as input, while for ARC delegation service,
it is treated as output.
"""
return _arc.ClientX509Delegation_createDelegation(self, *args)
def destroyDelegation(self, *args):
"""bool Arc::ClientX509Delegation::destroyDelegation(DelegationType) """
return _arc.ClientX509Delegation_destroyDelegation(self, *args)
def acquireDelegation(self, *args):
"""
bool Arc::ClientX509Delegation::acquireDelegation(DelegationType
deleg, std::string &delegation_cred, std::string &delegation_id, const
std::string cred_identity="", const std::string
cred_delegator_ip="", const std::string username="", const
std::string password="")
Acquire delegation credential from delegation service. This method
should be called by intermediate service ('n+1' service as explained
on above) in order to use this delegation credential on behalf of the
EEC's holder.
Parameters:
-----------
deleg: Delegation type
delegation_id: delegation ID which is used to look up the credential
by delegation service
cred_identity: the identity (in case of x509 credential, it is the DN
of EEC credential).
cred_delegator_ip: the IP address of the credential delegator. Regard
of delegation, an intermediate service should accomplish three tasks:
1. Acquire 'n' level delegation credential (which is delegated by
'n-1' level delegator) from delegation service; 1. Create 'n+1' level
delegation credential to delegation service; 2. Use 'n' level
delegation credential to act on behalf of the EEC's holder. In case of
absense of delegation_id, the 'n-1' level delegator's IP address and
credential's identity are supposed to be used for look up the
delegation credential from delegation service.
"""
return _arc.ClientX509Delegation_acquireDelegation(self, *args)
ClientX509Delegation_swigregister = _arc.ClientX509Delegation_swigregister
ClientX509Delegation_swigregister(ClientX509Delegation)
class Submitter(_object):
"""
Base class for the Submitters.
Submitter is the base class for Grid middleware specialized Submitter
objects. The class submits job(s) to the computing resource it
represents and uploads (needed by the job) local input files.
C++ includes: Submitter.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Submitter, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Submitter, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_Submitter
__del__ = lambda self : None;
def GetTestJob(self, *args):
"""
bool
Arc::Submitter::GetTestJob(const int &testid, JobDescription
&jobdescription)
This virtual method can be ovverriden by plugins which should be
capable of getting test job descriptions for the specified flavour.
This method should return with the JobDescription or NULL if ther is
no test description defined with the requested id.
"""
return _arc.Submitter_GetTestJob(self, *args)
def Submit(self, *args):
"""
bool
Arc::Submitter::Submit(const JobDescription &jobdesc, Job &job)
"""
return _arc.Submitter_Submit(self, *args)
def Migrate(self, *args):
"""
bool
Arc::Submitter::Migrate(const URL &jobid, const JobDescription
&jobdesc, bool forcemigration, Job &job)
"""
return _arc.Submitter_Migrate(self, *args)
def ModifyJobDescription(self, *args):
"""
virtual
bool Arc::Submitter::ModifyJobDescription(JobDescription &jobdesc,
const ExecutionTarget &et) const =0
"""
return _arc.Submitter_ModifyJobDescription(self, *args)
def SetSubmissionTarget(self, *args):
"""
void
Arc::Submitter::SetSubmissionTarget(const ExecutionTarget
&submissiontarget)
"""
return _arc.Submitter_SetSubmissionTarget(self, *args)
Submitter_swigregister = _arc.Submitter_swigregister
Submitter_swigregister(Submitter)
class SubmitterLoader(_object):
"""
Class responsible for loading Submitter plugins The Submitter objects
returned by a SubmitterLoader must not be used after the
SubmitterLoader goes out of scope.
C++ includes: Submitter.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SubmitterLoader, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SubmitterLoader, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::SubmitterLoader::SubmitterLoader()
Constructor Creates a new SubmitterLoader.
"""
this = _arc.new_SubmitterLoader()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SubmitterLoader
__del__ = lambda self : None;
def load(self, *args):
"""
Submitter*
Arc::SubmitterLoader::load(const std::string &name, const UserConfig
&usercfg)
Load a new Submitter
Parameters:
-----------
name: The name of the Submitter to load.
usercfg: The UserConfig object for the new Submitter.
A pointer to the new Submitter (NULL on error).
"""
return _arc.SubmitterLoader_load(self, *args)
def GetSubmitters(self):
"""
const
std::list<Submitter*>& Arc::SubmitterLoader::GetSubmitters() const
Retrieve the list of loaded Submitters. A reference to the list of
Submitters.
"""
return _arc.SubmitterLoader_GetSubmitters(self)
SubmitterLoader_swigregister = _arc.SubmitterLoader_swigregister
SubmitterLoader_swigregister(SubmitterLoader)
class SubmitterPluginArgument(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SubmitterPluginArgument, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SubmitterPluginArgument, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::SubmitterPluginArgument::SubmitterPluginArgument(const UserConfig
&usercfg)
"""
this = _arc.new_SubmitterPluginArgument(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SubmitterPluginArgument
__del__ = lambda self : None;
SubmitterPluginArgument_swigregister = _arc.SubmitterPluginArgument_swigregister
SubmitterPluginArgument_swigregister(SubmitterPluginArgument)
class Software(_object):
"""
Used to represent software (names and version) and comparison.
The Software class is used to represent the name of a piece of
software internally. Generally software are identified by a name and
possibly a version number. Some software can also be categorized by
type or family (compilers, operating system, etc.). A software object
can be compared to other software objects using the comparison
operators contained in this class. The basic usage of this class is to
test if some specified software requirement ( SoftwareRequirement) are
fulfilled, by using the comparability of the class.
Internally the Software object is represented by a family and name
identifier, and the software version is tokenized at the characters
defined in VERSIONTOKENS, and stored as a list of tokens.
C++ includes: Software.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Software, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Software, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::Software::Software(const std::string &family, const std::string
&name, const std::string &version)
Create a Software object.
Create a Software object with the specified family, name and version.
Parameters:
-----------
family: the software family to represent.
name: the software name to represent.
version: the software version to represent.
"""
this = _arc.new_Software(*args)
try: self.this.append(this)
except: self.this = this
NOTEQUAL = _arc.Software_NOTEQUAL
EQUAL = _arc.Software_EQUAL
GREATERTHAN = _arc.Software_GREATERTHAN
LESSTHAN = _arc.Software_LESSTHAN
GREATERTHANOREQUAL = _arc.Software_GREATERTHANOREQUAL
LESSTHANOREQUAL = _arc.Software_LESSTHANOREQUAL
def empty(self):
"""
bool
Arc::Software::empty() const
Indicates whether the object is empty.
true if the name of this object is empty, otherwise false.
"""
return _arc.Software_empty(self)
def __eq__(self, *args): return _arc.Software___eq__(self, *args)
def __ne__(self, *args): return _arc.Software___ne__(self, *args)
def __gt__(self, *args): return _arc.Software___gt__(self, *args)
def __lt__(self, *args): return _arc.Software___lt__(self, *args)
def __ge__(self, *args): return _arc.Software___ge__(self, *args)
def __le__(self, *args): return _arc.Software___le__(self, *args)
def __call__(self): return _arc.Software___call__(self)
def __str__(self): return _arc.Software___str__(self)
def getFamily(self):
"""
const std::string&
Arc::Software::getFamily() const
Get family.
The family the represented software belongs to is returned.
"""
return _arc.Software_getFamily(self)
def getName(self):
"""
const std::string&
Arc::Software::getName() const
Get name.
The name of the represented software is returned.
"""
return _arc.Software_getName(self)
def getVersion(self):
"""
const std::string&
Arc::Software::getVersion() const
Get version.
The version of the represented software is returned.
"""
return _arc.Software_getVersion(self)
__swig_destroy__ = _arc.delete_Software
__del__ = lambda self : None;
Software_swigregister = _arc.Software_swigregister
Software_swigregister(Software)
Software.VERSIONTOKENS = _arc.cvar.Software_VERSIONTOKENS
class SoftwareRequirement(_object):
"""
Class used to express and resolve version requirements on software.
A requirement in this class is defined as a pair composed of a
Software object and either a Software::ComparisonOperator method
pointer or equally a Software::ComparisonOperatorEnum enum value. A
SoftwareRequirement object can contain multiple of such requirements,
and then it can specified if all these requirements should be
satisfied, or if it is enough to satisfy only one of them. The
requirements can be satisfied by a single Software object or a list of
either Software or ApplicationEnvironment objects, by using the method
isSatisfied(). This class also contain a number of methods (
selectSoftware()) to select Software objects which are satisfying the
requirements, and in this way resolving requirements.
C++ includes: Software.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoftwareRequirement, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoftwareRequirement, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::SoftwareRequirement::SoftwareRequirement(const
SoftwareRequirement &sr)
Copy constructor.
Create a SoftwareRequirement object from another SoftwareRequirement
object.
Parameters:
-----------
sr: is the SoftwareRequirement object to make a copy of.
"""
this = _arc.new_SoftwareRequirement(*args)
try: self.this.append(this)
except: self.this = this
def add(self, *args):
"""
void
Arc::SoftwareRequirement::add(const Software &sw,
Software::ComparisonOperatorEnum co)
Add a Software object a corresponding comparion operator to this
object.
Adds software name and version to list of requirements and associates
the comparison operator with it (equality by default).
Parameters:
-----------
sw: is the Software object to add as part of a requirement.
co: is the Software::ComparisonOperatorEnum value to add as part of a
requirement, the default enum will be Software::EQUAL.
"""
return _arc.SoftwareRequirement_add(self, *args)
def isSatisfied(self, *args):
"""
bool
Arc::SoftwareRequirement::isSatisfied(const std::list<
ApplicationEnvironment > &swList) const
Test if requirements are satisfied.
This method behaves in exactly the same way as the isSatisfied(const
Software&) constmethod does.
Parameters:
-----------
swList: is the list of ApplicationEnvironment objects which should be
used to try satisfy the requirements.
true if requirements are satisfied, otherwise false.
See: isSatisfied(const Software&) const,
isSatisfied(const std::list<Software>&) const,
selectSoftware(const std::list<ApplicationEnvironment>&),
isResolved() const.
"""
return _arc.SoftwareRequirement_isSatisfied(self, *args)
def selectSoftware(self, *args):
"""
bool
Arc::SoftwareRequirement::selectSoftware(const std::list<
ApplicationEnvironment > &swList)
Select software.
This method behaves exactly as the selectSoftware(const
std::list<Software>&) method does.
Parameters:
-----------
swList: is a list of ApplicationEnvironment objects used to satisfy
requirements.
true if requirements are satisfied, otherwise false.
See: selectSoftware(const Software&),
selectSoftware(const std::list<Software>&),
isSatisfied(const std::list<ApplicationEnvironment>&) const,
isResolved() const.
"""
return _arc.SoftwareRequirement_selectSoftware(self, *args)
def isResolved(self):
"""
bool
Arc::SoftwareRequirement::isResolved() const
Indicates whether requirements have been resolved or not.
If specified that only one requirement has to be satisfied, then for
this object to be resolved it can only contain one requirement and it
has use the equal operator ( Software::operator==).
If specified that all requirements has to be satisfied, then for this
object to be resolved each requirement must have a Software object
with a unique family/name composition, i.e. no other requirements have
a Software object with the same family/name composition, and each
requirement must use the equal operator ( Software::operator==).
If this object has been resolved then true is returned when invoking
this method, otherwise false is returned.
true if this object have been resolved, otherwise false.
"""
return _arc.SoftwareRequirement_isResolved(self)
def empty(self):
"""
bool
Arc::SoftwareRequirement::empty() const
Test if the object is empty.
true if this object do no contain any requirements, otherwise false.
"""
return _arc.SoftwareRequirement_empty(self)
def clear(self):
"""
void
Arc::SoftwareRequirement::clear()
Clear the object.
The requirements in this object will be cleared when invoking this
method.
"""
return _arc.SoftwareRequirement_clear(self)
def getSoftwareList(self):
"""
const std::list<Software>& Arc::SoftwareRequirement::getSoftwareList()
const
Get list of Software objects.
The list of internally stored Software objects is returned.
See: Software,
getComparisonOperatorList.
"""
return _arc.SoftwareRequirement_getSoftwareList(self)
def getComparisonOperatorList(self):
"""
const
std::list<Software::ComparisonOperator>&
Arc::SoftwareRequirement::getComparisonOperatorList() const
Get list of comparison operators.
The list of internally stored comparison operators is returned.
See: Software::ComparisonOperator,
getSoftwareList.
"""
return _arc.SoftwareRequirement_getComparisonOperatorList(self)
__swig_destroy__ = _arc.delete_SoftwareRequirement
__del__ = lambda self : None;
SoftwareRequirement_swigregister = _arc.SoftwareRequirement_swigregister
SoftwareRequirement_swigregister(SoftwareRequirement)
class ApplicationEnvironment(Software):
"""
ApplicationEnvironment.
The ApplicationEnviroment is closely related to the definition given
in GLUE2. By extending the Software class the two GLUE2 attributes
AppName and AppVersion are mapped to two private members. However
these can be obtained through the inheriated member methods getName
and getVersion.
GLUE2 description: A description of installed application software or
software environment characteristics available within one or more
Execution Environments.
C++ includes: ExecutionTarget.h
"""
__swig_setmethods__ = {}
for _s in [Software]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ApplicationEnvironment, name, value)
__swig_getmethods__ = {}
for _s in [Software]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, ApplicationEnvironment, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ApplicationEnvironment::ApplicationEnvironment(const std::string
&Name, const std::string &Version)
"""
this = _arc.new_ApplicationEnvironment(*args)
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["State"] = _arc.ApplicationEnvironment_State_set
__swig_getmethods__["State"] = _arc.ApplicationEnvironment_State_get
if _newclass:State = _swig_property(_arc.ApplicationEnvironment_State_get, _arc.ApplicationEnvironment_State_set)
__swig_setmethods__["FreeSlots"] = _arc.ApplicationEnvironment_FreeSlots_set
__swig_getmethods__["FreeSlots"] = _arc.ApplicationEnvironment_FreeSlots_get
if _newclass:FreeSlots = _swig_property(_arc.ApplicationEnvironment_FreeSlots_get, _arc.ApplicationEnvironment_FreeSlots_set)
__swig_setmethods__["FreeJobs"] = _arc.ApplicationEnvironment_FreeJobs_set
__swig_getmethods__["FreeJobs"] = _arc.ApplicationEnvironment_FreeJobs_get
if _newclass:FreeJobs = _swig_property(_arc.ApplicationEnvironment_FreeJobs_get, _arc.ApplicationEnvironment_FreeJobs_set)
__swig_setmethods__["FreeUserSeats"] = _arc.ApplicationEnvironment_FreeUserSeats_set
__swig_getmethods__["FreeUserSeats"] = _arc.ApplicationEnvironment_FreeUserSeats_get
if _newclass:FreeUserSeats = _swig_property(_arc.ApplicationEnvironment_FreeUserSeats_get, _arc.ApplicationEnvironment_FreeUserSeats_set)
__swig_destroy__ = _arc.delete_ApplicationEnvironment
__del__ = lambda self : None;
ApplicationEnvironment_swigregister = _arc.ApplicationEnvironment_swigregister
ApplicationEnvironment_swigregister(ApplicationEnvironment)
class ExecutionTarget(_object):
"""
ExecutionTarget.
This class describe a target which accept computing jobs. All of the
members contained in this class, with a few exceptions, are directly
linked to attributes defined in the GLUE Specification v. 2.0
(GFD-R-P.147).
C++ includes: ExecutionTarget.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ExecutionTarget, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ExecutionTarget, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ExecutionTarget::ExecutionTarget(const long int addrptr)
Create an ExecutionTarget.
Copy constructor? Needed from Python?
Parameters:
-----------
addrptr:
"""
this = _arc.new_ExecutionTarget(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ExecutionTarget
__del__ = lambda self : None;
def GetSubmitter(self, *args):
"""
Submitter*
Arc::ExecutionTarget::GetSubmitter(const UserConfig &ucfg) const
Get Submitter to the computing resource represented by the
ExecutionTarget.
Method which returns a specialized Submitter which can be used for
submitting jobs to the computing resource represented by the
ExecutionTarget. In order to return the correct specialized Submitter
the GridFlavour variable must be correctly set.
Parameters:
-----------
ucfg: UserConfig object with paths to user credentials etc.
"""
return _arc.ExecutionTarget_GetSubmitter(self, *args)
def GetTestJob(self, *args):
"""
bool
Arc::ExecutionTarget::GetTestJob(const UserConfig &ucfg, const int
&testid, JobDescription &jobdescription) const
"""
return _arc.ExecutionTarget_GetTestJob(self, *args)
def Submit(self, *args):
"""
bool
Arc::ExecutionTarget::Submit(const UserConfig &ucfg, const
JobDescription &jobdesc, Job &job) const
"""
return _arc.ExecutionTarget_Submit(self, *args)
def Migrate(self, *args):
"""
bool
Arc::ExecutionTarget::Migrate(const UserConfig &ucfg, const URL
&jobid, const JobDescription &jobdesc, bool forcemigration, Job &job)
const
"""
return _arc.ExecutionTarget_Migrate(self, *args)
def Update(self, *args):
"""
void
Arc::ExecutionTarget::Update(const JobDescription &jobdesc)
Update ExecutionTarget after succesful job submission.
Method to update the ExecutionTarget after a job succesfully has been
submitted to the computing resource it represents. E.g. if a job is
sent to the computing resource and is expected to enter the queue,
then the WaitingJobs attribute is incremented with 1.
Parameters:
-----------
jobdesc: contains all information about the job submitted.
"""
return _arc.ExecutionTarget_Update(self, *args)
def Print(self, *args):
"""
void
Arc::ExecutionTarget::Print(bool longlist) const
DEPRECATED: Print the ExecutionTarget information to std::cout.
This method is deprecated, use the SaveToStream method instead. Method
to print the ExecutionTarget attributes to std::cout
Parameters:
-----------
longlist: is true for long list printing.
See: SaveToStream
"""
return _arc.ExecutionTarget_Print(self, *args)
def SaveToStream(self, *args):
"""
void
Arc::ExecutionTarget::SaveToStream(std::ostream &out, bool longlist)
const
Print the ExecutionTarget information to a std::ostream object.
Method to print the ExecutionTarget attributes to a std::ostream
object.
Parameters:
-----------
out: is the std::ostream to print the attributes to.
longlist: should be set to true for printing a long list.
"""
return _arc.ExecutionTarget_SaveToStream(self, *args)
__swig_setmethods__["Address"] = _arc.ExecutionTarget_Address_set
__swig_getmethods__["Address"] = _arc.ExecutionTarget_Address_get
if _newclass:Address = _swig_property(_arc.ExecutionTarget_Address_get, _arc.ExecutionTarget_Address_set)
__swig_setmethods__["Place"] = _arc.ExecutionTarget_Place_set
__swig_getmethods__["Place"] = _arc.ExecutionTarget_Place_get
if _newclass:Place = _swig_property(_arc.ExecutionTarget_Place_get, _arc.ExecutionTarget_Place_set)
__swig_setmethods__["Country"] = _arc.ExecutionTarget_Country_set
__swig_getmethods__["Country"] = _arc.ExecutionTarget_Country_get
if _newclass:Country = _swig_property(_arc.ExecutionTarget_Country_get, _arc.ExecutionTarget_Country_set)
__swig_setmethods__["PostCode"] = _arc.ExecutionTarget_PostCode_set
__swig_getmethods__["PostCode"] = _arc.ExecutionTarget_PostCode_get
if _newclass:PostCode = _swig_property(_arc.ExecutionTarget_PostCode_get, _arc.ExecutionTarget_PostCode_set)
__swig_setmethods__["Latitude"] = _arc.ExecutionTarget_Latitude_set
__swig_getmethods__["Latitude"] = _arc.ExecutionTarget_Latitude_get
if _newclass:Latitude = _swig_property(_arc.ExecutionTarget_Latitude_get, _arc.ExecutionTarget_Latitude_set)
__swig_setmethods__["Longitude"] = _arc.ExecutionTarget_Longitude_set
__swig_getmethods__["Longitude"] = _arc.ExecutionTarget_Longitude_get
if _newclass:Longitude = _swig_property(_arc.ExecutionTarget_Longitude_get, _arc.ExecutionTarget_Longitude_set)
__swig_setmethods__["DomainName"] = _arc.ExecutionTarget_DomainName_set
__swig_getmethods__["DomainName"] = _arc.ExecutionTarget_DomainName_get
if _newclass:DomainName = _swig_property(_arc.ExecutionTarget_DomainName_get, _arc.ExecutionTarget_DomainName_set)
__swig_setmethods__["Owner"] = _arc.ExecutionTarget_Owner_set
__swig_getmethods__["Owner"] = _arc.ExecutionTarget_Owner_get
if _newclass:Owner = _swig_property(_arc.ExecutionTarget_Owner_get, _arc.ExecutionTarget_Owner_set)
__swig_setmethods__["ServiceName"] = _arc.ExecutionTarget_ServiceName_set
__swig_getmethods__["ServiceName"] = _arc.ExecutionTarget_ServiceName_get
if _newclass:ServiceName = _swig_property(_arc.ExecutionTarget_ServiceName_get, _arc.ExecutionTarget_ServiceName_set)
__swig_setmethods__["ServiceType"] = _arc.ExecutionTarget_ServiceType_set
__swig_getmethods__["ServiceType"] = _arc.ExecutionTarget_ServiceType_get
if _newclass:ServiceType = _swig_property(_arc.ExecutionTarget_ServiceType_get, _arc.ExecutionTarget_ServiceType_set)
__swig_setmethods__["url"] = _arc.ExecutionTarget_url_set
__swig_getmethods__["url"] = _arc.ExecutionTarget_url_get
if _newclass:url = _swig_property(_arc.ExecutionTarget_url_get, _arc.ExecutionTarget_url_set)
__swig_setmethods__["Capability"] = _arc.ExecutionTarget_Capability_set
__swig_getmethods__["Capability"] = _arc.ExecutionTarget_Capability_get
if _newclass:Capability = _swig_property(_arc.ExecutionTarget_Capability_get, _arc.ExecutionTarget_Capability_set)
__swig_setmethods__["Technology"] = _arc.ExecutionTarget_Technology_set
__swig_getmethods__["Technology"] = _arc.ExecutionTarget_Technology_get
if _newclass:Technology = _swig_property(_arc.ExecutionTarget_Technology_get, _arc.ExecutionTarget_Technology_set)
__swig_setmethods__["InterfaceName"] = _arc.ExecutionTarget_InterfaceName_set
__swig_getmethods__["InterfaceName"] = _arc.ExecutionTarget_InterfaceName_get
if _newclass:InterfaceName = _swig_property(_arc.ExecutionTarget_InterfaceName_get, _arc.ExecutionTarget_InterfaceName_set)
__swig_setmethods__["InterfaceVersion"] = _arc.ExecutionTarget_InterfaceVersion_set
__swig_getmethods__["InterfaceVersion"] = _arc.ExecutionTarget_InterfaceVersion_get
if _newclass:InterfaceVersion = _swig_property(_arc.ExecutionTarget_InterfaceVersion_get, _arc.ExecutionTarget_InterfaceVersion_set)
__swig_setmethods__["InterfaceExtension"] = _arc.ExecutionTarget_InterfaceExtension_set
__swig_getmethods__["InterfaceExtension"] = _arc.ExecutionTarget_InterfaceExtension_get
if _newclass:InterfaceExtension = _swig_property(_arc.ExecutionTarget_InterfaceExtension_get, _arc.ExecutionTarget_InterfaceExtension_set)
__swig_setmethods__["SupportedProfile"] = _arc.ExecutionTarget_SupportedProfile_set
__swig_getmethods__["SupportedProfile"] = _arc.ExecutionTarget_SupportedProfile_get
if _newclass:SupportedProfile = _swig_property(_arc.ExecutionTarget_SupportedProfile_get, _arc.ExecutionTarget_SupportedProfile_set)
__swig_setmethods__["Implementor"] = _arc.ExecutionTarget_Implementor_set
__swig_getmethods__["Implementor"] = _arc.ExecutionTarget_Implementor_get
if _newclass:Implementor = _swig_property(_arc.ExecutionTarget_Implementor_get, _arc.ExecutionTarget_Implementor_set)
__swig_setmethods__["Implementation"] = _arc.ExecutionTarget_Implementation_set
__swig_getmethods__["Implementation"] = _arc.ExecutionTarget_Implementation_get
if _newclass:Implementation = _swig_property(_arc.ExecutionTarget_Implementation_get, _arc.ExecutionTarget_Implementation_set)
__swig_setmethods__["QualityLevel"] = _arc.ExecutionTarget_QualityLevel_set
__swig_getmethods__["QualityLevel"] = _arc.ExecutionTarget_QualityLevel_get
if _newclass:QualityLevel = _swig_property(_arc.ExecutionTarget_QualityLevel_get, _arc.ExecutionTarget_QualityLevel_set)
__swig_setmethods__["HealthState"] = _arc.ExecutionTarget_HealthState_set
__swig_getmethods__["HealthState"] = _arc.ExecutionTarget_HealthState_get
if _newclass:HealthState = _swig_property(_arc.ExecutionTarget_HealthState_get, _arc.ExecutionTarget_HealthState_set)
__swig_setmethods__["HealthStateInfo"] = _arc.ExecutionTarget_HealthStateInfo_set
__swig_getmethods__["HealthStateInfo"] = _arc.ExecutionTarget_HealthStateInfo_get
if _newclass:HealthStateInfo = _swig_property(_arc.ExecutionTarget_HealthStateInfo_get, _arc.ExecutionTarget_HealthStateInfo_set)
__swig_setmethods__["ServingState"] = _arc.ExecutionTarget_ServingState_set
__swig_getmethods__["ServingState"] = _arc.ExecutionTarget_ServingState_get
if _newclass:ServingState = _swig_property(_arc.ExecutionTarget_ServingState_get, _arc.ExecutionTarget_ServingState_set)
__swig_setmethods__["IssuerCA"] = _arc.ExecutionTarget_IssuerCA_set
__swig_getmethods__["IssuerCA"] = _arc.ExecutionTarget_IssuerCA_get
if _newclass:IssuerCA = _swig_property(_arc.ExecutionTarget_IssuerCA_get, _arc.ExecutionTarget_IssuerCA_set)
__swig_setmethods__["TrustedCA"] = _arc.ExecutionTarget_TrustedCA_set
__swig_getmethods__["TrustedCA"] = _arc.ExecutionTarget_TrustedCA_get
if _newclass:TrustedCA = _swig_property(_arc.ExecutionTarget_TrustedCA_get, _arc.ExecutionTarget_TrustedCA_set)
__swig_setmethods__["DowntimeStarts"] = _arc.ExecutionTarget_DowntimeStarts_set
__swig_getmethods__["DowntimeStarts"] = _arc.ExecutionTarget_DowntimeStarts_get
if _newclass:DowntimeStarts = _swig_property(_arc.ExecutionTarget_DowntimeStarts_get, _arc.ExecutionTarget_DowntimeStarts_set)
__swig_setmethods__["DowntimeEnds"] = _arc.ExecutionTarget_DowntimeEnds_set
__swig_getmethods__["DowntimeEnds"] = _arc.ExecutionTarget_DowntimeEnds_get
if _newclass:DowntimeEnds = _swig_property(_arc.ExecutionTarget_DowntimeEnds_get, _arc.ExecutionTarget_DowntimeEnds_set)
__swig_setmethods__["Staging"] = _arc.ExecutionTarget_Staging_set
__swig_getmethods__["Staging"] = _arc.ExecutionTarget_Staging_get
if _newclass:Staging = _swig_property(_arc.ExecutionTarget_Staging_get, _arc.ExecutionTarget_Staging_set)
__swig_setmethods__["JobDescriptions"] = _arc.ExecutionTarget_JobDescriptions_set
__swig_getmethods__["JobDescriptions"] = _arc.ExecutionTarget_JobDescriptions_get
if _newclass:JobDescriptions = _swig_property(_arc.ExecutionTarget_JobDescriptions_get, _arc.ExecutionTarget_JobDescriptions_set)
__swig_setmethods__["ComputingShareName"] = _arc.ExecutionTarget_ComputingShareName_set
__swig_getmethods__["ComputingShareName"] = _arc.ExecutionTarget_ComputingShareName_get
if _newclass:ComputingShareName = _swig_property(_arc.ExecutionTarget_ComputingShareName_get, _arc.ExecutionTarget_ComputingShareName_set)
__swig_setmethods__["MappingQueue"] = _arc.ExecutionTarget_MappingQueue_set
__swig_getmethods__["MappingQueue"] = _arc.ExecutionTarget_MappingQueue_get
if _newclass:MappingQueue = _swig_property(_arc.ExecutionTarget_MappingQueue_get, _arc.ExecutionTarget_MappingQueue_set)
__swig_setmethods__["MaxWallTime"] = _arc.ExecutionTarget_MaxWallTime_set
__swig_getmethods__["MaxWallTime"] = _arc.ExecutionTarget_MaxWallTime_get
if _newclass:MaxWallTime = _swig_property(_arc.ExecutionTarget_MaxWallTime_get, _arc.ExecutionTarget_MaxWallTime_set)
__swig_setmethods__["MaxTotalWallTime"] = _arc.ExecutionTarget_MaxTotalWallTime_set
__swig_getmethods__["MaxTotalWallTime"] = _arc.ExecutionTarget_MaxTotalWallTime_get
if _newclass:MaxTotalWallTime = _swig_property(_arc.ExecutionTarget_MaxTotalWallTime_get, _arc.ExecutionTarget_MaxTotalWallTime_set)
__swig_setmethods__["MinWallTime"] = _arc.ExecutionTarget_MinWallTime_set
__swig_getmethods__["MinWallTime"] = _arc.ExecutionTarget_MinWallTime_get
if _newclass:MinWallTime = _swig_property(_arc.ExecutionTarget_MinWallTime_get, _arc.ExecutionTarget_MinWallTime_set)
__swig_setmethods__["DefaultWallTime"] = _arc.ExecutionTarget_DefaultWallTime_set
__swig_getmethods__["DefaultWallTime"] = _arc.ExecutionTarget_DefaultWallTime_get
if _newclass:DefaultWallTime = _swig_property(_arc.ExecutionTarget_DefaultWallTime_get, _arc.ExecutionTarget_DefaultWallTime_set)
__swig_setmethods__["MaxCPUTime"] = _arc.ExecutionTarget_MaxCPUTime_set
__swig_getmethods__["MaxCPUTime"] = _arc.ExecutionTarget_MaxCPUTime_get
if _newclass:MaxCPUTime = _swig_property(_arc.ExecutionTarget_MaxCPUTime_get, _arc.ExecutionTarget_MaxCPUTime_set)
__swig_setmethods__["MaxTotalCPUTime"] = _arc.ExecutionTarget_MaxTotalCPUTime_set
__swig_getmethods__["MaxTotalCPUTime"] = _arc.ExecutionTarget_MaxTotalCPUTime_get
if _newclass:MaxTotalCPUTime = _swig_property(_arc.ExecutionTarget_MaxTotalCPUTime_get, _arc.ExecutionTarget_MaxTotalCPUTime_set)
__swig_setmethods__["MinCPUTime"] = _arc.ExecutionTarget_MinCPUTime_set
__swig_getmethods__["MinCPUTime"] = _arc.ExecutionTarget_MinCPUTime_get
if _newclass:MinCPUTime = _swig_property(_arc.ExecutionTarget_MinCPUTime_get, _arc.ExecutionTarget_MinCPUTime_set)
__swig_setmethods__["DefaultCPUTime"] = _arc.ExecutionTarget_DefaultCPUTime_set
__swig_getmethods__["DefaultCPUTime"] = _arc.ExecutionTarget_DefaultCPUTime_get
if _newclass:DefaultCPUTime = _swig_property(_arc.ExecutionTarget_DefaultCPUTime_get, _arc.ExecutionTarget_DefaultCPUTime_set)
__swig_setmethods__["MaxTotalJobs"] = _arc.ExecutionTarget_MaxTotalJobs_set
__swig_getmethods__["MaxTotalJobs"] = _arc.ExecutionTarget_MaxTotalJobs_get
if _newclass:MaxTotalJobs = _swig_property(_arc.ExecutionTarget_MaxTotalJobs_get, _arc.ExecutionTarget_MaxTotalJobs_set)
__swig_setmethods__["MaxRunningJobs"] = _arc.ExecutionTarget_MaxRunningJobs_set
__swig_getmethods__["MaxRunningJobs"] = _arc.ExecutionTarget_MaxRunningJobs_get
if _newclass:MaxRunningJobs = _swig_property(_arc.ExecutionTarget_MaxRunningJobs_get, _arc.ExecutionTarget_MaxRunningJobs_set)
__swig_setmethods__["MaxWaitingJobs"] = _arc.ExecutionTarget_MaxWaitingJobs_set
__swig_getmethods__["MaxWaitingJobs"] = _arc.ExecutionTarget_MaxWaitingJobs_get
if _newclass:MaxWaitingJobs = _swig_property(_arc.ExecutionTarget_MaxWaitingJobs_get, _arc.ExecutionTarget_MaxWaitingJobs_set)
__swig_setmethods__["MaxPreLRMSWaitingJobs"] = _arc.ExecutionTarget_MaxPreLRMSWaitingJobs_set
__swig_getmethods__["MaxPreLRMSWaitingJobs"] = _arc.ExecutionTarget_MaxPreLRMSWaitingJobs_get
if _newclass:MaxPreLRMSWaitingJobs = _swig_property(_arc.ExecutionTarget_MaxPreLRMSWaitingJobs_get, _arc.ExecutionTarget_MaxPreLRMSWaitingJobs_set)
__swig_setmethods__["MaxUserRunningJobs"] = _arc.ExecutionTarget_MaxUserRunningJobs_set
__swig_getmethods__["MaxUserRunningJobs"] = _arc.ExecutionTarget_MaxUserRunningJobs_get
if _newclass:MaxUserRunningJobs = _swig_property(_arc.ExecutionTarget_MaxUserRunningJobs_get, _arc.ExecutionTarget_MaxUserRunningJobs_set)
__swig_setmethods__["MaxSlotsPerJob"] = _arc.ExecutionTarget_MaxSlotsPerJob_set
__swig_getmethods__["MaxSlotsPerJob"] = _arc.ExecutionTarget_MaxSlotsPerJob_get
if _newclass:MaxSlotsPerJob = _swig_property(_arc.ExecutionTarget_MaxSlotsPerJob_get, _arc.ExecutionTarget_MaxSlotsPerJob_set)
__swig_setmethods__["MaxStageInStreams"] = _arc.ExecutionTarget_MaxStageInStreams_set
__swig_getmethods__["MaxStageInStreams"] = _arc.ExecutionTarget_MaxStageInStreams_get
if _newclass:MaxStageInStreams = _swig_property(_arc.ExecutionTarget_MaxStageInStreams_get, _arc.ExecutionTarget_MaxStageInStreams_set)
__swig_setmethods__["MaxStageOutStreams"] = _arc.ExecutionTarget_MaxStageOutStreams_set
__swig_getmethods__["MaxStageOutStreams"] = _arc.ExecutionTarget_MaxStageOutStreams_get
if _newclass:MaxStageOutStreams = _swig_property(_arc.ExecutionTarget_MaxStageOutStreams_get, _arc.ExecutionTarget_MaxStageOutStreams_set)
__swig_setmethods__["SchedulingPolicy"] = _arc.ExecutionTarget_SchedulingPolicy_set
__swig_getmethods__["SchedulingPolicy"] = _arc.ExecutionTarget_SchedulingPolicy_get
if _newclass:SchedulingPolicy = _swig_property(_arc.ExecutionTarget_SchedulingPolicy_get, _arc.ExecutionTarget_SchedulingPolicy_set)
__swig_setmethods__["MaxMainMemory"] = _arc.ExecutionTarget_MaxMainMemory_set
__swig_getmethods__["MaxMainMemory"] = _arc.ExecutionTarget_MaxMainMemory_get
if _newclass:MaxMainMemory = _swig_property(_arc.ExecutionTarget_MaxMainMemory_get, _arc.ExecutionTarget_MaxMainMemory_set)
__swig_setmethods__["MaxVirtualMemory"] = _arc.ExecutionTarget_MaxVirtualMemory_set
__swig_getmethods__["MaxVirtualMemory"] = _arc.ExecutionTarget_MaxVirtualMemory_get
if _newclass:MaxVirtualMemory = _swig_property(_arc.ExecutionTarget_MaxVirtualMemory_get, _arc.ExecutionTarget_MaxVirtualMemory_set)
__swig_setmethods__["MaxDiskSpace"] = _arc.ExecutionTarget_MaxDiskSpace_set
__swig_getmethods__["MaxDiskSpace"] = _arc.ExecutionTarget_MaxDiskSpace_get
if _newclass:MaxDiskSpace = _swig_property(_arc.ExecutionTarget_MaxDiskSpace_get, _arc.ExecutionTarget_MaxDiskSpace_set)
__swig_setmethods__["DefaultStorageService"] = _arc.ExecutionTarget_DefaultStorageService_set
__swig_getmethods__["DefaultStorageService"] = _arc.ExecutionTarget_DefaultStorageService_get
if _newclass:DefaultStorageService = _swig_property(_arc.ExecutionTarget_DefaultStorageService_get, _arc.ExecutionTarget_DefaultStorageService_set)
__swig_setmethods__["Preemption"] = _arc.ExecutionTarget_Preemption_set
__swig_getmethods__["Preemption"] = _arc.ExecutionTarget_Preemption_get
if _newclass:Preemption = _swig_property(_arc.ExecutionTarget_Preemption_get, _arc.ExecutionTarget_Preemption_set)
__swig_setmethods__["TotalJobs"] = _arc.ExecutionTarget_TotalJobs_set
__swig_getmethods__["TotalJobs"] = _arc.ExecutionTarget_TotalJobs_get
if _newclass:TotalJobs = _swig_property(_arc.ExecutionTarget_TotalJobs_get, _arc.ExecutionTarget_TotalJobs_set)
__swig_setmethods__["RunningJobs"] = _arc.ExecutionTarget_RunningJobs_set
__swig_getmethods__["RunningJobs"] = _arc.ExecutionTarget_RunningJobs_get
if _newclass:RunningJobs = _swig_property(_arc.ExecutionTarget_RunningJobs_get, _arc.ExecutionTarget_RunningJobs_set)
__swig_setmethods__["LocalRunningJobs"] = _arc.ExecutionTarget_LocalRunningJobs_set
__swig_getmethods__["LocalRunningJobs"] = _arc.ExecutionTarget_LocalRunningJobs_get
if _newclass:LocalRunningJobs = _swig_property(_arc.ExecutionTarget_LocalRunningJobs_get, _arc.ExecutionTarget_LocalRunningJobs_set)
__swig_setmethods__["WaitingJobs"] = _arc.ExecutionTarget_WaitingJobs_set
__swig_getmethods__["WaitingJobs"] = _arc.ExecutionTarget_WaitingJobs_get
if _newclass:WaitingJobs = _swig_property(_arc.ExecutionTarget_WaitingJobs_get, _arc.ExecutionTarget_WaitingJobs_set)
__swig_setmethods__["LocalWaitingJobs"] = _arc.ExecutionTarget_LocalWaitingJobs_set
__swig_getmethods__["LocalWaitingJobs"] = _arc.ExecutionTarget_LocalWaitingJobs_get
if _newclass:LocalWaitingJobs = _swig_property(_arc.ExecutionTarget_LocalWaitingJobs_get, _arc.ExecutionTarget_LocalWaitingJobs_set)
__swig_setmethods__["SuspendedJobs"] = _arc.ExecutionTarget_SuspendedJobs_set
__swig_getmethods__["SuspendedJobs"] = _arc.ExecutionTarget_SuspendedJobs_get
if _newclass:SuspendedJobs = _swig_property(_arc.ExecutionTarget_SuspendedJobs_get, _arc.ExecutionTarget_SuspendedJobs_set)
__swig_setmethods__["LocalSuspendedJobs"] = _arc.ExecutionTarget_LocalSuspendedJobs_set
__swig_getmethods__["LocalSuspendedJobs"] = _arc.ExecutionTarget_LocalSuspendedJobs_get
if _newclass:LocalSuspendedJobs = _swig_property(_arc.ExecutionTarget_LocalSuspendedJobs_get, _arc.ExecutionTarget_LocalSuspendedJobs_set)
__swig_setmethods__["StagingJobs"] = _arc.ExecutionTarget_StagingJobs_set
__swig_getmethods__["StagingJobs"] = _arc.ExecutionTarget_StagingJobs_get
if _newclass:StagingJobs = _swig_property(_arc.ExecutionTarget_StagingJobs_get, _arc.ExecutionTarget_StagingJobs_set)
__swig_setmethods__["PreLRMSWaitingJobs"] = _arc.ExecutionTarget_PreLRMSWaitingJobs_set
__swig_getmethods__["PreLRMSWaitingJobs"] = _arc.ExecutionTarget_PreLRMSWaitingJobs_get
if _newclass:PreLRMSWaitingJobs = _swig_property(_arc.ExecutionTarget_PreLRMSWaitingJobs_get, _arc.ExecutionTarget_PreLRMSWaitingJobs_set)
__swig_setmethods__["EstimatedAverageWaitingTime"] = _arc.ExecutionTarget_EstimatedAverageWaitingTime_set
__swig_getmethods__["EstimatedAverageWaitingTime"] = _arc.ExecutionTarget_EstimatedAverageWaitingTime_get
if _newclass:EstimatedAverageWaitingTime = _swig_property(_arc.ExecutionTarget_EstimatedAverageWaitingTime_get, _arc.ExecutionTarget_EstimatedAverageWaitingTime_set)
__swig_setmethods__["EstimatedWorstWaitingTime"] = _arc.ExecutionTarget_EstimatedWorstWaitingTime_set
__swig_getmethods__["EstimatedWorstWaitingTime"] = _arc.ExecutionTarget_EstimatedWorstWaitingTime_get
if _newclass:EstimatedWorstWaitingTime = _swig_property(_arc.ExecutionTarget_EstimatedWorstWaitingTime_get, _arc.ExecutionTarget_EstimatedWorstWaitingTime_set)
__swig_setmethods__["FreeSlots"] = _arc.ExecutionTarget_FreeSlots_set
__swig_getmethods__["FreeSlots"] = _arc.ExecutionTarget_FreeSlots_get
if _newclass:FreeSlots = _swig_property(_arc.ExecutionTarget_FreeSlots_get, _arc.ExecutionTarget_FreeSlots_set)
__swig_setmethods__["FreeSlotsWithDuration"] = _arc.ExecutionTarget_FreeSlotsWithDuration_set
__swig_getmethods__["FreeSlotsWithDuration"] = _arc.ExecutionTarget_FreeSlotsWithDuration_get
if _newclass:FreeSlotsWithDuration = _swig_property(_arc.ExecutionTarget_FreeSlotsWithDuration_get, _arc.ExecutionTarget_FreeSlotsWithDuration_set)
__swig_setmethods__["UsedSlots"] = _arc.ExecutionTarget_UsedSlots_set
__swig_getmethods__["UsedSlots"] = _arc.ExecutionTarget_UsedSlots_get
if _newclass:UsedSlots = _swig_property(_arc.ExecutionTarget_UsedSlots_get, _arc.ExecutionTarget_UsedSlots_set)
__swig_setmethods__["RequestedSlots"] = _arc.ExecutionTarget_RequestedSlots_set
__swig_getmethods__["RequestedSlots"] = _arc.ExecutionTarget_RequestedSlots_get
if _newclass:RequestedSlots = _swig_property(_arc.ExecutionTarget_RequestedSlots_get, _arc.ExecutionTarget_RequestedSlots_set)
__swig_setmethods__["ReservationPolicy"] = _arc.ExecutionTarget_ReservationPolicy_set
__swig_getmethods__["ReservationPolicy"] = _arc.ExecutionTarget_ReservationPolicy_get
if _newclass:ReservationPolicy = _swig_property(_arc.ExecutionTarget_ReservationPolicy_get, _arc.ExecutionTarget_ReservationPolicy_set)
__swig_setmethods__["ManagerProductName"] = _arc.ExecutionTarget_ManagerProductName_set
__swig_getmethods__["ManagerProductName"] = _arc.ExecutionTarget_ManagerProductName_get
if _newclass:ManagerProductName = _swig_property(_arc.ExecutionTarget_ManagerProductName_get, _arc.ExecutionTarget_ManagerProductName_set)
__swig_setmethods__["ManagerProductVersion"] = _arc.ExecutionTarget_ManagerProductVersion_set
__swig_getmethods__["ManagerProductVersion"] = _arc.ExecutionTarget_ManagerProductVersion_get
if _newclass:ManagerProductVersion = _swig_property(_arc.ExecutionTarget_ManagerProductVersion_get, _arc.ExecutionTarget_ManagerProductVersion_set)
__swig_setmethods__["Reservation"] = _arc.ExecutionTarget_Reservation_set
__swig_getmethods__["Reservation"] = _arc.ExecutionTarget_Reservation_get
if _newclass:Reservation = _swig_property(_arc.ExecutionTarget_Reservation_get, _arc.ExecutionTarget_Reservation_set)
__swig_setmethods__["BulkSubmission"] = _arc.ExecutionTarget_BulkSubmission_set
__swig_getmethods__["BulkSubmission"] = _arc.ExecutionTarget_BulkSubmission_get
if _newclass:BulkSubmission = _swig_property(_arc.ExecutionTarget_BulkSubmission_get, _arc.ExecutionTarget_BulkSubmission_set)
__swig_setmethods__["TotalPhysicalCPUs"] = _arc.ExecutionTarget_TotalPhysicalCPUs_set
__swig_getmethods__["TotalPhysicalCPUs"] = _arc.ExecutionTarget_TotalPhysicalCPUs_get
if _newclass:TotalPhysicalCPUs = _swig_property(_arc.ExecutionTarget_TotalPhysicalCPUs_get, _arc.ExecutionTarget_TotalPhysicalCPUs_set)
__swig_setmethods__["TotalLogicalCPUs"] = _arc.ExecutionTarget_TotalLogicalCPUs_set
__swig_getmethods__["TotalLogicalCPUs"] = _arc.ExecutionTarget_TotalLogicalCPUs_get
if _newclass:TotalLogicalCPUs = _swig_property(_arc.ExecutionTarget_TotalLogicalCPUs_get, _arc.ExecutionTarget_TotalLogicalCPUs_set)
__swig_setmethods__["TotalSlots"] = _arc.ExecutionTarget_TotalSlots_set
__swig_getmethods__["TotalSlots"] = _arc.ExecutionTarget_TotalSlots_get
if _newclass:TotalSlots = _swig_property(_arc.ExecutionTarget_TotalSlots_get, _arc.ExecutionTarget_TotalSlots_set)
__swig_setmethods__["Homogeneous"] = _arc.ExecutionTarget_Homogeneous_set
__swig_getmethods__["Homogeneous"] = _arc.ExecutionTarget_Homogeneous_get
if _newclass:Homogeneous = _swig_property(_arc.ExecutionTarget_Homogeneous_get, _arc.ExecutionTarget_Homogeneous_set)
__swig_setmethods__["NetworkInfo"] = _arc.ExecutionTarget_NetworkInfo_set
__swig_getmethods__["NetworkInfo"] = _arc.ExecutionTarget_NetworkInfo_get
if _newclass:NetworkInfo = _swig_property(_arc.ExecutionTarget_NetworkInfo_get, _arc.ExecutionTarget_NetworkInfo_set)
__swig_setmethods__["WorkingAreaShared"] = _arc.ExecutionTarget_WorkingAreaShared_set
__swig_getmethods__["WorkingAreaShared"] = _arc.ExecutionTarget_WorkingAreaShared_get
if _newclass:WorkingAreaShared = _swig_property(_arc.ExecutionTarget_WorkingAreaShared_get, _arc.ExecutionTarget_WorkingAreaShared_set)
__swig_setmethods__["WorkingAreaTotal"] = _arc.ExecutionTarget_WorkingAreaTotal_set
__swig_getmethods__["WorkingAreaTotal"] = _arc.ExecutionTarget_WorkingAreaTotal_get
if _newclass:WorkingAreaTotal = _swig_property(_arc.ExecutionTarget_WorkingAreaTotal_get, _arc.ExecutionTarget_WorkingAreaTotal_set)
__swig_setmethods__["WorkingAreaFree"] = _arc.ExecutionTarget_WorkingAreaFree_set
__swig_getmethods__["WorkingAreaFree"] = _arc.ExecutionTarget_WorkingAreaFree_get
if _newclass:WorkingAreaFree = _swig_property(_arc.ExecutionTarget_WorkingAreaFree_get, _arc.ExecutionTarget_WorkingAreaFree_set)
__swig_setmethods__["WorkingAreaLifeTime"] = _arc.ExecutionTarget_WorkingAreaLifeTime_set
__swig_getmethods__["WorkingAreaLifeTime"] = _arc.ExecutionTarget_WorkingAreaLifeTime_get
if _newclass:WorkingAreaLifeTime = _swig_property(_arc.ExecutionTarget_WorkingAreaLifeTime_get, _arc.ExecutionTarget_WorkingAreaLifeTime_set)
__swig_setmethods__["CacheTotal"] = _arc.ExecutionTarget_CacheTotal_set
__swig_getmethods__["CacheTotal"] = _arc.ExecutionTarget_CacheTotal_get
if _newclass:CacheTotal = _swig_property(_arc.ExecutionTarget_CacheTotal_get, _arc.ExecutionTarget_CacheTotal_set)
__swig_setmethods__["CacheFree"] = _arc.ExecutionTarget_CacheFree_set
__swig_getmethods__["CacheFree"] = _arc.ExecutionTarget_CacheFree_get
if _newclass:CacheFree = _swig_property(_arc.ExecutionTarget_CacheFree_get, _arc.ExecutionTarget_CacheFree_set)
__swig_setmethods__["Benchmarks"] = _arc.ExecutionTarget_Benchmarks_set
__swig_getmethods__["Benchmarks"] = _arc.ExecutionTarget_Benchmarks_get
if _newclass:Benchmarks = _swig_property(_arc.ExecutionTarget_Benchmarks_get, _arc.ExecutionTarget_Benchmarks_set)
__swig_setmethods__["Platform"] = _arc.ExecutionTarget_Platform_set
__swig_getmethods__["Platform"] = _arc.ExecutionTarget_Platform_get
if _newclass:Platform = _swig_property(_arc.ExecutionTarget_Platform_get, _arc.ExecutionTarget_Platform_set)
__swig_setmethods__["VirtualMachine"] = _arc.ExecutionTarget_VirtualMachine_set
__swig_getmethods__["VirtualMachine"] = _arc.ExecutionTarget_VirtualMachine_get
if _newclass:VirtualMachine = _swig_property(_arc.ExecutionTarget_VirtualMachine_get, _arc.ExecutionTarget_VirtualMachine_set)
__swig_setmethods__["CPUVendor"] = _arc.ExecutionTarget_CPUVendor_set
__swig_getmethods__["CPUVendor"] = _arc.ExecutionTarget_CPUVendor_get
if _newclass:CPUVendor = _swig_property(_arc.ExecutionTarget_CPUVendor_get, _arc.ExecutionTarget_CPUVendor_set)
__swig_setmethods__["CPUModel"] = _arc.ExecutionTarget_CPUModel_set
__swig_getmethods__["CPUModel"] = _arc.ExecutionTarget_CPUModel_get
if _newclass:CPUModel = _swig_property(_arc.ExecutionTarget_CPUModel_get, _arc.ExecutionTarget_CPUModel_set)
__swig_setmethods__["CPUVersion"] = _arc.ExecutionTarget_CPUVersion_set
__swig_getmethods__["CPUVersion"] = _arc.ExecutionTarget_CPUVersion_get
if _newclass:CPUVersion = _swig_property(_arc.ExecutionTarget_CPUVersion_get, _arc.ExecutionTarget_CPUVersion_set)
__swig_setmethods__["CPUClockSpeed"] = _arc.ExecutionTarget_CPUClockSpeed_set
__swig_getmethods__["CPUClockSpeed"] = _arc.ExecutionTarget_CPUClockSpeed_get
if _newclass:CPUClockSpeed = _swig_property(_arc.ExecutionTarget_CPUClockSpeed_get, _arc.ExecutionTarget_CPUClockSpeed_set)
__swig_setmethods__["MainMemorySize"] = _arc.ExecutionTarget_MainMemorySize_set
__swig_getmethods__["MainMemorySize"] = _arc.ExecutionTarget_MainMemorySize_get
if _newclass:MainMemorySize = _swig_property(_arc.ExecutionTarget_MainMemorySize_get, _arc.ExecutionTarget_MainMemorySize_set)
__swig_setmethods__["OperatingSystem"] = _arc.ExecutionTarget_OperatingSystem_set
__swig_getmethods__["OperatingSystem"] = _arc.ExecutionTarget_OperatingSystem_get
if _newclass:OperatingSystem = _swig_property(_arc.ExecutionTarget_OperatingSystem_get, _arc.ExecutionTarget_OperatingSystem_set)
__swig_setmethods__["ConnectivityIn"] = _arc.ExecutionTarget_ConnectivityIn_set
__swig_getmethods__["ConnectivityIn"] = _arc.ExecutionTarget_ConnectivityIn_get
if _newclass:ConnectivityIn = _swig_property(_arc.ExecutionTarget_ConnectivityIn_get, _arc.ExecutionTarget_ConnectivityIn_set)
__swig_setmethods__["ConnectivityOut"] = _arc.ExecutionTarget_ConnectivityOut_set
__swig_getmethods__["ConnectivityOut"] = _arc.ExecutionTarget_ConnectivityOut_get
if _newclass:ConnectivityOut = _swig_property(_arc.ExecutionTarget_ConnectivityOut_get, _arc.ExecutionTarget_ConnectivityOut_set)
__swig_setmethods__["ApplicationEnvironments"] = _arc.ExecutionTarget_ApplicationEnvironments_set
__swig_getmethods__["ApplicationEnvironments"] = _arc.ExecutionTarget_ApplicationEnvironments_get
if _newclass:ApplicationEnvironments = _swig_property(_arc.ExecutionTarget_ApplicationEnvironments_get, _arc.ExecutionTarget_ApplicationEnvironments_set)
__swig_setmethods__["GridFlavour"] = _arc.ExecutionTarget_GridFlavour_set
__swig_getmethods__["GridFlavour"] = _arc.ExecutionTarget_GridFlavour_get
if _newclass:GridFlavour = _swig_property(_arc.ExecutionTarget_GridFlavour_get, _arc.ExecutionTarget_GridFlavour_set)
__swig_setmethods__["Cluster"] = _arc.ExecutionTarget_Cluster_set
__swig_getmethods__["Cluster"] = _arc.ExecutionTarget_Cluster_get
if _newclass:Cluster = _swig_property(_arc.ExecutionTarget_Cluster_get, _arc.ExecutionTarget_Cluster_set)
ExecutionTarget_swigregister = _arc.ExecutionTarget_swigregister
ExecutionTarget_swigregister(ExecutionTarget)
class JobState(_object):
"""
ARC general state model. The class comprise the general state model of
the ARC-lib, and are herein used to compare job states from the
different middlewares supported by the plugin structure of the ARC-
lib. Which is why every ACC plugin should contain a class derived from
this class. The derived class should consist of a constructor and a
mapping function (a JobStateMap) which maps a std::string to a
JobState:StateType. An example of a constructor in a plugin could be:
JobStatePlugin::JobStatePluging(const std::string& state) :
JobState(state, &pluginStateMap) {} where &pluginStateMap is a
reference to the JobStateMap defined by the derived class.
C++ includes: JobState.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobState, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobState, name)
__repr__ = _swig_repr
UNDEFINED = _arc.JobState_UNDEFINED
ACCEPTED = _arc.JobState_ACCEPTED
PREPARING = _arc.JobState_PREPARING
SUBMITTING = _arc.JobState_SUBMITTING
HOLD = _arc.JobState_HOLD
QUEUING = _arc.JobState_QUEUING
RUNNING = _arc.JobState_RUNNING
FINISHING = _arc.JobState_FINISHING
FINISHED = _arc.JobState_FINISHED
KILLED = _arc.JobState_KILLED
FAILED = _arc.JobState_FAILED
DELETED = _arc.JobState_DELETED
OTHER = _arc.JobState_OTHER
def __init__(self):
"""Arc::JobState::JobState() """
this = _arc.new_JobState()
try: self.this.append(this)
except: self.this = this
def __nonzero__(self):
return _arc.JobState___nonzero__(self)
__bool__ = __nonzero__
def __eq__(self, *args): return _arc.JobState___eq__(self, *args)
def __ne__(self, *args): return _arc.JobState___ne__(self, *args)
def IsFinished(self):
"""
bool
Arc::JobState::IsFinished() const
Check if state is finished.
true is returned if the StateType is equal to FINISHED, KILLED, FAILED
or DELETED, otherwise false is returned.
"""
return _arc.JobState_IsFinished(self)
def __call__(self): return _arc.JobState___call__(self)
def GetGeneralState(self):
"""
const
std::string& Arc::JobState::GetGeneralState() const
"""
return _arc.JobState_GetGeneralState(self)
__swig_getmethods__["GetStateType"] = lambda x: _arc.JobState_GetStateType
if _newclass:GetStateType = staticmethod(_arc.JobState_GetStateType)
__swig_destroy__ = _arc.delete_JobState
__del__ = lambda self : None;
JobState_swigregister = _arc.JobState_swigregister
JobState_swigregister(JobState)
JobState.StateTypeString = _arc.cvar.JobState_StateTypeString
def JobState_GetStateType(*args):
return _arc.JobState_GetStateType(*args)
JobState_GetStateType = _arc.JobState_GetStateType
class Job(_object):
"""
Job.
This class describe a Grid job. Most of the members contained in this
class are directly linked to the ComputingActivity defined in the GLUE
Specification v. 2.0 (GFD-R-P.147).
C++ includes: Job.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Job, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Job, name)
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_Job
__del__ = lambda self : None;
def __init__(self, *args):
"""Arc::Job::Job(XMLNode job) """
this = _arc.new_Job(*args)
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["Flavour"] = _arc.Job_Flavour_set
__swig_getmethods__["Flavour"] = _arc.Job_Flavour_get
if _newclass:Flavour = _swig_property(_arc.Job_Flavour_get, _arc.Job_Flavour_set)
__swig_setmethods__["JobID"] = _arc.Job_JobID_set
__swig_getmethods__["JobID"] = _arc.Job_JobID_get
if _newclass:JobID = _swig_property(_arc.Job_JobID_get, _arc.Job_JobID_set)
__swig_setmethods__["Cluster"] = _arc.Job_Cluster_set
__swig_getmethods__["Cluster"] = _arc.Job_Cluster_get
if _newclass:Cluster = _swig_property(_arc.Job_Cluster_get, _arc.Job_Cluster_set)
__swig_setmethods__["SubmissionEndpoint"] = _arc.Job_SubmissionEndpoint_set
__swig_getmethods__["SubmissionEndpoint"] = _arc.Job_SubmissionEndpoint_get
if _newclass:SubmissionEndpoint = _swig_property(_arc.Job_SubmissionEndpoint_get, _arc.Job_SubmissionEndpoint_set)
__swig_setmethods__["InfoEndpoint"] = _arc.Job_InfoEndpoint_set
__swig_getmethods__["InfoEndpoint"] = _arc.Job_InfoEndpoint_get
if _newclass:InfoEndpoint = _swig_property(_arc.Job_InfoEndpoint_get, _arc.Job_InfoEndpoint_set)
__swig_setmethods__["ISB"] = _arc.Job_ISB_set
__swig_getmethods__["ISB"] = _arc.Job_ISB_get
if _newclass:ISB = _swig_property(_arc.Job_ISB_get, _arc.Job_ISB_set)
__swig_setmethods__["OSB"] = _arc.Job_OSB_set
__swig_getmethods__["OSB"] = _arc.Job_OSB_get
if _newclass:OSB = _swig_property(_arc.Job_OSB_get, _arc.Job_OSB_set)
__swig_setmethods__["AuxInfo"] = _arc.Job_AuxInfo_set
__swig_getmethods__["AuxInfo"] = _arc.Job_AuxInfo_get
if _newclass:AuxInfo = _swig_property(_arc.Job_AuxInfo_get, _arc.Job_AuxInfo_set)
__swig_setmethods__["Name"] = _arc.Job_Name_set
__swig_getmethods__["Name"] = _arc.Job_Name_get
if _newclass:Name = _swig_property(_arc.Job_Name_get, _arc.Job_Name_set)
__swig_setmethods__["Type"] = _arc.Job_Type_set
__swig_getmethods__["Type"] = _arc.Job_Type_get
if _newclass:Type = _swig_property(_arc.Job_Type_get, _arc.Job_Type_set)
__swig_setmethods__["IDFromEndpoint"] = _arc.Job_IDFromEndpoint_set
__swig_getmethods__["IDFromEndpoint"] = _arc.Job_IDFromEndpoint_get
if _newclass:IDFromEndpoint = _swig_property(_arc.Job_IDFromEndpoint_get, _arc.Job_IDFromEndpoint_set)
__swig_setmethods__["LocalIDFromManager"] = _arc.Job_LocalIDFromManager_set
__swig_getmethods__["LocalIDFromManager"] = _arc.Job_LocalIDFromManager_get
if _newclass:LocalIDFromManager = _swig_property(_arc.Job_LocalIDFromManager_get, _arc.Job_LocalIDFromManager_set)
__swig_setmethods__["JobDescription"] = _arc.Job_JobDescription_set
__swig_getmethods__["JobDescription"] = _arc.Job_JobDescription_get
if _newclass:JobDescription = _swig_property(_arc.Job_JobDescription_get, _arc.Job_JobDescription_set)
__swig_setmethods__["JobDescriptionDocument"] = _arc.Job_JobDescriptionDocument_set
__swig_getmethods__["JobDescriptionDocument"] = _arc.Job_JobDescriptionDocument_get
if _newclass:JobDescriptionDocument = _swig_property(_arc.Job_JobDescriptionDocument_get, _arc.Job_JobDescriptionDocument_set)
__swig_setmethods__["State"] = _arc.Job_State_set
__swig_getmethods__["State"] = _arc.Job_State_get
if _newclass:State = _swig_property(_arc.Job_State_get, _arc.Job_State_set)
__swig_setmethods__["RestartState"] = _arc.Job_RestartState_set
__swig_getmethods__["RestartState"] = _arc.Job_RestartState_get
if _newclass:RestartState = _swig_property(_arc.Job_RestartState_get, _arc.Job_RestartState_set)
__swig_setmethods__["ExitCode"] = _arc.Job_ExitCode_set
__swig_getmethods__["ExitCode"] = _arc.Job_ExitCode_get
if _newclass:ExitCode = _swig_property(_arc.Job_ExitCode_get, _arc.Job_ExitCode_set)
__swig_setmethods__["ComputingManagerExitCode"] = _arc.Job_ComputingManagerExitCode_set
__swig_getmethods__["ComputingManagerExitCode"] = _arc.Job_ComputingManagerExitCode_get
if _newclass:ComputingManagerExitCode = _swig_property(_arc.Job_ComputingManagerExitCode_get, _arc.Job_ComputingManagerExitCode_set)
__swig_setmethods__["Error"] = _arc.Job_Error_set
__swig_getmethods__["Error"] = _arc.Job_Error_get
if _newclass:Error = _swig_property(_arc.Job_Error_get, _arc.Job_Error_set)
__swig_setmethods__["WaitingPosition"] = _arc.Job_WaitingPosition_set
__swig_getmethods__["WaitingPosition"] = _arc.Job_WaitingPosition_get
if _newclass:WaitingPosition = _swig_property(_arc.Job_WaitingPosition_get, _arc.Job_WaitingPosition_set)
__swig_setmethods__["UserDomain"] = _arc.Job_UserDomain_set
__swig_getmethods__["UserDomain"] = _arc.Job_UserDomain_get
if _newclass:UserDomain = _swig_property(_arc.Job_UserDomain_get, _arc.Job_UserDomain_set)
__swig_setmethods__["Owner"] = _arc.Job_Owner_set
__swig_getmethods__["Owner"] = _arc.Job_Owner_get
if _newclass:Owner = _swig_property(_arc.Job_Owner_get, _arc.Job_Owner_set)
__swig_setmethods__["LocalOwner"] = _arc.Job_LocalOwner_set
__swig_getmethods__["LocalOwner"] = _arc.Job_LocalOwner_get
if _newclass:LocalOwner = _swig_property(_arc.Job_LocalOwner_get, _arc.Job_LocalOwner_set)
__swig_setmethods__["RequestedTotalWallTime"] = _arc.Job_RequestedTotalWallTime_set
__swig_getmethods__["RequestedTotalWallTime"] = _arc.Job_RequestedTotalWallTime_get
if _newclass:RequestedTotalWallTime = _swig_property(_arc.Job_RequestedTotalWallTime_get, _arc.Job_RequestedTotalWallTime_set)
__swig_setmethods__["RequestedTotalCPUTime"] = _arc.Job_RequestedTotalCPUTime_set
__swig_getmethods__["RequestedTotalCPUTime"] = _arc.Job_RequestedTotalCPUTime_get
if _newclass:RequestedTotalCPUTime = _swig_property(_arc.Job_RequestedTotalCPUTime_get, _arc.Job_RequestedTotalCPUTime_set)
__swig_setmethods__["RequestedSlots"] = _arc.Job_RequestedSlots_set
__swig_getmethods__["RequestedSlots"] = _arc.Job_RequestedSlots_get
if _newclass:RequestedSlots = _swig_property(_arc.Job_RequestedSlots_get, _arc.Job_RequestedSlots_set)
__swig_setmethods__["RequestedApplicationEnvironment"] = _arc.Job_RequestedApplicationEnvironment_set
__swig_getmethods__["RequestedApplicationEnvironment"] = _arc.Job_RequestedApplicationEnvironment_get
if _newclass:RequestedApplicationEnvironment = _swig_property(_arc.Job_RequestedApplicationEnvironment_get, _arc.Job_RequestedApplicationEnvironment_set)
__swig_setmethods__["StdIn"] = _arc.Job_StdIn_set
__swig_getmethods__["StdIn"] = _arc.Job_StdIn_get
if _newclass:StdIn = _swig_property(_arc.Job_StdIn_get, _arc.Job_StdIn_set)
__swig_setmethods__["StdOut"] = _arc.Job_StdOut_set
__swig_getmethods__["StdOut"] = _arc.Job_StdOut_get
if _newclass:StdOut = _swig_property(_arc.Job_StdOut_get, _arc.Job_StdOut_set)
__swig_setmethods__["StdErr"] = _arc.Job_StdErr_set
__swig_getmethods__["StdErr"] = _arc.Job_StdErr_get
if _newclass:StdErr = _swig_property(_arc.Job_StdErr_get, _arc.Job_StdErr_set)
__swig_setmethods__["LogDir"] = _arc.Job_LogDir_set
__swig_getmethods__["LogDir"] = _arc.Job_LogDir_get
if _newclass:LogDir = _swig_property(_arc.Job_LogDir_get, _arc.Job_LogDir_set)
__swig_setmethods__["ExecutionNode"] = _arc.Job_ExecutionNode_set
__swig_getmethods__["ExecutionNode"] = _arc.Job_ExecutionNode_get
if _newclass:ExecutionNode = _swig_property(_arc.Job_ExecutionNode_get, _arc.Job_ExecutionNode_set)
__swig_setmethods__["Queue"] = _arc.Job_Queue_set
__swig_getmethods__["Queue"] = _arc.Job_Queue_get
if _newclass:Queue = _swig_property(_arc.Job_Queue_get, _arc.Job_Queue_set)
__swig_setmethods__["UsedTotalWallTime"] = _arc.Job_UsedTotalWallTime_set
__swig_getmethods__["UsedTotalWallTime"] = _arc.Job_UsedTotalWallTime_get
if _newclass:UsedTotalWallTime = _swig_property(_arc.Job_UsedTotalWallTime_get, _arc.Job_UsedTotalWallTime_set)
__swig_setmethods__["UsedTotalCPUTime"] = _arc.Job_UsedTotalCPUTime_set
__swig_getmethods__["UsedTotalCPUTime"] = _arc.Job_UsedTotalCPUTime_get
if _newclass:UsedTotalCPUTime = _swig_property(_arc.Job_UsedTotalCPUTime_get, _arc.Job_UsedTotalCPUTime_set)
__swig_setmethods__["UsedMainMemory"] = _arc.Job_UsedMainMemory_set
__swig_getmethods__["UsedMainMemory"] = _arc.Job_UsedMainMemory_get
if _newclass:UsedMainMemory = _swig_property(_arc.Job_UsedMainMemory_get, _arc.Job_UsedMainMemory_set)
__swig_setmethods__["UsedApplicationEnvironment"] = _arc.Job_UsedApplicationEnvironment_set
__swig_getmethods__["UsedApplicationEnvironment"] = _arc.Job_UsedApplicationEnvironment_get
if _newclass:UsedApplicationEnvironment = _swig_property(_arc.Job_UsedApplicationEnvironment_get, _arc.Job_UsedApplicationEnvironment_set)
__swig_setmethods__["UsedSlots"] = _arc.Job_UsedSlots_set
__swig_getmethods__["UsedSlots"] = _arc.Job_UsedSlots_get
if _newclass:UsedSlots = _swig_property(_arc.Job_UsedSlots_get, _arc.Job_UsedSlots_set)
__swig_setmethods__["LocalSubmissionTime"] = _arc.Job_LocalSubmissionTime_set
__swig_getmethods__["LocalSubmissionTime"] = _arc.Job_LocalSubmissionTime_get
if _newclass:LocalSubmissionTime = _swig_property(_arc.Job_LocalSubmissionTime_get, _arc.Job_LocalSubmissionTime_set)
__swig_setmethods__["SubmissionTime"] = _arc.Job_SubmissionTime_set
__swig_getmethods__["SubmissionTime"] = _arc.Job_SubmissionTime_get
if _newclass:SubmissionTime = _swig_property(_arc.Job_SubmissionTime_get, _arc.Job_SubmissionTime_set)
__swig_setmethods__["ComputingManagerSubmissionTime"] = _arc.Job_ComputingManagerSubmissionTime_set
__swig_getmethods__["ComputingManagerSubmissionTime"] = _arc.Job_ComputingManagerSubmissionTime_get
if _newclass:ComputingManagerSubmissionTime = _swig_property(_arc.Job_ComputingManagerSubmissionTime_get, _arc.Job_ComputingManagerSubmissionTime_set)
__swig_setmethods__["StartTime"] = _arc.Job_StartTime_set
__swig_getmethods__["StartTime"] = _arc.Job_StartTime_get
if _newclass:StartTime = _swig_property(_arc.Job_StartTime_get, _arc.Job_StartTime_set)
__swig_setmethods__["ComputingManagerEndTime"] = _arc.Job_ComputingManagerEndTime_set
__swig_getmethods__["ComputingManagerEndTime"] = _arc.Job_ComputingManagerEndTime_get
if _newclass:ComputingManagerEndTime = _swig_property(_arc.Job_ComputingManagerEndTime_get, _arc.Job_ComputingManagerEndTime_set)
__swig_setmethods__["EndTime"] = _arc.Job_EndTime_set
__swig_getmethods__["EndTime"] = _arc.Job_EndTime_get
if _newclass:EndTime = _swig_property(_arc.Job_EndTime_get, _arc.Job_EndTime_set)
__swig_setmethods__["WorkingAreaEraseTime"] = _arc.Job_WorkingAreaEraseTime_set
__swig_getmethods__["WorkingAreaEraseTime"] = _arc.Job_WorkingAreaEraseTime_get
if _newclass:WorkingAreaEraseTime = _swig_property(_arc.Job_WorkingAreaEraseTime_get, _arc.Job_WorkingAreaEraseTime_set)
__swig_setmethods__["ProxyExpirationTime"] = _arc.Job_ProxyExpirationTime_set
__swig_getmethods__["ProxyExpirationTime"] = _arc.Job_ProxyExpirationTime_get
if _newclass:ProxyExpirationTime = _swig_property(_arc.Job_ProxyExpirationTime_get, _arc.Job_ProxyExpirationTime_set)
__swig_setmethods__["SubmissionHost"] = _arc.Job_SubmissionHost_set
__swig_getmethods__["SubmissionHost"] = _arc.Job_SubmissionHost_get
if _newclass:SubmissionHost = _swig_property(_arc.Job_SubmissionHost_get, _arc.Job_SubmissionHost_set)
__swig_setmethods__["SubmissionClientName"] = _arc.Job_SubmissionClientName_set
__swig_getmethods__["SubmissionClientName"] = _arc.Job_SubmissionClientName_get
if _newclass:SubmissionClientName = _swig_property(_arc.Job_SubmissionClientName_get, _arc.Job_SubmissionClientName_set)
__swig_setmethods__["CreationTime"] = _arc.Job_CreationTime_set
__swig_getmethods__["CreationTime"] = _arc.Job_CreationTime_get
if _newclass:CreationTime = _swig_property(_arc.Job_CreationTime_get, _arc.Job_CreationTime_set)
__swig_setmethods__["Validity"] = _arc.Job_Validity_set
__swig_getmethods__["Validity"] = _arc.Job_Validity_get
if _newclass:Validity = _swig_property(_arc.Job_Validity_get, _arc.Job_Validity_set)
__swig_setmethods__["OtherMessages"] = _arc.Job_OtherMessages_set
__swig_getmethods__["OtherMessages"] = _arc.Job_OtherMessages_get
if _newclass:OtherMessages = _swig_property(_arc.Job_OtherMessages_get, _arc.Job_OtherMessages_set)
__swig_setmethods__["ActivityOldID"] = _arc.Job_ActivityOldID_set
__swig_getmethods__["ActivityOldID"] = _arc.Job_ActivityOldID_get
if _newclass:ActivityOldID = _swig_property(_arc.Job_ActivityOldID_get, _arc.Job_ActivityOldID_set)
__swig_setmethods__["LocalInputFiles"] = _arc.Job_LocalInputFiles_set
__swig_getmethods__["LocalInputFiles"] = _arc.Job_LocalInputFiles_get
if _newclass:LocalInputFiles = _swig_property(_arc.Job_LocalInputFiles_get, _arc.Job_LocalInputFiles_set)
__swig_setmethods__["VirtualMachine"] = _arc.Job_VirtualMachine_set
__swig_getmethods__["VirtualMachine"] = _arc.Job_VirtualMachine_get
if _newclass:VirtualMachine = _swig_property(_arc.Job_VirtualMachine_get, _arc.Job_VirtualMachine_set)
__swig_setmethods__["UsedCPUType"] = _arc.Job_UsedCPUType_set
__swig_getmethods__["UsedCPUType"] = _arc.Job_UsedCPUType_get
if _newclass:UsedCPUType = _swig_property(_arc.Job_UsedCPUType_get, _arc.Job_UsedCPUType_set)
__swig_setmethods__["UsedOSFamily"] = _arc.Job_UsedOSFamily_set
__swig_getmethods__["UsedOSFamily"] = _arc.Job_UsedOSFamily_get
if _newclass:UsedOSFamily = _swig_property(_arc.Job_UsedOSFamily_get, _arc.Job_UsedOSFamily_set)
__swig_setmethods__["UsedPlatform"] = _arc.Job_UsedPlatform_set
__swig_getmethods__["UsedPlatform"] = _arc.Job_UsedPlatform_get
if _newclass:UsedPlatform = _swig_property(_arc.Job_UsedPlatform_get, _arc.Job_UsedPlatform_set)
def Print(self, *args):
"""
void Arc::Job::Print(bool
longlist) const
DEPRECATED: Print the Job information to std::cout.
This method is DEPRECATED, use the SaveToStream method instead. Method
to print the Job attributes to std::cout
Parameters:
-----------
longlist: is boolean for long listing (more details).
See: SaveToStream
"""
return _arc.Job_Print(self, *args)
def SaveToStream(self, *args):
"""
void
Arc::Job::SaveToStream(std::ostream &out, bool longlist) const
Write job information to a std::ostream object.
This method will write job information to the passed std::ostream
object. The longlist boolean specifies whether more (true) or less
(false) information should be printed.
Parameters:
-----------
out: is the std::ostream object to print the attributes to.
longlist: is a boolean for switching on long listing (more details).
"""
return _arc.Job_SaveToStream(self, *args)
def __eq__(self, *args): return _arc.Job___eq__(self, *args)
def ToXML(self, *args):
"""
void Arc::Job::ToXML(XMLNode
job) const
Add job information to a XMLNode.
Child nodes of GLUE ComputingActivity type containing job information
of this object will be added to the passed XMLNode.
Parameters:
-----------
job: is the XMLNode to add job information to in form of GLUE2
ComputingActivity type child nodes.
See: operator=
"""
return _arc.Job_ToXML(self, *args)
__swig_getmethods__["CompareJobID"] = lambda x: _arc.Job_CompareJobID
if _newclass:CompareJobID = staticmethod(_arc.Job_CompareJobID)
__swig_getmethods__["CompareSubmissionTime"] = lambda x: _arc.Job_CompareSubmissionTime
if _newclass:CompareSubmissionTime = staticmethod(_arc.Job_CompareSubmissionTime)
__swig_getmethods__["CompareJobName"] = lambda x: _arc.Job_CompareJobName
if _newclass:CompareJobName = staticmethod(_arc.Job_CompareJobName)
__swig_getmethods__["ReadAllJobsFromFile"] = lambda x: _arc.Job_ReadAllJobsFromFile
if _newclass:ReadAllJobsFromFile = staticmethod(_arc.Job_ReadAllJobsFromFile)
__swig_getmethods__["WriteJobsToTruncatedFile"] = lambda x: _arc.Job_WriteJobsToTruncatedFile
if _newclass:WriteJobsToTruncatedFile = staticmethod(_arc.Job_WriteJobsToTruncatedFile)
__swig_getmethods__["WriteJobsToFile"] = lambda x: _arc.Job_WriteJobsToFile
if _newclass:WriteJobsToFile = staticmethod(_arc.Job_WriteJobsToFile)
__swig_getmethods__["RemoveJobsFromFile"] = lambda x: _arc.Job_RemoveJobsFromFile
if _newclass:RemoveJobsFromFile = staticmethod(_arc.Job_RemoveJobsFromFile)
__swig_getmethods__["ReadJobIDsFromFile"] = lambda x: _arc.Job_ReadJobIDsFromFile
if _newclass:ReadJobIDsFromFile = staticmethod(_arc.Job_ReadJobIDsFromFile)
__swig_getmethods__["WriteJobIDToFile"] = lambda x: _arc.Job_WriteJobIDToFile
if _newclass:WriteJobIDToFile = staticmethod(_arc.Job_WriteJobIDToFile)
__swig_getmethods__["WriteJobIDsToFile"] = lambda x: _arc.Job_WriteJobIDsToFile
if _newclass:WriteJobIDsToFile = staticmethod(_arc.Job_WriteJobIDsToFile)
Job_swigregister = _arc.Job_swigregister
Job_swigregister(Job)
def Job_CompareJobID(*args):
return _arc.Job_CompareJobID(*args)
Job_CompareJobID = _arc.Job_CompareJobID
def Job_CompareSubmissionTime(*args):
return _arc.Job_CompareSubmissionTime(*args)
Job_CompareSubmissionTime = _arc.Job_CompareSubmissionTime
def Job_CompareJobName(*args):
return _arc.Job_CompareJobName(*args)
Job_CompareJobName = _arc.Job_CompareJobName
def Job_ReadAllJobsFromFile(*args):
return _arc.Job_ReadAllJobsFromFile(*args)
Job_ReadAllJobsFromFile = _arc.Job_ReadAllJobsFromFile
def Job_WriteJobsToTruncatedFile(*args):
return _arc.Job_WriteJobsToTruncatedFile(*args)
Job_WriteJobsToTruncatedFile = _arc.Job_WriteJobsToTruncatedFile
def Job_WriteJobsToFile(*args):
return _arc.Job_WriteJobsToFile(*args)
Job_WriteJobsToFile = _arc.Job_WriteJobsToFile
def Job_RemoveJobsFromFile(*args):
return _arc.Job_RemoveJobsFromFile(*args)
Job_RemoveJobsFromFile = _arc.Job_RemoveJobsFromFile
def Job_ReadJobIDsFromFile(*args):
return _arc.Job_ReadJobIDsFromFile(*args)
Job_ReadJobIDsFromFile = _arc.Job_ReadJobIDsFromFile
def Job_WriteJobIDToFile(*args):
return _arc.Job_WriteJobIDToFile(*args)
Job_WriteJobIDToFile = _arc.Job_WriteJobIDToFile
def Job_WriteJobIDsToFile(*args):
return _arc.Job_WriteJobIDsToFile(*args)
Job_WriteJobIDsToFile = _arc.Job_WriteJobIDsToFile
class TargetGenerator(_object):
"""
Target generation class
The TargetGenerator class is the umbrella class for resource discovery
and information retrieval (index servers and execution services). It
can also be used to discover user Grid jobs and detailed information.
The TargetGenerator loads TargetRetriever plugins (which implements
the actual information retrieval) from URL objects found in the
UserConfig object passed to its constructor using the custom
TargetRetrieverLoader.
C++ includes: TargetGenerator.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, TargetGenerator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, TargetGenerator, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::TargetGenerator::TargetGenerator(const UserConfig &usercfg,
unsigned int startRetrieval=0)
Create a TargetGenerator object.
Default constructor to create a TargeGenerator. The constructor reads
the computing and index service URL objects from the passed UserConfig
object using the UserConfig:GetSelectedServices method. From each URL
a matching specialized TargetRetriever plugin is loaded using the
TargetRetrieverLoader. If the second parameter, startRetrieval, is
specified, and matches bitwise either a value of 1, 2 or both,
retrieval of execution services, jobs or both will be initiated.
Parameters:
-----------
usercfg: is a reference to a UserConfig object from which endpoints
to execution and/or index services will be used. The object also hold
information about user credentials.
startRetrival: specifies whether retrival should be started directly.
It will be parsed bitwise. A value of 1 will start execution service
retrieval (RetrieveExecutionTargets), 2 jobs (RetrieveJobs), and 3
both, while 0 will not start retrieval at all. If not specified,
default is 0.
"""
this = _arc.new_TargetGenerator(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_TargetGenerator
__del__ = lambda self : None;
def GetTargets(self, *args):
"""
void
Arc::TargetGenerator::GetTargets(int targetType, int detailLevel)
DEPRECATED: Find available targets.
This method is DEPRECATED, use the RetrieveExecutionTargets() or
RetrieveJobs() method instead. Method to prepare a list of chosen
Targets with a specified detail level. Current implementation supports
finding computing elements ( ExecutionTarget) with full detail level
and jobs with limited detail level.
Parameters:
-----------
targetType: 0 = ExecutionTarget, 1 = Grid jobs
detailLevel:
See: RetrieveExecutionsTargets()
RetrieveJobs()
"""
return _arc.TargetGenerator_GetTargets(self, *args)
def RetrieveExecutionTargets(self):
"""
void Arc::TargetGenerator::RetrieveExecutionTargets()
Retrieve available execution services.
The endpoints specified in the UserConfig object passed to this object
will be used to retrieve information about execution services (
ExecutionTarget objects). The discovery and information retrieval of
targets is carried out in parallel threads to speed up the process. If
a endpoint is a index service each execution service registered will
be queried.
See: RetrieveJobs
GetExecutionTargets
"""
return _arc.TargetGenerator_RetrieveExecutionTargets(self)
def RetrieveJobs(self):
"""
void
Arc::TargetGenerator::RetrieveJobs()
Retrieve job information from execution services.
The endpoints specified in the UserConfig object passed to this object
will be used to retrieve job information from these endpoints. Only
jobs owned by the user which is identified by the credentials
specified in the passed UserConfig object will be considered
(exception being services which has no user authentification). If a
endpoint is a index service, each execution service registered will be
queried, and searched for job information.
See: RetrieveExecutionTargets
"""
return _arc.TargetGenerator_RetrieveJobs(self)
def GetExecutionTargets(self, *args):
"""
std::list<ExecutionTarget>&
Arc::TargetGenerator::GetExecutionTargets()
"""
return _arc.TargetGenerator_GetExecutionTargets(self, *args)
def ModifyFoundTargets(self):
"""
std::list<ExecutionTarget>& Arc::TargetGenerator::ModifyFoundTargets()
DEPRECATED: Return targets found by GetTargets.
This method is DEPRECATED, use the FoundTargets() instead. Method to
return the list of ExecutionTarget objects (currently only supported
Target type) found by the GetTarget method.
"""
return _arc.TargetGenerator_ModifyFoundTargets(self)
def FoundTargets(self):
"""
const
std::list<ExecutionTarget>& Arc::TargetGenerator::FoundTargets() const
DEPRECATED: Return targets found by GetTargets.
This method is DEPRECATED, use the FoundTargets() instead. Method to
return the list of ExecutionTarget objects (currently only supported
Target type) found by the GetTarget method.
"""
return _arc.TargetGenerator_FoundTargets(self)
def FoundJobs(self):
"""
const
std::list<XMLNode*>& Arc::TargetGenerator::FoundJobs() const
DEPRECATED: Return jobs found by GetTargets.
This method is DEPRECATED, use the GetFoundJobs method instead. Method
to return the list of jobs found by a call to the GetJobs method.
A list of jobs in XML format is returned.
"""
return _arc.TargetGenerator_FoundJobs(self)
def GetJobs(self):
"""
const
std::list<Job>& Arc::TargetGenerator::GetJobs() const
Return jobs retrieved by RetrieveJobs method.
Method to return the list of jobs found by a call to the GetJobs
method.
A list of the discovered jobs as Job objects is returned
See: RetrieveJobs
"""
return _arc.TargetGenerator_GetJobs(self)
def AddService(self, *args):
"""
bool
Arc::TargetGenerator::AddService(const std::string &Flavour, const URL
&url)
Add a new computing service to the foundServices list.
Method to add a new service to the list of foundServices in a thread
secure way. Compares the argument URL against the services returned by
UserConfig::GetRejectedServices and only allows to add the service if
not specifically rejected.
Parameters:
-----------
flavour: The flavour if the the computing service.
url: URL pointing to the information system of the computing
service.
"""
return _arc.TargetGenerator_AddService(self, *args)
def AddIndexServer(self, *args):
"""
bool
Arc::TargetGenerator::AddIndexServer(const std::string &Flavour, const
URL &url)
Add a new index server to the foundIndexServers list.
Method to add a new index server to the list of foundIndexServers in a
thread secure way. Compares the argument URL against the servers
returned by UserConfig::GetRejectedServices and only allows to add the
service if not specifically rejected.
Parameters:
-----------
flavour: The flavour if the the index server.
url: URL pointing to the index server.
"""
return _arc.TargetGenerator_AddIndexServer(self, *args)
def AddTarget(self, *args):
"""
void
Arc::TargetGenerator::AddTarget(const ExecutionTarget &target)
Add a new ExecutionTarget to the foundTargets list.
Method to add a new ExecutionTarget (usually discovered by a
TargetRetriever) to the list of foundTargets in a thread secure way.
Parameters:
-----------
target: ExecutionTarget to be added.
"""
return _arc.TargetGenerator_AddTarget(self, *args)
def AddJob(self, *args):
"""
void
Arc::TargetGenerator::AddJob(const Job &job)
Add a new Job to this object.
Method to add a new Job (usually discovered by a TargetRetriever) to
the internal list of jobs in a thread secure way.
Parameters:
-----------
job: Job describing the job.
See: AddJob(const Job&)
"""
return _arc.TargetGenerator_AddJob(self, *args)
def PrintTargetInfo(self, *args):
"""
void
Arc::TargetGenerator::PrintTargetInfo(bool longlist) const
DEPRECATED: Prints target information.
This method is DEPRECATED, use the SaveTargetInfoToStream method
instead. Method to print information of the found targets to
std::cout.
Parameters:
-----------
longlist: false for minimal information, true for detailed
information
See: SaveTargetInfoToStream
"""
return _arc.TargetGenerator_PrintTargetInfo(self, *args)
def SaveTargetInfoToStream(self, *args):
"""
void Arc::TargetGenerator::SaveTargetInfoToStream(std::ostream &out,
bool longlist) const
Prints target information.
Method to print information of the found targets to std::cout.
Parameters:
-----------
out: is a std::ostream object which to direct target informetion to.
longlist: false for minimal information, true for detailed
information
"""
return _arc.TargetGenerator_SaveTargetInfoToStream(self, *args)
TargetGenerator_swigregister = _arc.TargetGenerator_swigregister
TargetGenerator_swigregister(TargetGenerator)
class Broker(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Broker, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Broker, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
def GetBestTarget(self):
"""
const
ExecutionTarget* Arc::Broker::GetBestTarget()
Returns next target from the list of ExecutionTarget objects.
When first called this method will sort its list of ExecutionTarget
objects, which have been filled by the PreFilterTargets method, and
then the first target in the list will be returned.
If this is not the first call then the next target in the list is
simply returned.
If there are no targets in the list or the end of the target list have
been reached the NULL pointer is returned.
The pointer to the next ExecutionTarget in the list is returned.
"""
return _arc.Broker_GetBestTarget(self)
def Sort(self):
"""void Arc::Broker::Sort() """
return _arc.Broker_Sort(self)
def EndOfList(self):
"""
bool
Arc::Broker::EndOfList() const
"""
return _arc.Broker_EndOfList(self)
def Advance(self):
"""
void
Arc::Broker::Advance()
"""
return _arc.Broker_Advance(self)
def GetReference(self):
"""
const
ExecutionTarget*& Arc::Broker::GetReference()
"""
return _arc.Broker_GetReference(self)
def PreFilterTargets(self, *args):
"""
void
Arc::Broker::PreFilterTargets(std::list< ExecutionTarget > &targets,
const JobDescription &jobdesc, const std::list< URL >
&rejectTargets=std::list< URL >())
Filter ExecutionTarget objects according to attributes in
JobDescription object.
Each of the ExecutionTarget objects in the passed list will be matched
against attributes in the passed JobDescription object. For a list of
which attributes are considered for matchmaking see appendix B of the
libarcclient technical manual (NORDUGRID- TECH-20). If a
ExecutionTarget object matches the job description, it is added to the
internal list of ExecutionTarget objects. NOTE: The list of
ExecutionTarget objects must be available through out the scope of
this Broker object.
Parameters:
-----------
targets: A list of ExecutionTarget objects to be considered for
addition to the Broker.
jobdesc: JobDescription object holding requirements.
rejectTargets:
"""
return _arc.Broker_PreFilterTargets(self, *args)
def UseAllTargets(self, *args):
"""
void
Arc::Broker::UseAllTargets(std::list< ExecutionTarget > &targets)
"""
return _arc.Broker_UseAllTargets(self, *args)
def Test(self, *args):
"""
bool
Arc::Broker::Test(std::list< ExecutionTarget > &targets, const int
&testid, Job &job)
"""
return _arc.Broker_Test(self, *args)
def Submit(self, *args):
"""
bool
Arc::Broker::Submit(std::list< ExecutionTarget > &targets, const
JobDescription &jobdesc, Job &job, const std::list< URL >
&rejectTargets=std::list< URL >())
"""
return _arc.Broker_Submit(self, *args)
def RegisterJobsubmission(self):
"""
void
Arc::Broker::RegisterJobsubmission()
Register a job submission to the current target.
"""
return _arc.Broker_RegisterJobsubmission(self)
__swig_destroy__ = _arc.delete_Broker
__del__ = lambda self : None;
Broker_swigregister = _arc.Broker_swigregister
Broker_swigregister(Broker)
class BrokerLoader(_object):
"""
Class responsible for loading Broker plugins The Broker objects
returned by a BrokerLoader must not be used after the BrokerLoader
goes out of scope.
C++ includes: Broker.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, BrokerLoader, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, BrokerLoader, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::BrokerLoader::BrokerLoader()
Constructor Creates a new BrokerLoader.
"""
this = _arc.new_BrokerLoader()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_BrokerLoader
__del__ = lambda self : None;
def load(self, *args):
"""
Broker*
Arc::BrokerLoader::load(const std::string &name, const UserConfig
&usercfg)
Load a new Broker
Parameters:
-----------
name: The name of the Broker to load.
usercfg: The UserConfig object for the new Broker.
A pointer to the new Broker (NULL on error).
"""
return _arc.BrokerLoader_load(self, *args)
def GetBrokers(self):
"""
const
std::list<Broker*>& Arc::BrokerLoader::GetBrokers() const
Retrieve the list of loaded Brokers. A reference to the list of
Brokers.
"""
return _arc.BrokerLoader_GetBrokers(self)
BrokerLoader_swigregister = _arc.BrokerLoader_swigregister
BrokerLoader_swigregister(BrokerLoader)
class BrokerPluginArgument(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, BrokerPluginArgument, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, BrokerPluginArgument, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::BrokerPluginArgument::BrokerPluginArgument(const UserConfig
&usercfg)
"""
this = _arc.new_BrokerPluginArgument(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_BrokerPluginArgument
__del__ = lambda self : None;
BrokerPluginArgument_swigregister = _arc.BrokerPluginArgument_swigregister
BrokerPluginArgument_swigregister(BrokerPluginArgument)
class JobController(_object):
"""
Base class for the JobControllers.
The JobController is the base class for middleware specialized derived
classes. The JobController base class is also the implementer of all
public functionality that should be offered by the middleware specific
specializations. In other words all virtual functions of the
JobController are private. The initialization of a (specialized)
JobController object takes two steps. First the JobController
specialization for the required grid flavour must be loaded by the
JobControllerLoader, which sees to that the JobController receives
information about its Grid flavour and the local joblist file
containing information about all active jobs (flavour independent).
The next step is the filling of the JobController job pool (JobStore)
which is the pool of jobs that the JobController can manage. Must be
specialiced for each supported middleware flavour.
C++ includes: JobController.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobController, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobController, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_JobController
__del__ = lambda self : None;
def FillJobStore(self, *args):
"""
bool
Arc::JobController::FillJobStore(const Job &job)
Fill jobstore.
"""
return _arc.JobController_FillJobStore(self, *args)
def Get(self, *args):
"""
bool
Arc::JobController::Get(const std::list< std::string > &status, const
std::string &downloaddir, bool keep, bool usejobname, bool force=true)
"""
return _arc.JobController_Get(self, *args)
def Kill(self, *args):
"""
bool
Arc::JobController::Kill(const std::list< std::string > &status, bool
keep)
"""
return _arc.JobController_Kill(self, *args)
def Clean(self, *args):
"""
bool
Arc::JobController::Clean(const std::list< std::string > &status, bool
force)
"""
return _arc.JobController_Clean(self, *args)
def Cat(self, *args):
"""
bool
Arc::JobController::Cat(std::ostream &out, const std::list<
std::string > &status, const std::string &whichfile)
Catenate a output log-file to a std::ostream object.
The method catenates one of the log-files standard out or error, or
the job log file from the CE for each of the jobs contained in this
object. A file can only be catenated if the location relative to the
session directory are set in Job::StdOut, Job::StdErr and Job::LogDir
respectively, and if supported so in the specialised ACC module. If
the status parameter is non-empty only jobs having a job status
specified in this list will considered. The whichfile parameter
specifies what log-file to catenate. Possible values are "stdout",
"stderr" and "joblog" respectively specifying standard out, error
and job log file.
This method is not supposed to be overloaded by extending classes.
Parameters:
-----------
status: a list of strings representing states to be considered.
longlist: a boolean indicating whether verbose job information should
be printed.
This method always returns true.
See: SaveJobStatusToStream
GetJobInformation
JobState
"""
return _arc.JobController_Cat(self, *args)
def PrintJobStatus(self, *args):
"""
bool
Arc::JobController::PrintJobStatus(const std::list< std::string >
&status, bool longlist)
DEPRECATED: Print job status to std::cout.
This method is DEPRECATED, use the SaveJobStatusToStream instead.
This method is not supposed to be overloaded by extending classes.
Parameters:
-----------
status: a list of strings representing states to be considered.
longlist: a boolean indicating whether verbose job information should
be printed.
This method always returns true.
See: SaveJobStatusToStream
GetJobInformation
JobState
"""
return _arc.JobController_PrintJobStatus(self, *args)
def SaveJobStatusToStream(self, *args):
"""
bool Arc::JobController::SaveJobStatusToStream(std::ostream &out,
const std::list< std::string > &status, bool longlist)
Print job status to a std::ostream object.
The job status is printed to a std::ostream object when calling this
method. More specifically the Job::SaveToStream method is called on
each of the Job objects stored in this object, and the boolean
argument longlist is passed directly to the method indicating whether
verbose job status should be printed. The status argument is a list of
strings each representing a job state ( JobState) which is used to
indicate that only jobs with a job state in the list should be
considered. If the list status is empty all jobs will be considered.
This method is not supposed to be overloaded by extending classes.
Parameters:
-----------
out: a std::ostream object to direct job status information to.
status: a list of strings representing states to be considered.
longlist: a boolean indicating whether verbose job information should
be printed.
This method always returns true.
See: GetJobInformation
Job::SaveToStream
JobState
"""
return _arc.JobController_SaveJobStatusToStream(self, *args)
def Migrate(self, *args):
"""
bool
Arc::JobController::Migrate(TargetGenerator &targetGen, Broker
*broker, const UserConfig &usercfg, bool forcemigration, std::list<
URL > &migratedJobIDs)
Migrate job from cluster A to Cluster B.
Method to migrate the jobs contained in the jobstore.
Parameters:
-----------
targetGen: TargetGenerator with targets to migrate the job to.
broker: Broker to be used when selecting target.
forcemigration: boolean which specifies whether a migrated job should
persist if the new cluster does not succeed sending a kill/terminate
request for the job.
"""
return _arc.JobController_Migrate(self, *args)
def Renew(self, *args):
"""
bool
Arc::JobController::Renew(const std::list< std::string > &status)
"""
return _arc.JobController_Renew(self, *args)
def Resume(self, *args):
"""
bool
Arc::JobController::Resume(const std::list< std::string > &status)
"""
return _arc.JobController_Resume(self, *args)
def GetDownloadFiles(self, *args):
"""
std::list<std::string> Arc::JobController::GetDownloadFiles(const URL
&dir)
"""
return _arc.JobController_GetDownloadFiles(self, *args)
def ARCCopyFile(self, *args):
"""
bool
Arc::JobController::ARCCopyFile(const URL &src, const URL &dst)
"""
return _arc.JobController_ARCCopyFile(self, *args)
def GetJobDescriptions(self, *args):
"""
std::list<Job> Arc::JobController::GetJobDescriptions(const std::list<
std::string > &status, bool getlocal)
"""
return _arc.JobController_GetJobDescriptions(self, *args)
def FetchJobs(self, *args):
"""
void
Arc::JobController::FetchJobs(const std::list< std::string > &status,
std::vector< const Job * > &jobs)
"""
return _arc.JobController_FetchJobs(self, *args)
def GetJobs(self):
"""
const
std::list<Job>& Arc::JobController::GetJobs() const
"""
return _arc.JobController_GetJobs(self)
def GetJobInformation(self):
"""
virtual
void Arc::JobController::GetJobInformation()=0
"""
return _arc.JobController_GetJobInformation(self)
def GetJob(self, *args):
"""
virtual bool
Arc::JobController::GetJob(const Job &job, const std::string
&downloaddir, bool usejobname, bool force)=0
"""
return _arc.JobController_GetJob(self, *args)
def CleanJob(self, *args):
"""
virtual bool
Arc::JobController::CleanJob(const Job &job)=0
"""
return _arc.JobController_CleanJob(self, *args)
def CancelJob(self, *args):
"""
virtual bool
Arc::JobController::CancelJob(const Job &job)=0
"""
return _arc.JobController_CancelJob(self, *args)
def RenewJob(self, *args):
"""
virtual bool
Arc::JobController::RenewJob(const Job &job)=0
"""
return _arc.JobController_RenewJob(self, *args)
def ResumeJob(self, *args):
"""
virtual bool
Arc::JobController::ResumeJob(const Job &job)=0
"""
return _arc.JobController_ResumeJob(self, *args)
def GetFileUrlForJob(self, *args):
"""
virtual
URL Arc::JobController::GetFileUrlForJob(const Job &job, const
std::string &whichfile)=0
"""
return _arc.JobController_GetFileUrlForJob(self, *args)
def GetJobDescription(self, *args):
"""
virtual
bool Arc::JobController::GetJobDescription(const Job &job, std::string
&desc_str)=0
"""
return _arc.JobController_GetJobDescription(self, *args)
def CreateURL(self, *args):
"""
virtual URL
Arc::JobController::CreateURL(std::string service, ServiceType st)=0
"""
return _arc.JobController_CreateURL(self, *args)
JobController_swigregister = _arc.JobController_swigregister
JobController_swigregister(JobController)
class JobControllerLoader(_object):
"""
Class responsible for loading JobController plugins The JobController
objects returned by a JobControllerLoader must not be used after the
JobControllerLoader goes out of scope.
C++ includes: JobController.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobControllerLoader, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobControllerLoader, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::JobControllerLoader::JobControllerLoader()
Constructor Creates a new JobControllerLoader.
"""
this = _arc.new_JobControllerLoader()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_JobControllerLoader
__del__ = lambda self : None;
def load(self, *args):
"""
JobController*
Arc::JobControllerLoader::load(const std::string &name, const
UserConfig &usercfg)
Load a new JobController
Parameters:
-----------
name: The name of the JobController to load.
usercfg: The UserConfig object for the new JobController.
A pointer to the new JobController (NULL on error).
"""
return _arc.JobControllerLoader_load(self, *args)
def GetJobControllers(self):
"""
const std::list<JobController*>&
Arc::JobControllerLoader::GetJobControllers() const
Retrieve the list of loaded JobControllers. A reference to the list of
JobControllers.
"""
return _arc.JobControllerLoader_GetJobControllers(self)
JobControllerLoader_swigregister = _arc.JobControllerLoader_swigregister
JobControllerLoader_swigregister(JobControllerLoader)
class JobControllerPluginArgument(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobControllerPluginArgument, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobControllerPluginArgument, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::JobControllerPluginArgument::JobControllerPluginArgument(const
UserConfig &usercfg)
"""
this = _arc.new_JobControllerPluginArgument(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_JobControllerPluginArgument
__del__ = lambda self : None;
JobControllerPluginArgument_swigregister = _arc.JobControllerPluginArgument_swigregister
JobControllerPluginArgument_swigregister(JobControllerPluginArgument)
class JobIdentificationType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobIdentificationType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobIdentificationType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::JobIdentificationType::JobIdentificationType() """
this = _arc.new_JobIdentificationType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["JobName"] = _arc.JobIdentificationType_JobName_set
__swig_getmethods__["JobName"] = _arc.JobIdentificationType_JobName_get
if _newclass:JobName = _swig_property(_arc.JobIdentificationType_JobName_get, _arc.JobIdentificationType_JobName_set)
__swig_setmethods__["Description"] = _arc.JobIdentificationType_Description_set
__swig_getmethods__["Description"] = _arc.JobIdentificationType_Description_get
if _newclass:Description = _swig_property(_arc.JobIdentificationType_Description_get, _arc.JobIdentificationType_Description_set)
__swig_setmethods__["JobVOName"] = _arc.JobIdentificationType_JobVOName_set
__swig_getmethods__["JobVOName"] = _arc.JobIdentificationType_JobVOName_get
if _newclass:JobVOName = _swig_property(_arc.JobIdentificationType_JobVOName_get, _arc.JobIdentificationType_JobVOName_set)
__swig_setmethods__["UserTag"] = _arc.JobIdentificationType_UserTag_set
__swig_getmethods__["UserTag"] = _arc.JobIdentificationType_UserTag_get
if _newclass:UserTag = _swig_property(_arc.JobIdentificationType_UserTag_get, _arc.JobIdentificationType_UserTag_set)
__swig_setmethods__["ActivityOldId"] = _arc.JobIdentificationType_ActivityOldId_set
__swig_getmethods__["ActivityOldId"] = _arc.JobIdentificationType_ActivityOldId_get
if _newclass:ActivityOldId = _swig_property(_arc.JobIdentificationType_ActivityOldId_get, _arc.JobIdentificationType_ActivityOldId_set)
__swig_destroy__ = _arc.delete_JobIdentificationType
__del__ = lambda self : None;
JobIdentificationType_swigregister = _arc.JobIdentificationType_swigregister
JobIdentificationType_swigregister(JobIdentificationType)
class ExecutableType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ExecutableType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ExecutableType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::ExecutableType::ExecutableType() """
this = _arc.new_ExecutableType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["Name"] = _arc.ExecutableType_Name_set
__swig_getmethods__["Name"] = _arc.ExecutableType_Name_get
if _newclass:Name = _swig_property(_arc.ExecutableType_Name_get, _arc.ExecutableType_Name_set)
__swig_setmethods__["Argument"] = _arc.ExecutableType_Argument_set
__swig_getmethods__["Argument"] = _arc.ExecutableType_Argument_get
if _newclass:Argument = _swig_property(_arc.ExecutableType_Argument_get, _arc.ExecutableType_Argument_set)
__swig_destroy__ = _arc.delete_ExecutableType
__del__ = lambda self : None;
ExecutableType_swigregister = _arc.ExecutableType_swigregister
ExecutableType_swigregister(ExecutableType)
class NotificationType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, NotificationType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, NotificationType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::NotificationType::NotificationType() """
this = _arc.new_NotificationType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["Email"] = _arc.NotificationType_Email_set
__swig_getmethods__["Email"] = _arc.NotificationType_Email_get
if _newclass:Email = _swig_property(_arc.NotificationType_Email_get, _arc.NotificationType_Email_set)
__swig_setmethods__["States"] = _arc.NotificationType_States_set
__swig_getmethods__["States"] = _arc.NotificationType_States_get
if _newclass:States = _swig_property(_arc.NotificationType_States_get, _arc.NotificationType_States_set)
__swig_destroy__ = _arc.delete_NotificationType
__del__ = lambda self : None;
NotificationType_swigregister = _arc.NotificationType_swigregister
NotificationType_swigregister(NotificationType)
class ApplicationType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ApplicationType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ApplicationType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::ApplicationType::ApplicationType() """
this = _arc.new_ApplicationType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["Executable"] = _arc.ApplicationType_Executable_set
__swig_getmethods__["Executable"] = _arc.ApplicationType_Executable_get
if _newclass:Executable = _swig_property(_arc.ApplicationType_Executable_get, _arc.ApplicationType_Executable_set)
__swig_setmethods__["Input"] = _arc.ApplicationType_Input_set
__swig_getmethods__["Input"] = _arc.ApplicationType_Input_get
if _newclass:Input = _swig_property(_arc.ApplicationType_Input_get, _arc.ApplicationType_Input_set)
__swig_setmethods__["Output"] = _arc.ApplicationType_Output_set
__swig_getmethods__["Output"] = _arc.ApplicationType_Output_get
if _newclass:Output = _swig_property(_arc.ApplicationType_Output_get, _arc.ApplicationType_Output_set)
__swig_setmethods__["Error"] = _arc.ApplicationType_Error_set
__swig_getmethods__["Error"] = _arc.ApplicationType_Error_get
if _newclass:Error = _swig_property(_arc.ApplicationType_Error_get, _arc.ApplicationType_Error_set)
__swig_setmethods__["Environment"] = _arc.ApplicationType_Environment_set
__swig_getmethods__["Environment"] = _arc.ApplicationType_Environment_get
if _newclass:Environment = _swig_property(_arc.ApplicationType_Environment_get, _arc.ApplicationType_Environment_set)
__swig_setmethods__["Prologue"] = _arc.ApplicationType_Prologue_set
__swig_getmethods__["Prologue"] = _arc.ApplicationType_Prologue_get
if _newclass:Prologue = _swig_property(_arc.ApplicationType_Prologue_get, _arc.ApplicationType_Prologue_set)
__swig_setmethods__["Epilogue"] = _arc.ApplicationType_Epilogue_set
__swig_getmethods__["Epilogue"] = _arc.ApplicationType_Epilogue_get
if _newclass:Epilogue = _swig_property(_arc.ApplicationType_Epilogue_get, _arc.ApplicationType_Epilogue_set)
__swig_setmethods__["LogDir"] = _arc.ApplicationType_LogDir_set
__swig_getmethods__["LogDir"] = _arc.ApplicationType_LogDir_get
if _newclass:LogDir = _swig_property(_arc.ApplicationType_LogDir_get, _arc.ApplicationType_LogDir_set)
__swig_setmethods__["RemoteLogging"] = _arc.ApplicationType_RemoteLogging_set
__swig_getmethods__["RemoteLogging"] = _arc.ApplicationType_RemoteLogging_get
if _newclass:RemoteLogging = _swig_property(_arc.ApplicationType_RemoteLogging_get, _arc.ApplicationType_RemoteLogging_set)
__swig_setmethods__["Rerun"] = _arc.ApplicationType_Rerun_set
__swig_getmethods__["Rerun"] = _arc.ApplicationType_Rerun_get
if _newclass:Rerun = _swig_property(_arc.ApplicationType_Rerun_get, _arc.ApplicationType_Rerun_set)
__swig_setmethods__["ExpiryTime"] = _arc.ApplicationType_ExpiryTime_set
__swig_getmethods__["ExpiryTime"] = _arc.ApplicationType_ExpiryTime_get
if _newclass:ExpiryTime = _swig_property(_arc.ApplicationType_ExpiryTime_get, _arc.ApplicationType_ExpiryTime_set)
__swig_setmethods__["ProcessingStartTime"] = _arc.ApplicationType_ProcessingStartTime_set
__swig_getmethods__["ProcessingStartTime"] = _arc.ApplicationType_ProcessingStartTime_get
if _newclass:ProcessingStartTime = _swig_property(_arc.ApplicationType_ProcessingStartTime_get, _arc.ApplicationType_ProcessingStartTime_set)
__swig_setmethods__["Priority"] = _arc.ApplicationType_Priority_set
__swig_getmethods__["Priority"] = _arc.ApplicationType_Priority_get
if _newclass:Priority = _swig_property(_arc.ApplicationType_Priority_get, _arc.ApplicationType_Priority_set)
__swig_setmethods__["Notification"] = _arc.ApplicationType_Notification_set
__swig_getmethods__["Notification"] = _arc.ApplicationType_Notification_get
if _newclass:Notification = _swig_property(_arc.ApplicationType_Notification_get, _arc.ApplicationType_Notification_set)
__swig_setmethods__["CredentialService"] = _arc.ApplicationType_CredentialService_set
__swig_getmethods__["CredentialService"] = _arc.ApplicationType_CredentialService_get
if _newclass:CredentialService = _swig_property(_arc.ApplicationType_CredentialService_get, _arc.ApplicationType_CredentialService_set)
__swig_setmethods__["AccessControl"] = _arc.ApplicationType_AccessControl_set
__swig_getmethods__["AccessControl"] = _arc.ApplicationType_AccessControl_get
if _newclass:AccessControl = _swig_property(_arc.ApplicationType_AccessControl_get, _arc.ApplicationType_AccessControl_set)
__swig_setmethods__["DryRun"] = _arc.ApplicationType_DryRun_set
__swig_getmethods__["DryRun"] = _arc.ApplicationType_DryRun_get
if _newclass:DryRun = _swig_property(_arc.ApplicationType_DryRun_get, _arc.ApplicationType_DryRun_set)
__swig_destroy__ = _arc.delete_ApplicationType
__del__ = lambda self : None;
ApplicationType_swigregister = _arc.ApplicationType_swigregister
ApplicationType_swigregister(ApplicationType)
class ResourceSlotType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ResourceSlotType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ResourceSlotType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::ResourceSlotType::ResourceSlotType() """
this = _arc.new_ResourceSlotType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["NumberOfSlots"] = _arc.ResourceSlotType_NumberOfSlots_set
__swig_getmethods__["NumberOfSlots"] = _arc.ResourceSlotType_NumberOfSlots_get
if _newclass:NumberOfSlots = _swig_property(_arc.ResourceSlotType_NumberOfSlots_get, _arc.ResourceSlotType_NumberOfSlots_set)
__swig_setmethods__["ProcessPerHost"] = _arc.ResourceSlotType_ProcessPerHost_set
__swig_getmethods__["ProcessPerHost"] = _arc.ResourceSlotType_ProcessPerHost_get
if _newclass:ProcessPerHost = _swig_property(_arc.ResourceSlotType_ProcessPerHost_get, _arc.ResourceSlotType_ProcessPerHost_set)
__swig_setmethods__["ThreadsPerProcesses"] = _arc.ResourceSlotType_ThreadsPerProcesses_set
__swig_getmethods__["ThreadsPerProcesses"] = _arc.ResourceSlotType_ThreadsPerProcesses_get
if _newclass:ThreadsPerProcesses = _swig_property(_arc.ResourceSlotType_ThreadsPerProcesses_get, _arc.ResourceSlotType_ThreadsPerProcesses_set)
__swig_setmethods__["SPMDVariation"] = _arc.ResourceSlotType_SPMDVariation_set
__swig_getmethods__["SPMDVariation"] = _arc.ResourceSlotType_SPMDVariation_get
if _newclass:SPMDVariation = _swig_property(_arc.ResourceSlotType_SPMDVariation_get, _arc.ResourceSlotType_SPMDVariation_set)
__swig_destroy__ = _arc.delete_ResourceSlotType
__del__ = lambda self : None;
ResourceSlotType_swigregister = _arc.ResourceSlotType_swigregister
ResourceSlotType_swigregister(ResourceSlotType)
class DiskSpaceRequirementType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DiskSpaceRequirementType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DiskSpaceRequirementType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::DiskSpaceRequirementType::DiskSpaceRequirementType() """
this = _arc.new_DiskSpaceRequirementType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["DiskSpace"] = _arc.DiskSpaceRequirementType_DiskSpace_set
__swig_getmethods__["DiskSpace"] = _arc.DiskSpaceRequirementType_DiskSpace_get
if _newclass:DiskSpace = _swig_property(_arc.DiskSpaceRequirementType_DiskSpace_get, _arc.DiskSpaceRequirementType_DiskSpace_set)
__swig_setmethods__["CacheDiskSpace"] = _arc.DiskSpaceRequirementType_CacheDiskSpace_set
__swig_getmethods__["CacheDiskSpace"] = _arc.DiskSpaceRequirementType_CacheDiskSpace_get
if _newclass:CacheDiskSpace = _swig_property(_arc.DiskSpaceRequirementType_CacheDiskSpace_get, _arc.DiskSpaceRequirementType_CacheDiskSpace_set)
__swig_setmethods__["SessionDiskSpace"] = _arc.DiskSpaceRequirementType_SessionDiskSpace_set
__swig_getmethods__["SessionDiskSpace"] = _arc.DiskSpaceRequirementType_SessionDiskSpace_get
if _newclass:SessionDiskSpace = _swig_property(_arc.DiskSpaceRequirementType_SessionDiskSpace_get, _arc.DiskSpaceRequirementType_SessionDiskSpace_set)
__swig_destroy__ = _arc.delete_DiskSpaceRequirementType
__del__ = lambda self : None;
DiskSpaceRequirementType_swigregister = _arc.DiskSpaceRequirementType_swigregister
DiskSpaceRequirementType_swigregister(DiskSpaceRequirementType)
SDAM_NONE = _arc.SDAM_NONE
SDAM_RO = _arc.SDAM_RO
SDAM_RW = _arc.SDAM_RW
NAT_NONE = _arc.NAT_NONE
NAT_INBOUND = _arc.NAT_INBOUND
NAT_OUTBOUND = _arc.NAT_OUTBOUND
NAT_INOUTBOUND = _arc.NAT_INOUTBOUND
class ResourcesType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ResourcesType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ResourcesType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::ResourcesType::ResourcesType() """
this = _arc.new_ResourcesType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["OperatingSystem"] = _arc.ResourcesType_OperatingSystem_set
__swig_getmethods__["OperatingSystem"] = _arc.ResourcesType_OperatingSystem_get
if _newclass:OperatingSystem = _swig_property(_arc.ResourcesType_OperatingSystem_get, _arc.ResourcesType_OperatingSystem_set)
__swig_setmethods__["Platform"] = _arc.ResourcesType_Platform_set
__swig_getmethods__["Platform"] = _arc.ResourcesType_Platform_get
if _newclass:Platform = _swig_property(_arc.ResourcesType_Platform_get, _arc.ResourcesType_Platform_set)
__swig_setmethods__["NetworkInfo"] = _arc.ResourcesType_NetworkInfo_set
__swig_getmethods__["NetworkInfo"] = _arc.ResourcesType_NetworkInfo_get
if _newclass:NetworkInfo = _swig_property(_arc.ResourcesType_NetworkInfo_get, _arc.ResourcesType_NetworkInfo_set)
__swig_setmethods__["IndividualPhysicalMemory"] = _arc.ResourcesType_IndividualPhysicalMemory_set
__swig_getmethods__["IndividualPhysicalMemory"] = _arc.ResourcesType_IndividualPhysicalMemory_get
if _newclass:IndividualPhysicalMemory = _swig_property(_arc.ResourcesType_IndividualPhysicalMemory_get, _arc.ResourcesType_IndividualPhysicalMemory_set)
__swig_setmethods__["IndividualVirtualMemory"] = _arc.ResourcesType_IndividualVirtualMemory_set
__swig_getmethods__["IndividualVirtualMemory"] = _arc.ResourcesType_IndividualVirtualMemory_get
if _newclass:IndividualVirtualMemory = _swig_property(_arc.ResourcesType_IndividualVirtualMemory_get, _arc.ResourcesType_IndividualVirtualMemory_set)
__swig_setmethods__["DiskSpaceRequirement"] = _arc.ResourcesType_DiskSpaceRequirement_set
__swig_getmethods__["DiskSpaceRequirement"] = _arc.ResourcesType_DiskSpaceRequirement_get
if _newclass:DiskSpaceRequirement = _swig_property(_arc.ResourcesType_DiskSpaceRequirement_get, _arc.ResourcesType_DiskSpaceRequirement_set)
__swig_setmethods__["SessionLifeTime"] = _arc.ResourcesType_SessionLifeTime_set
__swig_getmethods__["SessionLifeTime"] = _arc.ResourcesType_SessionLifeTime_get
if _newclass:SessionLifeTime = _swig_property(_arc.ResourcesType_SessionLifeTime_get, _arc.ResourcesType_SessionLifeTime_set)
__swig_setmethods__["SessionDirectoryAccess"] = _arc.ResourcesType_SessionDirectoryAccess_set
__swig_getmethods__["SessionDirectoryAccess"] = _arc.ResourcesType_SessionDirectoryAccess_get
if _newclass:SessionDirectoryAccess = _swig_property(_arc.ResourcesType_SessionDirectoryAccess_get, _arc.ResourcesType_SessionDirectoryAccess_set)
__swig_setmethods__["IndividualCPUTime"] = _arc.ResourcesType_IndividualCPUTime_set
__swig_getmethods__["IndividualCPUTime"] = _arc.ResourcesType_IndividualCPUTime_get
if _newclass:IndividualCPUTime = _swig_property(_arc.ResourcesType_IndividualCPUTime_get, _arc.ResourcesType_IndividualCPUTime_set)
__swig_setmethods__["TotalCPUTime"] = _arc.ResourcesType_TotalCPUTime_set
__swig_getmethods__["TotalCPUTime"] = _arc.ResourcesType_TotalCPUTime_get
if _newclass:TotalCPUTime = _swig_property(_arc.ResourcesType_TotalCPUTime_get, _arc.ResourcesType_TotalCPUTime_set)
__swig_setmethods__["IndividualWallTime"] = _arc.ResourcesType_IndividualWallTime_set
__swig_getmethods__["IndividualWallTime"] = _arc.ResourcesType_IndividualWallTime_get
if _newclass:IndividualWallTime = _swig_property(_arc.ResourcesType_IndividualWallTime_get, _arc.ResourcesType_IndividualWallTime_set)
__swig_setmethods__["TotalWallTime"] = _arc.ResourcesType_TotalWallTime_set
__swig_getmethods__["TotalWallTime"] = _arc.ResourcesType_TotalWallTime_get
if _newclass:TotalWallTime = _swig_property(_arc.ResourcesType_TotalWallTime_get, _arc.ResourcesType_TotalWallTime_set)
__swig_setmethods__["NodeAccess"] = _arc.ResourcesType_NodeAccess_set
__swig_getmethods__["NodeAccess"] = _arc.ResourcesType_NodeAccess_get
if _newclass:NodeAccess = _swig_property(_arc.ResourcesType_NodeAccess_get, _arc.ResourcesType_NodeAccess_set)
__swig_setmethods__["CEType"] = _arc.ResourcesType_CEType_set
__swig_getmethods__["CEType"] = _arc.ResourcesType_CEType_get
if _newclass:CEType = _swig_property(_arc.ResourcesType_CEType_get, _arc.ResourcesType_CEType_set)
__swig_setmethods__["SlotRequirement"] = _arc.ResourcesType_SlotRequirement_set
__swig_getmethods__["SlotRequirement"] = _arc.ResourcesType_SlotRequirement_get
if _newclass:SlotRequirement = _swig_property(_arc.ResourcesType_SlotRequirement_get, _arc.ResourcesType_SlotRequirement_set)
__swig_setmethods__["QueueName"] = _arc.ResourcesType_QueueName_set
__swig_getmethods__["QueueName"] = _arc.ResourcesType_QueueName_get
if _newclass:QueueName = _swig_property(_arc.ResourcesType_QueueName_get, _arc.ResourcesType_QueueName_set)
__swig_setmethods__["RunTimeEnvironment"] = _arc.ResourcesType_RunTimeEnvironment_set
__swig_getmethods__["RunTimeEnvironment"] = _arc.ResourcesType_RunTimeEnvironment_get
if _newclass:RunTimeEnvironment = _swig_property(_arc.ResourcesType_RunTimeEnvironment_get, _arc.ResourcesType_RunTimeEnvironment_set)
__swig_destroy__ = _arc.delete_ResourcesType
__del__ = lambda self : None;
ResourcesType_swigregister = _arc.ResourcesType_swigregister
ResourcesType_swigregister(ResourcesType)
class FileType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, FileType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, FileType, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::FileType::FileType() """
this = _arc.new_FileType()
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["Name"] = _arc.FileType_Name_set
__swig_getmethods__["Name"] = _arc.FileType_Name_get
if _newclass:Name = _swig_property(_arc.FileType_Name_get, _arc.FileType_Name_set)
__swig_setmethods__["KeepData"] = _arc.FileType_KeepData_set
__swig_getmethods__["KeepData"] = _arc.FileType_KeepData_get
if _newclass:KeepData = _swig_property(_arc.FileType_KeepData_get, _arc.FileType_KeepData_set)
__swig_setmethods__["IsExecutable"] = _arc.FileType_IsExecutable_set
__swig_getmethods__["IsExecutable"] = _arc.FileType_IsExecutable_get
if _newclass:IsExecutable = _swig_property(_arc.FileType_IsExecutable_get, _arc.FileType_IsExecutable_set)
__swig_setmethods__["Source"] = _arc.FileType_Source_set
__swig_getmethods__["Source"] = _arc.FileType_Source_get
if _newclass:Source = _swig_property(_arc.FileType_Source_get, _arc.FileType_Source_set)
__swig_setmethods__["Target"] = _arc.FileType_Target_set
__swig_getmethods__["Target"] = _arc.FileType_Target_get
if _newclass:Target = _swig_property(_arc.FileType_Target_get, _arc.FileType_Target_set)
__swig_setmethods__["FileSize"] = _arc.FileType_FileSize_set
__swig_getmethods__["FileSize"] = _arc.FileType_FileSize_get
if _newclass:FileSize = _swig_property(_arc.FileType_FileSize_get, _arc.FileType_FileSize_set)
__swig_setmethods__["Checksum"] = _arc.FileType_Checksum_set
__swig_getmethods__["Checksum"] = _arc.FileType_Checksum_get
if _newclass:Checksum = _swig_property(_arc.FileType_Checksum_get, _arc.FileType_Checksum_set)
__swig_destroy__ = _arc.delete_FileType
__del__ = lambda self : None;
FileType_swigregister = _arc.FileType_swigregister
FileType_swigregister(FileType)
class JobDescription(_object):
"""
The JobDescription class is the internal representation of a job
description in the ARC- lib. It is structured into a number of other
classes/objects which should strictly follow the description given in
the job description document
<http://svn.nordugrid.org/trac/nordugrid/browser/arc1/trunk/doc/tech_doc/client/job_description.odt>.
The class consist of a parsing method JobDescription::Parse which
tries to parse the passed source using a number of different parsers.
The parser method is complemented by the JobDescription::UnParse
method, a method to generate a job description document in one of the
supported formats. Additionally the internal representation is
contained in public members which makes it directly accessible and
modifiable from outside the scope of the class.
C++ includes: JobDescription.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobDescription, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobDescription, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""Arc::JobDescription::JobDescription(const long int &ptraddr) """
this = _arc.new_JobDescription(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_JobDescription
__del__ = lambda self : None;
def AddAlternative(self, *args):
"""
void
Arc::JobDescription::AddAlternative(const JobDescription &j)
"""
return _arc.JobDescription_AddAlternative(self, *args)
def HasAlternatives(self):
"""
bool
Arc::JobDescription::HasAlternatives() const
"""
return _arc.JobDescription_HasAlternatives(self)
def GetAlternatives(self, *args):
"""std::list<JobDescription>& Arc::JobDescription::GetAlternatives() """
return _arc.JobDescription_GetAlternatives(self, *args)
def GetAlternativesCopy(self):
"""
std::list<JobDescription> Arc::JobDescription::GetAlternativesCopy()
const
"""
return _arc.JobDescription_GetAlternativesCopy(self)
def UseAlternative(self):
"""
bool
Arc::JobDescription::UseAlternative()
"""
return _arc.JobDescription_UseAlternative(self)
def UseOriginal(self):
"""
void
Arc::JobDescription::UseOriginal()
"""
return _arc.JobDescription_UseOriginal(self)
def RemoveAlternatives(self):
"""
void
Arc::JobDescription::RemoveAlternatives()
"""
return _arc.JobDescription_RemoveAlternatives(self)
def __nonzero__(self):
return _arc.JobDescription___nonzero__(self)
__bool__ = __nonzero__
def UnParse(self, *args):
"""
bool
Arc::JobDescription::UnParse(std::string &product, std::string
language, const std::string &dialect="") const
Output contents in the specified language.
Parameters:
-----------
product:
language:
dialect:
"""
return _arc.JobDescription_UnParse(self, *args)
def GetSourceLanguage(self):
"""
const
std::string& Arc::JobDescription::GetSourceLanguage() const
Get input source language.
If this object was created by a JobDescriptionParser, then this method
returns a string which indicates the job description language of the
parsed source. If not created by a JobDescripionParser the string
returned is empty.
const std::string& source langauge of parsed input source.
"""
return _arc.JobDescription_GetSourceLanguage(self)
def Print(self, longlist = False):
"""
void
Arc::JobDescription::Print(bool longlist=false) const
DEPRECATED: Print all values to standard output.
This method is DEPRECATED, use the SaveToStream method instead.
Parameters:
-----------
longlist:
See: SaveToStream
"""
return _arc.JobDescription_Print(self, longlist)
def SaveToStream(self, *args):
"""
bool
Arc::JobDescription::SaveToStream(std::ostream &out, const std::string
&format) const
Print job description to a std::ostream object.
The job description will be written to the passed std::ostream object
out in the format indicated by the format parameter. The format
parameter should specify the format of one of the job description
languages supported by the library. Or by specifying the special
"user" or "userlong" format the job description will be written as
a attribute/value pair list with respectively less or more attributes.
The mote
true if writing the job description to the out object succeeds,
otherwise false.
Parameters:
-----------
out: a std::ostream reference specifying the ostream to write the job
description to.
format: specifies the format the job description should written in.
"""
return _arc.JobDescription_SaveToStream(self, *args)
__swig_setmethods__["Identification"] = _arc.JobDescription_Identification_set
__swig_getmethods__["Identification"] = _arc.JobDescription_Identification_get
if _newclass:Identification = _swig_property(_arc.JobDescription_Identification_get, _arc.JobDescription_Identification_set)
__swig_setmethods__["Application"] = _arc.JobDescription_Application_set
__swig_getmethods__["Application"] = _arc.JobDescription_Application_get
if _newclass:Application = _swig_property(_arc.JobDescription_Application_get, _arc.JobDescription_Application_set)
__swig_setmethods__["Resources"] = _arc.JobDescription_Resources_set
__swig_getmethods__["Resources"] = _arc.JobDescription_Resources_get
if _newclass:Resources = _swig_property(_arc.JobDescription_Resources_get, _arc.JobDescription_Resources_set)
__swig_setmethods__["Files"] = _arc.JobDescription_Files_set
__swig_getmethods__["Files"] = _arc.JobDescription_Files_get
if _newclass:Files = _swig_property(_arc.JobDescription_Files_get, _arc.JobDescription_Files_set)
__swig_setmethods__["OtherAttributes"] = _arc.JobDescription_OtherAttributes_set
__swig_getmethods__["OtherAttributes"] = _arc.JobDescription_OtherAttributes_get
if _newclass:OtherAttributes = _swig_property(_arc.JobDescription_OtherAttributes_get, _arc.JobDescription_OtherAttributes_set)
def Parse(self, *args):
"""
bool
Arc::JobDescription::Parse(const XMLNode &xmlSource)
DEPRECATED: Parse source string.
This method is deprecated, use the Parse(const std::string&,
std::list<JobDescription>&, const std::string&, const std::string&)
method instead.
"""
return _arc.JobDescription_Parse(self, *args)
JobDescription_swigregister = _arc.JobDescription_swigregister
JobDescription_swigregister(JobDescription)
class JobSupervisor(_object):
"""
% JobSupervisor class
The JobSupervisor class is tool for loading JobController plugins for
managing Grid jobs.
C++ includes: JobSupervisor.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, JobSupervisor, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, JobSupervisor, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::JobSupervisor::JobSupervisor(const UserConfig &usercfg, const
std::list< Job > &jobs=std::list< Job >())
Create a JobSupervisor.
The list of Job objects passed to the constructor will be managed by
this JobSupervisor, through the JobController class. It is important
that the Flavour member of each Job object is set and correspond to
the JobController plugin which are capable of managing that specific
job. The JobController plugin will be loaded using the
JobControllerLoader class, loading a plugin of type
"HED:JobController" and name specified by the Flavour member, and
the a reference to the UserConfig object usercfg will be passed to the
plugin. Additionally a reference to the UserConfig object usercfg will
be stored, thus usercfg must exist throughout the scope of the created
object. If the Flavour member of a Job object is unset, a VERBOSE log
message will be reported and that Job object will be ignored. If the
JobController plugin for a given Flavour cannot be loaded, a WARNING
log message will be reported and any Job object with that Flavour will
be ignored. If loading of a specific plugin failed, that plugin will
not be tried loaded for subsequent Job objects requiring that plugin.
Job objects, for which the corresponding JobController plugin loaded
successfully, will be added to that plugin using the
JobController::FillJobStore(const Job&) method.
Parameters:
-----------
usercfg: UserConfig object to pass to JobController plugins and to
use in member methods.
jobs: List of Job objects which will be managed by the created
object.
"""
this = _arc.new_JobSupervisor(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_JobSupervisor
__del__ = lambda self : None;
def AddJob(self, *args):
"""
bool
Arc::JobSupervisor::AddJob(const Job &job)
Add job.
Add Job object to this JobSupervisor for job management. The Job
object will be passed to the corresponding specialized JobController.
Parameters:
-----------
job: Job object to add for job management
true is returned if the passed Job object was added to the underlying
JobController, otherwise false is returned and a log message emitted
with the reason.
"""
return _arc.JobSupervisor_AddJob(self, *args)
def GetJobs(self):
"""
std::list<Job>
Arc::JobSupervisor::GetJobs() const
Get list of managed jobs.
The list of jobs managed by this JobSupervisor is returned when
calling this method.
list of Job objects managed by this JobSupervisor
"""
return _arc.JobSupervisor_GetJobs(self)
def Update(self):
"""
void
Arc::JobSupervisor::Update()
Update job information.
When invoking this method the job information for the jobs managed by
this JobSupervisor will be updated. Internally, for each loaded
JobController the JobController::GetJobInformation method will be
called, which will be responsible for updating job information.
"""
return _arc.JobSupervisor_Update(self)
def Get(self, *args):
"""
bool
Arc::JobSupervisor::Get(const std::list< std::string > &statusfilter,
const std::string &downloaddir, bool usejobname, bool force,
std::list< URL > &retrievedJobs)
Retrieve job output files.
This method retrieves output files of jobs managed by this
JobSupervisor.
Before identifying jobs for which to retrieve output files, the
JobController::GetJobInformation method is called for each loaded
JobController in order to retrieve the most up to date job
information. If an empty status-filter is specified, all jobs managed
by this JobSupervisor will be considered for retrieval, except jobs in
the undefined state (see JobState). If the status-filter is not empty,
then only jobs with a general or specific state (see JobState)
identical to any of the entries in the status-filter will be
considered, except jobs in the undefined state. Jobs in the state
JobState::DELETED and unfinished jobs (see JobState::IsFinished) will
also not be considered.
For each of the jobs considered for retrieval, the files will be
downloaded to a directory named either as the last part of the job ID
or the job name, which is determined by the 'usejobname' argument. The
download directories will be located in the directory specified by the
'downloaddir' argument, as either a relative or absolute path. If the
'force' argument is set to 'true', and a download directory for a
given job already exist it will be overwritten, otherwise files for
that job will not be downloaded. This method calls the
JobController::GetJob method in order to download jobs, and if a job
is successfully retrieved the job ID will be appended to the
'retrievedJobs' list. If all jobs are successfully retrieved this
method returns true, otherwise false.
Parameters:
-----------
statusfilter: list of job status used for filtering jobs.
downloaddir: specifies the path to in which job download directories
will be located.
usejobname: specifies whether to use the job name or job ID as
directory name to store job output files in.
force: indicates whether existing job directories should be
overwritten or not.
retrievedJobs: job IDs of successfully retrieved jobs will be
appended to this list.
See: JobController::GetJob.
true if all jobs are successfully retrieved, otherwise false.
"""
return _arc.JobSupervisor_Get(self, *args)
def Kill(self, *args):
"""
bool
Arc::JobSupervisor::Kill(const std::list< std::string > &statusfilter,
std::list< URL > &killedJobs)
Kill jobs.
This method kills jobs managed by this JobSupervisor.
Before identifying jobs to kill, the JobController::GetJobInformation
method is called for each loaded JobController in order to retrieve
the most up to date job information.
Since jobs in the JobState::DELETED, JobState::FINISHED,
JobState::KILLED or JobState::FAILED states is already in a terminal
state, a terminate action will not be send for those. Also no
terminate action will be send for jobs in the JobState::UNDEFINED
state, since job information is not available. If the status-filter is
non-empty, a terminate action will only be send to jobs with a general
or specific state (see JobState) identical to any of the entries in
the status-filter, excluding the states mentioned above.
For each job to be killed, the specialized JobController::CancelJob
method is called and is responsible for terminating the given job. If
the method fails to terminate a job, this method will return false,
otherwise true is returned. The job ID of successfully terminated jobs
will be appended to the passed killedJobs list.
Parameters:
-----------
statusfilter: list of job status used for filtering jobs.
killedJobs: list of URLs which to append job IDs of successfully
terminated jobs to.
See: JobController::CancelJob.
true if all jobs terminated successfully, otherwise false.
"""
return _arc.JobSupervisor_Kill(self, *args)
def Renew(self, *args):
"""
bool
Arc::JobSupervisor::Renew(const std::list< std::string >
&statusfilter, std::list< URL > &renewedJobs)
Renew job credentials.
This method renew credentials of the jobs managed by this
JobSupervisor.
Before identifying jobs for which to renew credentials, the
JobController::GetJobInformation method is called for each loaded
JobController in order to retrieve the most up to date job
information.
Since jobs in the JobState::DELETED, JobState::FINISHED or
JobState::KILLED states is in a terminal state credentials for those
jobs will not be renewed. Also jobs in the JobState::UNDEFINED state
will not get their credentials renewed, since job information is not
available. The JobState::FAILED state is also a terminal state, but
since jobs in this state can be restarted, credentials for such jobs
can be renewed. If the status-filter is non-empty, a renewal of
credentials will be done for jobs with a general or specific state
(see JobState) identical to any of the entries in the status-filter,
excluding the already filtered states as mentioned above.
For each job for which to renew credentials, the specialized
JobController::RenewJob method is called and is responsible for
renewing the credentials for the given job. If the method fails to
renew job credentials, this method will return false, otherwise true
is returned. The job ID of successfully renewed jobs will be appended
to the passed renewedJobs list.
Parameters:
-----------
statusfilter: list of job status used for filtering jobs.
renewedJobs: list of URLs which to append job IDs to, of jobs for
which credentials was successfully renewed.
See: JobController::RenewJob.
true if credentials for all jobs were successfully renewed, otherwise
false.
"""
return _arc.JobSupervisor_Renew(self, *args)
def Resume(self, *args):
"""
bool
Arc::JobSupervisor::Resume(const std::list< std::string >
&statusfilter, std::list< URL > &resumedJobs)
Resume job.
This method resumes jobs managed by this JobSupervisor.
Before identifying jobs to resume, the
JobController::GetJobInformation method is called for each loaded
JobController in order to retrieve the most up to date job
information.
Since jobs in the JobState::DELETED, JobState::FINISHED or
JobState::KILLED states is in a terminal state credentials for those
jobs will not be renewed. Also jobs in the JobState::UNDEFINED state
will not be resumed, since job information is not available. The
JobState::FAILED state is also a terminal state, but jobs in this
state are allowed to be restarted. If the status-filter is non-empty,
only jobs with a general or specific state (see JobState) identical to
any of the entries in the status-filter will be resumed, excluding the
already filtered states as mentioned above.
For each job to resume, the specialized JobController::ResumeJob
method is called and is responsible for resuming the particular job.
If the method fails to resume a job, this method will return false,
otherwise true is returned. The job ID of successfully resumed jobs
will be appended to the passed resumedJobs list.
Parameters:
-----------
statusfilter: list of job status used for filtering jobs.
resumeJobs: list of URLs which to append job IDs to, of jobs which
was successfully resumed.
See: JobController::ResumeJob.
true if all jobs were successfully resumed, otherwise false.
"""
return _arc.JobSupervisor_Resume(self, *args)
def Resubmit(self, *args):
"""
bool
Arc::JobSupervisor::Resubmit(const std::list< std::string >
&statusfilter, int destination, std::list< Job > &resubmittedJobs,
std::list< URL > ¬resubmitted)
Resubmit jobs.
Jobs managed by this JobSupervisor will be resubmitted when invoking
this method, that is the job description of a job will be tried
obtained, and if successful a new job will be submitted.
Before identifying jobs to be resubmitted, the
JobController::GetJobInformation method is called for each loaded
JobController in order to retrieve the most up to date job
information. If an empty status-filter is specified, all jobs managed
by this JobSupervisor will be considered for resubmission, except jobs
in the undefined state (see JobState). If the status-filter is not
empty, then only jobs with a general or specific state (see JobState)
identical to any of the entries in the status-filter will be
considered, except jobs in the undefined state. Jobs for which a job
description cannot be obtained and successfully parsed will not be
considered and an ERROR log message is reported, and the
IDFromEndpoint URL is appended to the notresubmitted list. Job
descriptions will be tried obtained either from Job object itself, or
fetching them remotely. Furthermore if a Job object has the
LocalInputFiles object set, then the checksum of each of the local
input files specified in that object (key) will be calculated and
verified to match the checksum LocalInputFiles object (value). If
checksums are not matching the job will be filtered, and an ERROR log
message is reported and the IDFromEndpoint URL is appended to the
notresubmitted list. If no job have been identified for resubmission,
false will be returned if ERRORs were reported, otherwise true is
returned.
The destination for jobs is partly determined by the destination
parameter. If a value of 1 is specified a job will only be targeted to
the execution service (ES) on which it reside. A value of 2 indicates
that a job should not be targeted to the ES it currently reside.
Specifying any other value will target any ES. The ESs which can be
targeted are those specified in the UserConfig object of this class,
as selected services. Before initiating any job submission, resource
discovery and broker loading is carried out using the TargetGenerator
and Broker classes, initialised by the UserConfig object of this
class. If Broker loading fails, or no ExecutionTargets are found, an
ERROR log message is reported and all IDFromEndpoint URLs for job
considered for resubmission will be appended to the notresubmitted
list and then false will be returned.
When the above checks have been carried out successfully, then the
Broker::Submit method will be invoked for each considered for
resubmission. If it fails the IDFromEndpoint URL for the job is
appended to the notresubmitted list, and an ERROR is reported. If
submission succeeds the new job represented by a Job object will be
appended to the resubmittedJobs list - it will not be added to this
JobSupervisor. The method returns false if ERRORs were reported
otherwise true is returned.
Parameters:
-----------
statusfilter: list of job status used for filtering jobs.
destination: specifies how target destination should be determined (1
= same target, 2 = not same, any other = any target).
resubmittedJobs: list of Job objects which resubmitted jobs will be
appended to.
notresubmitted: list of URL objects which the IDFromEndpoint URL will
be appended to.
false if any error is encountered, otherwise true.
"""
return _arc.JobSupervisor_Resubmit(self, *args)
def Migrate(self, *args):
"""
bool
Arc::JobSupervisor::Migrate(bool forcemigration, std::list< Job >
&migratedJobs, std::list< URL > ¬migrated)
Migrate jobs.
Jobs managed by this JobSupervisor will be migrated when invoking this
method, that is the job description of a job will be tried obtained,
and if successful a job migration request will be sent, based on that
job description.
Before identifying jobs to be migrated, the
JobController::GetJobInformation method is called for each loaded
JobController in order to retrieve the most up to date job
information. Only jobs for which the State member of the Job object
has the value JobState::QUEUEING, will be considered for migration.
Furthermore the job description must be obtained (either locally or
remote) and successfully parsed in order for a job to be migrated. If
the job description cannot be obtained or parsed an ERROR log message
is reported, and the IDFromEndpoint URL of the Job object is appended
to the notmigrated list. If no jobs have been identified for
migration, false will be returned in case ERRORs were reported,
otherwise true is returned.
The execution services which can be targeted for migration are those
specified in the UserConfig object of this class, as selected
services. Before initiating any job migration request, resource
discovery and broker* loading is carried out using the TargetGenerator
and Broker classes, initialised by the UserConfig object of this
class. If Broker loading fails, or no ExecutionTargets are found, an
ERROR log message is reported and all IDFromEndpoint URLs for job
considered for migration will be appended to the notmigrated list and
then false will be returned.
When the above checks have been carried out successfully, the
following is done for each job considered for migration. The
ActivityOldId member of the Identification member in the job
description will be set to that of the Job object, and the
IDFromEndpoint URL will be appended to ActivityOldId member of the job
description. After that the Broker object will be used to find a
suitable ExecutionTarget object, and if found a migrate request will
tried sent using the ExecutionTarget::Migrate method, passing the
UserConfig object of this class. The passed forcemigration boolean
indicates whether the migration request at the service side should
ignore failures in cancelling the existing queuing job. If the request
succeeds, the corresponding new Job object is appended to the
migratedJobs list. If no suitable ExecutionTarget objects are found an
ERROR log message is reported and the IDFromEndpoint URL of the Job
object is appended to the notmigrated list. When all jobs have been
processed, false is returned if any ERRORs were reported, otherwise
true.
Parameters:
-----------
forcemigration: indicates whether migration should succeed if service
fails to cancel the existing queuing job.
migratedJobs: list of Job objects which migrated jobs will be
appended to.
notmigrated: list of URL objects which the IDFromEndpoint URL will be
appended to.
false if any error is encountered, otherwise true.
"""
return _arc.JobSupervisor_Migrate(self, *args)
def Cancel(self, *args):
"""
std::list<URL>
Arc::JobSupervisor::Cancel(const std::list< URL > &jobids, std::list<
URL > ¬cancelled)
Cancel jobs.
This method will request cancellation of jobs, identified by their
IDFromEndpoint member, for which that URL is equal to any in the
jobids list. Only jobs corresponding to a Job object managed by this
JobSupervisor will be considered for cancellation. Job objects not in
a valid state (see JobState) will not be considered, and the
IDFromEndpoint URLs of those objects will be appended to the
notcancelled URL list. For jobs not in a finished state (see
JobState::IsFinished), the JobController::Cancel method will be
called, passing the corresponding Job object, in order to cancel the
job. If the JobController::Cancel call succeeds or if the job is in a
finished state the IDFromEndpoint URL will be appended to the list to
be returned. If the JobController::Cancel call fails the
IDFromEndpoint URL is appended to the notkilled URL list.
Note: If there is any URL in the jobids list for which there is no
corresponding Job object, then the size of the returned list plus the
size of the notcancelled list will not equal that of the jobids list.
Parameters:
-----------
jobids: List of Job::IDFromEndpoint URL objects for which a
corresponding job, managed by this JobSupervisor should be cancelled.
notcancelled: List of Job::IDFromEndpoint URL objects for which the
corresponding job were not cancelled.
The list of Job::IDFromEndpoint URL objects of successfully cancelled
or finished jobs is returned.
"""
return _arc.JobSupervisor_Cancel(self, *args)
def Clean(self, *args):
"""
std::list<URL>
Arc::JobSupervisor::Clean(const std::list< URL > &jobids, std::list<
URL > ¬cleaned)
Clean jobs.
This method will request cleaning of jobs, identified by their
IDFromEndpoint member, for which that URL is equal to any in the
jobids list. Only jobs corresponding to a Job object managed by this
JobSupervisor will be considered for cleaning. Job objects not in a
valid state (see JobState) will not be considered, and the
IDFromEndpoint URLs of those objects will be appended to the
notcleaned URL list, otherwise the JobController::Clean method will be
called, passing the corresponding Job object, in order to clean the
job. If that method fails the IDFromEndpoint URL of the Job object
will be appended to the notcleaned URL list, and if it succeeds the
IDFromEndpoint URL will be appended to the list of URL objects to be
returned.
Note: If there is any URL in the jobids list for which there is no
corresponding Job object, then the size of the returned list plus the
size of the notcleaned list will not equal that of the jobids list.
Parameters:
-----------
jobids: List of Job::IDFromEndpoint URL objects for which a
corresponding job, managed by this JobSupervisor should be cleaned.
notcleaned: List of Job::IDFromEndpoint URL objects for which the
corresponding job were not cleaned.
The list of Job::IDFromEndpoint URL objects of successfully cleaned
jobs is returned.
"""
return _arc.JobSupervisor_Clean(self, *args)
def GetJobControllers(self):
"""
const
std::list<JobController*>& Arc::JobSupervisor::GetJobControllers()
Get list of JobControllers.
Method to get the list of JobControllers loaded by constructor.
"""
return _arc.JobSupervisor_GetJobControllers(self)
def JobsFound(self):
"""
bool
Arc::JobSupervisor::JobsFound() const
"""
return _arc.JobSupervisor_JobsFound(self)
JobSupervisor_swigregister = _arc.JobSupervisor_swigregister
JobSupervisor_swigregister(JobSupervisor)
class TargetRetriever(_object):
"""
TargetRetriever base class
The TargetRetriever class is a pure virtual base class to be used for
grid flavour specializations. It is designed to work in conjunction
with the TargetGenerator.
C++ includes: TargetRetriever.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, TargetRetriever, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, TargetRetriever, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_TargetRetriever
__del__ = lambda self : None;
def GetTargets(self, *args):
"""
virtual void
Arc::TargetRetriever::GetTargets(TargetGenerator &mom, int targetType,
int detailLevel)=0
DEPRECATED: Method for collecting targets.
This method is DEPRECATED, the GetExecutionTargets and GetJobs methods
replaces it.
Pure virtual method for collecting targets. Implementation depends on
the Grid middleware in question and is thus left to the specialized
class.
Parameters:
-----------
mom: is the reference to the TargetGenerator which has loaded the
TargetRetriever
targetType: is the identificaion of targets to find (0 =
ExecutionTargets, 1 = Grid Jobs)
detailLevel: is the required level of details (1 = All details, 2 =
Limited details)
"""
return _arc.TargetRetriever_GetTargets(self, *args)
def GetExecutionTargets(self, *args):
"""
virtual void Arc::TargetRetriever::GetExecutionTargets(TargetGenerator
&mom)=0
Method for collecting targets.
Pure virtual method for collecting targets. Implementation depends on
the Grid middleware in question and is thus left to the specialized
class.
Parameters:
-----------
mom: is the reference to the TargetGenerator which has loaded the
TargetRetriever
detailLevel: is the required level of details (1 = All details, 2 =
Limited details)
"""
return _arc.TargetRetriever_GetExecutionTargets(self, *args)
def GetJobs(self, *args):
"""
virtual void
Arc::TargetRetriever::GetJobs(TargetGenerator &mom)=0
Method for collecting targets.
Pure virtual method for collecting targets. Implementation depends on
the Grid middleware in question and is thus left to the specialized
class.
Parameters:
-----------
mom: is the reference to the TargetGenerator which has loaded the
TargetRetriever
detailLevel: is the required level of details (1 = All details, 2 =
Limited details)
"""
return _arc.TargetRetriever_GetJobs(self, *args)
TargetRetriever_swigregister = _arc.TargetRetriever_swigregister
TargetRetriever_swigregister(TargetRetriever)
class TargetRetrieverLoader(_object):
"""
Class responsible for loading TargetRetriever plugins The
TargetRetriever objects returned by a TargetRetrieverLoader must not
be used after the TargetRetrieverLoader goes out of scope.
C++ includes: TargetRetriever.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, TargetRetrieverLoader, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, TargetRetrieverLoader, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::TargetRetrieverLoader::TargetRetrieverLoader()
Constructor Creates a new TargetRetrieverLoader.
"""
this = _arc.new_TargetRetrieverLoader()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_TargetRetrieverLoader
__del__ = lambda self : None;
def load(self, *args):
"""
TargetRetriever* Arc::TargetRetrieverLoader::load(const std::string
&name, const UserConfig &usercfg, const std::string &service, const
ServiceType &st)
Load a new TargetRetriever
Parameters:
-----------
name: The name of the TargetRetriever to load.
usercfg: The UserConfig object for the new TargetRetriever.
service: The URL used to contact the target.
st: specifies service type of the target.
A pointer to the new TargetRetriever (NULL on error).
"""
return _arc.TargetRetrieverLoader_load(self, *args)
def GetTargetRetrievers(self):
"""
const std::list<TargetRetriever*>&
Arc::TargetRetrieverLoader::GetTargetRetrievers() const
Retrieve the list of loaded TargetRetrievers. A reference to the list
of TargetRetrievers.
"""
return _arc.TargetRetrieverLoader_GetTargetRetrievers(self)
TargetRetrieverLoader_swigregister = _arc.TargetRetrieverLoader_swigregister
TargetRetrieverLoader_swigregister(TargetRetrieverLoader)
class TargetRetrieverPluginArgument(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, TargetRetrieverPluginArgument, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, TargetRetrieverPluginArgument, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::TargetRetrieverPluginArgument::TargetRetrieverPluginArgument(const
UserConfig &usercfg, const std::string &server, const ServiceType &st)
"""
this = _arc.new_TargetRetrieverPluginArgument(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_TargetRetrieverPluginArgument
__del__ = lambda self : None;
TargetRetrieverPluginArgument_swigregister = _arc.TargetRetrieverPluginArgument_swigregister
TargetRetrieverPluginArgument_swigregister(TargetRetrieverPluginArgument)
class ScalableTimeInt(_object):
""" """
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ScalableTimeInt, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ScalableTimeInt, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::ScalableTime< int >::ScalableTime(const int &t)
"""
this = _arc.new_ScalableTimeInt(*args)
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["benchmark"] = _arc.ScalableTimeInt_benchmark_set
__swig_getmethods__["benchmark"] = _arc.ScalableTimeInt_benchmark_get
if _newclass:benchmark = _swig_property(_arc.ScalableTimeInt_benchmark_get, _arc.ScalableTimeInt_benchmark_set)
__swig_setmethods__["range"] = _arc.ScalableTimeInt_range_set
__swig_getmethods__["range"] = _arc.ScalableTimeInt_range_get
if _newclass:range = _swig_property(_arc.ScalableTimeInt_range_get, _arc.ScalableTimeInt_range_set)
def scaleMin(self, *args):
"""
int
rc::ScalableTime< int >::scaleMin(double s) const
"""
return _arc.ScalableTimeInt_scaleMin(self, *args)
def scaleMax(self, *args):
"""
int
rc::ScalableTime< int >::scaleMax(double s) const
"""
return _arc.ScalableTimeInt_scaleMax(self, *args)
__swig_destroy__ = _arc.delete_ScalableTimeInt
__del__ = lambda self : None;
ScalableTimeInt_swigregister = _arc.ScalableTimeInt_swigregister
ScalableTimeInt_swigregister(ScalableTimeInt)
class RangeInt(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, RangeInt, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, RangeInt, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::Range::Range(const T
&t)
"""
this = _arc.new_RangeInt(*args)
try: self.this.append(this)
except: self.this = this
__swig_setmethods__["min"] = _arc.RangeInt_min_set
__swig_getmethods__["min"] = _arc.RangeInt_min_get
if _newclass:min = _swig_property(_arc.RangeInt_min_get, _arc.RangeInt_min_set)
__swig_setmethods__["max"] = _arc.RangeInt_max_set
__swig_getmethods__["max"] = _arc.RangeInt_max_get
if _newclass:max = _swig_property(_arc.RangeInt_max_get, _arc.RangeInt_max_set)
__swig_destroy__ = _arc.delete_RangeInt
__del__ = lambda self : None;
RangeInt_swigregister = _arc.RangeInt_swigregister
RangeInt_swigregister(RangeInt)
class VOMSACInfoVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, VOMSACInfoVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, VOMSACInfoVector, name)
__repr__ = _swig_repr
def iterator(self): return _arc.VOMSACInfoVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.VOMSACInfoVector___nonzero__(self)
def __bool__(self): return _arc.VOMSACInfoVector___bool__(self)
def __len__(self): return _arc.VOMSACInfoVector___len__(self)
def pop(self): return _arc.VOMSACInfoVector_pop(self)
def __getslice__(self, *args): return _arc.VOMSACInfoVector___getslice__(self, *args)
def __setslice__(self, *args): return _arc.VOMSACInfoVector___setslice__(self, *args)
def __delslice__(self, *args): return _arc.VOMSACInfoVector___delslice__(self, *args)
def __delitem__(self, *args): return _arc.VOMSACInfoVector___delitem__(self, *args)
def __getitem__(self, *args): return _arc.VOMSACInfoVector___getitem__(self, *args)
def __setitem__(self, *args): return _arc.VOMSACInfoVector___setitem__(self, *args)
def append(self, *args): return _arc.VOMSACInfoVector_append(self, *args)
def empty(self): return _arc.VOMSACInfoVector_empty(self)
def size(self): return _arc.VOMSACInfoVector_size(self)
def clear(self): return _arc.VOMSACInfoVector_clear(self)
def swap(self, *args): return _arc.VOMSACInfoVector_swap(self, *args)
def get_allocator(self): return _arc.VOMSACInfoVector_get_allocator(self)
def begin(self): return _arc.VOMSACInfoVector_begin(self)
def end(self): return _arc.VOMSACInfoVector_end(self)
def rbegin(self): return _arc.VOMSACInfoVector_rbegin(self)
def rend(self): return _arc.VOMSACInfoVector_rend(self)
def pop_back(self): return _arc.VOMSACInfoVector_pop_back(self)
def erase(self, *args): return _arc.VOMSACInfoVector_erase(self, *args)
def __init__(self, *args):
this = _arc.new_VOMSACInfoVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.VOMSACInfoVector_push_back(self, *args)
def front(self): return _arc.VOMSACInfoVector_front(self)
def back(self): return _arc.VOMSACInfoVector_back(self)
def assign(self, *args): return _arc.VOMSACInfoVector_assign(self, *args)
def resize(self, *args): return _arc.VOMSACInfoVector_resize(self, *args)
def insert(self, *args): return _arc.VOMSACInfoVector_insert(self, *args)
def reserve(self, *args): return _arc.VOMSACInfoVector_reserve(self, *args)
def capacity(self): return _arc.VOMSACInfoVector_capacity(self)
__swig_destroy__ = _arc.delete_VOMSACInfoVector
__del__ = lambda self : None;
VOMSACInfoVector_swigregister = _arc.VOMSACInfoVector_swigregister
VOMSACInfoVector_swigregister(VOMSACInfoVector)
class StringVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, StringVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, StringVector, name)
__repr__ = _swig_repr
def iterator(self): return _arc.StringVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _arc.StringVector___nonzero__(self)
def __bool__(self): return _arc.StringVector___bool__(self)
def __len__(self): return _arc.StringVector___len__(self)
def pop(self): return _arc.StringVector_pop(self)
def __getslice__(self, *args): return _arc.StringVector___getslice__(self, *args)
def __setslice__(self, *args): return _arc.StringVector___setslice__(self, *args)
def __delslice__(self, *args): return _arc.StringVector___delslice__(self, *args)
def __delitem__(self, *args): return _arc.StringVector___delitem__(self, *args)
def __getitem__(self, *args): return _arc.StringVector___getitem__(self, *args)
def __setitem__(self, *args): return _arc.StringVector___setitem__(self, *args)
def append(self, *args): return _arc.StringVector_append(self, *args)
def empty(self): return _arc.StringVector_empty(self)
def size(self): return _arc.StringVector_size(self)
def clear(self): return _arc.StringVector_clear(self)
def swap(self, *args): return _arc.StringVector_swap(self, *args)
def get_allocator(self): return _arc.StringVector_get_allocator(self)
def begin(self): return _arc.StringVector_begin(self)
def end(self): return _arc.StringVector_end(self)
def rbegin(self): return _arc.StringVector_rbegin(self)
def rend(self): return _arc.StringVector_rend(self)
def pop_back(self): return _arc.StringVector_pop_back(self)
def erase(self, *args): return _arc.StringVector_erase(self, *args)
def __init__(self, *args):
this = _arc.new_StringVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _arc.StringVector_push_back(self, *args)
def front(self): return _arc.StringVector_front(self)
def back(self): return _arc.StringVector_back(self)
def assign(self, *args): return _arc.StringVector_assign(self, *args)
def resize(self, *args): return _arc.StringVector_resize(self, *args)
def insert(self, *args): return _arc.StringVector_insert(self, *args)
def reserve(self, *args): return _arc.StringVector_reserve(self, *args)
def capacity(self): return _arc.StringVector_capacity(self)
__swig_destroy__ = _arc.delete_StringVector
__del__ = lambda self : None;
StringVector_swigregister = _arc.StringVector_swigregister
StringVector_swigregister(StringVector)
def OpenSSLInit():
"""
bool Arc::OpenSSLInit(void)
This module contains various convenience utilities for using OpenSSL.
Application may be linked to this module instead of OpenSSL libraries
directly. This function initializes OpenSSL library. It may be called
multiple times and makes sure everything is done properly and OpenSSL
may be used in multi-threaded environment. Because this function makes
use of ArcLocation it is advisable to call it after
ArcLocation::Init().
"""
return _arc.OpenSSLInit()
def OpenSSLAppDataIndex(*args):
"""
int
Arc::OpenSSLAppDataIndex(const std::string &id)
"""
return _arc.OpenSSLAppDataIndex(*args)
class CredentialError(_object):
"""
This is an exception class that is used to handle runtime errors
discovered in the Credential class.
C++ includes: Credential.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CredentialError, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CredentialError, name)
__repr__ = _swig_repr
def __init__(self, what = ""):
"""
Arc::CredentialError::CredentialError(const std::string &what="")
This is the constructor of the CredentialError class.
Parameters:
-----------
what: An explanation of the error.
"""
this = _arc.new_CredentialError(what)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_CredentialError
__del__ = lambda self : None;
CredentialError_swigregister = _arc.CredentialError_swigregister
CredentialError_swigregister(CredentialError)
def HandleOpenSSLError(*args):
"""
void
Arc::HandleOpenSSLError(int code)
Prints chain of accumulaed OpenSSL errors if any available.
"""
return _arc.HandleOpenSSLError(*args)
CRED_PEM = _arc.CRED_PEM
CRED_DER = _arc.CRED_DER
CRED_PKCS = _arc.CRED_PKCS
CRED_UNKNOWN = _arc.CRED_UNKNOWN
class Credential(_object):
"""
Credential class covers the functionality about general processing
about certificate/key files, including: 1. cerficate/key parsing,
information extracting (such as subject name, issuer name, lifetime,
etc.), chain verifying, extension processing about proxy certinfo,
extension processing about other general certificate extension (such
as voms attributes, it should be the extension-specific code itself to
create, parse and verify the extension, not the Credential class. For
voms, it is some code about writing and parsing voms- implementing
Attibute Certificate/ RFC3281, the voms-attibute is then be looked as
a binary part and embeded into extension of X509 certificate/proxy
certificate); 2. certificate request, extension emeding and
certificate signing, for both proxy certificate and EEC (end entity
certificate) certificate The Credential class support PEM, DER PKCS12
credential.
C++ includes: Credential.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Credential, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Credential, name)
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_Credential
__del__ = lambda self : None;
def __init__(self, *args):
"""
Arc::Credential::Credential(const UserConfig &usercfg, const
std::string &passphrase4key="")
Constructor, specific constructor for usual certificate, constructing
from information in UserConfig object. Only acts as a container for
parsing the certificate and key files, is meaningless for any other
use. this constructor will parse the credential * information, and put
them into "this" object
Parameters:
-----------
is_file: specify: if the cert/key are from file, otherwise they are
supposed to be from string. default is from file
"""
this = _arc.new_Credential(*args)
try: self.this.append(this)
except: self.this = this
__swig_getmethods__["InitProxyCertInfo"] = lambda x: _arc.Credential_InitProxyCertInfo
if _newclass:InitProxyCertInfo = staticmethod(_arc.Credential_InitProxyCertInfo)
__swig_getmethods__["IsCredentialsValid"] = lambda x: _arc.Credential_IsCredentialsValid
if _newclass:IsCredentialsValid = staticmethod(_arc.Credential_IsCredentialsValid)
def AddCertExtObj(self, *args):
"""
void
Arc::Credential::AddCertExtObj(std::string &sn, std::string &oid)
General method for adding a new nid into openssl's global const
"""
return _arc.Credential_AddCertExtObj(self, *args)
__swig_getmethods__["NoPassword"] = lambda x: _arc.Credential_NoPassword
if _newclass:NoPassword = staticmethod(_arc.Credential_NoPassword)
def LogError(self):
"""
void
Arc::Credential::LogError(void) const
Log error information related with openssl
"""
return _arc.Credential_LogError(self)
def GetVerification(self):
"""
bool
Arc::Credential::GetVerification(void) const
Get the verification result about certificate chain checking
"""
return _arc.Credential_GetVerification(self)
def GetPrivKey(self):
"""
EVP_PKEY*
Arc::Credential::GetPrivKey(void) const
Get the private key attached to this object
"""
return _arc.Credential_GetPrivKey(self)
def GetPubKey(self):
"""
EVP_PKEY*
Arc::Credential::GetPubKey(void) const
Get the public key attached to this object
"""
return _arc.Credential_GetPubKey(self)
def GetCert(self):
"""
X509*
Arc::Credential::GetCert(void) const
Get the certificate attached to this object
"""
return _arc.Credential_GetCert(self)
def GetCertReq(self):
"""
X509_REQ*
Arc::Credential::GetCertReq(void) const
Get the certificate request, if there is any
"""
return _arc.Credential_GetCertReq(self)
def GetCertChain(self): return _arc.Credential_GetCertChain(self)
def GetCertNumofChain(self):
"""
int
Arc::Credential::GetCertNumofChain(void) const
Get the number of certificates in the certificate chain attached to
this object
"""
return _arc.Credential_GetCertNumofChain(self)
def getFormat(self, *args):
"""
Credformat
Arc::Credential::getFormat(BIO *in, const bool is_file=true) const
Get the certificate format, PEM PKCS12 or DER BIO could be memory or
file, they should be processed differently.
"""
return _arc.Credential_getFormat(self, *args)
def GetDN(self):
"""
std::string
Arc::Credential::GetDN(void) const
Get the DN of the certificate attached to this object
"""
return _arc.Credential_GetDN(self)
def GetIdentityName(self):
"""
std::string
Arc::Credential::GetIdentityName(void) const
Get the Identity name of the certificate attached to this object, the
result will not include proxy CN
"""
return _arc.Credential_GetIdentityName(self)
def GetType(self):
"""
ArcCredential::certType Arc::Credential::GetType(void) const
Get type of the certificate attached to this object
"""
return _arc.Credential_GetType(self)
def GetIssuerName(self):
"""
std::string
Arc::Credential::GetIssuerName(void) const
Get issuer of the certificate attached to this object
"""
return _arc.Credential_GetIssuerName(self)
def GetCAName(self):
"""
std::string
Arc::Credential::GetCAName(void) const
Get CA of the certificate attached to this object, if the certificate
is an EEC, GetCAName get the same value as GetIssuerName
"""
return _arc.Credential_GetCAName(self)
def GetProxyPolicy(self):
"""
std::string
Arc::Credential::GetProxyPolicy(void) const
Get the proxy policy attached to the "proxy certificate information"
extension of the proxy certicate
"""
return _arc.Credential_GetProxyPolicy(self)
def SetProxyPolicy(self, *args):
"""
void
Arc::Credential::SetProxyPolicy(const std::string &proxyversion, const
std::string &policylang, const std::string &policy, int pathlength)
Set the proxy policy attached to the "proxy certificate information"
extension of the proxy certicate
"""
return _arc.Credential_SetProxyPolicy(self, *args)
def OutputPrivatekey(self, encryption = False, passphrase = ""):
"""
bool
Arc::Credential::OutputPrivatekey(std::string &content, bool
encryption=false, const std::string &passphrase="")
Output the private key into string
Parameters:
-----------
encryption: whether: encrypt the output private key or not
passphrase: the: passphrase to encrypt the output private key
"""
return _arc.Credential_OutputPrivatekey(self, encryption, passphrase)
def OutputPublickey(self):
"""
bool
Arc::Credential::OutputPublickey(std::string &content)
Output the public key into string
"""
return _arc.Credential_OutputPublickey(self)
def OutputCertificate(self, is_der = False):
"""
bool
Arc::Credential::OutputCertificate(std::string &content, bool
is_der=false)
Output the certificate into string
Parameters:
-----------
is_der: false for PEM, true for DER
"""
return _arc.Credential_OutputCertificate(self, is_der)
def OutputCertificateChain(self, is_der = False):
"""
bool
Arc::Credential::OutputCertificateChain(std::string &content, bool
is_der=false)
Output the certificate chain into string
Parameters:
-----------
is_der: false for PEM, true for DER
"""
return _arc.Credential_OutputCertificateChain(self, is_der)
def GetLifeTime(self):
"""
Period
Arc::Credential::GetLifeTime(void) const
Returns lifetime of certificate or proxy
"""
return _arc.Credential_GetLifeTime(self)
def GetStartTime(self):
"""
Time
Arc::Credential::GetStartTime() const
Returns validity start time of certificate or proxy
"""
return _arc.Credential_GetStartTime(self)
def GetEndTime(self):
"""
Time
Arc::Credential::GetEndTime() const
Returns validity end time of certificate or proxy
"""
return _arc.Credential_GetEndTime(self)
def SetLifeTime(self, *args):
"""
void
Arc::Credential::SetLifeTime(const Period &period)
Set lifetime of certificate or proxy
"""
return _arc.Credential_SetLifeTime(self, *args)
def SetStartTime(self, *args):
"""
void
Arc::Credential::SetStartTime(const Time &start_time)
Set start time of certificate or proxy
"""
return _arc.Credential_SetStartTime(self, *args)
def IsValid(self):
"""
bool
Arc::Credential::IsValid(void)
Returns true if credentials are valid
"""
return _arc.Credential_IsValid(self)
def AddExtension(self, *args):
"""
bool
Arc::Credential::AddExtension(const std::string &name, char **binary)
Add an extension to the extension part of the certificate
Parameters:
-----------
binary: the: data which will be inserted into certificate extension
part as a specific extension there should be specific methods defined
inside specific X509V3_EXT_METHOD structure to parse the specific
extension format. For example, VOMS attribute certificate is a
specific extension to proxy certificate. There is specific
X509V3_EXT_METHOD defined in VOMSAttribute.h and VOMSAttribute.c for
parsing attribute certificate. In openssl, the specific
X509V3_EXT_METHOD can be got according to the extension name/id, see
X509V3_EXT_get_nid(ext_nid)
"""
return _arc.Credential_AddExtension(self, *args)
def GetExtension(self, *args):
"""
std::string
Arc::Credential::GetExtension(const std::string &name)
Get the specific extension (named by the parameter) in a certificate
this function is only supposed to be called after certificate and key
are loaded by the constructor for usual certificate
Parameters:
-----------
name: the: name of the extension to get
"""
return _arc.Credential_GetExtension(self, *args)
def GenerateEECRequest(self, *args):
"""
bool
Arc::Credential::GenerateEECRequest(const char *request_filename,
const char *key_filename, const std::string &dn="")
Generate an EEC request, output the certificate request and the key to
a file
"""
return _arc.Credential_GenerateEECRequest(self, *args)
def GenerateRequest(self, *args):
"""
bool
Arc::Credential::GenerateRequest(const char *filename, bool
if_der=false)
Generate a proxy request, output the certificate request to a file
"""
return _arc.Credential_GenerateRequest(self, *args)
def InquireRequest(self, *args):
"""
bool
Arc::Credential::InquireRequest(const char *filename, bool
if_eec=false, bool if_der=false)
Inquire the certificate request from a file
"""
return _arc.Credential_InquireRequest(self, *args)
def SignRequest(self, *args):
"""
bool
Arc::Credential::SignRequest(Credential *proxy, const char *filename,
bool foamat=false)
Sign request and output the signed certificate to a file
Parameters:
-----------
if_der: false for PEM, true for DER
"""
return _arc.Credential_SignRequest(self, *args)
def SelfSignEECRequest(self, *args):
"""
bool
Arc::Credential::SelfSignEECRequest(const std::string &dn, const char
*extfile, const std::string &extsect, const char *certfile)
Self sign a certificate. This functionality is specific for creating a
CA credential by using this Credential class.
Parameters:
-----------
dn: the DN for the subject
extfile: the configration file which includes the extension
information, typically the openssl.cnf file
extsect: the section/group name for the extension, e.g. in
openssl.cnf, usr_cert and v3_ca
certfile: the certificate file, which contains the signed certificate
"""
return _arc.Credential_SelfSignEECRequest(self, *args)
def SignEECRequest(self, *args):
"""
bool
Arc::Credential::SignEECRequest(Credential *eec, const std::string
&dn, const char *filename)
Sign request and output the signed certificate to a file
"""
return _arc.Credential_SignEECRequest(self, *args)
Credential_swigregister = _arc.Credential_swigregister
Credential_swigregister(Credential)
CredentialLogger = cvar.CredentialLogger
def Credential_InitProxyCertInfo():
return _arc.Credential_InitProxyCertInfo()
Credential_InitProxyCertInfo = _arc.Credential_InitProxyCertInfo
def Credential_IsCredentialsValid(*args):
return _arc.Credential_IsCredentialsValid(*args)
Credential_IsCredentialsValid = _arc.Credential_IsCredentialsValid
def Credential_NoPassword():
return _arc.Credential_NoPassword()
Credential_NoPassword = _arc.Credential_NoPassword
class RegularExpression(_object):
"""
A regular expression class.
This class is a wrapper around the functions provided in regex.h.
C++ includes: ArcRegex.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, RegularExpression, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, RegularExpression, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::RegularExpression::RegularExpression(const RegularExpression
®ex)
Copy constructor.
"""
this = _arc.new_RegularExpression(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_RegularExpression
__del__ = lambda self : None;
def isOk(self):
"""
bool
Arc::RegularExpression::isOk()
Returns true if the pattern of this regex is ok.
"""
return _arc.RegularExpression_isOk(self)
def hasPattern(self, *args):
"""
bool
Arc::RegularExpression::hasPattern(std::string str)
Returns true if this regex has the pattern provided.
"""
return _arc.RegularExpression_hasPattern(self, *args)
def match(self, *args):
"""
bool
Arc::RegularExpression::match(const std::string &str, std::list<
std::string > &unmatched, std::list< std::string > &matched) const
Returns true if this regex matches the string provided.
Unmatched parts of the string are stored in 'unmatched'. Matched parts
of the string are stored in 'matched'. The first entry in matched is
the string that matched the regex, and the following entries are
parenthesised elements of the regex
"""
return _arc.RegularExpression_match(self, *args)
def getPattern(self):
"""
std::string Arc::RegularExpression::getPattern() const
Returns pattern.
"""
return _arc.RegularExpression_getPattern(self)
RegularExpression_swigregister = _arc.RegularExpression_swigregister
RegularExpression_swigregister(RegularExpression)
class VOMSACInfo(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, VOMSACInfo, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, VOMSACInfo, name)
__repr__ = _swig_repr
Success = _arc.VOMSACInfo_Success
CAUnknown = _arc.VOMSACInfo_CAUnknown
CertRevoked = _arc.VOMSACInfo_CertRevoked
LSCFailed = _arc.VOMSACInfo_LSCFailed
TrustFailed = _arc.VOMSACInfo_TrustFailed
X509ParsingFailed = _arc.VOMSACInfo_X509ParsingFailed
ACParsingFailed = _arc.VOMSACInfo_ACParsingFailed
InternalParsingFailed = _arc.VOMSACInfo_InternalParsingFailed
TimeValidFailed = _arc.VOMSACInfo_TimeValidFailed
IsCritical = _arc.VOMSACInfo_IsCritical
ParsingError = _arc.VOMSACInfo_ParsingError
ValidationError = _arc.VOMSACInfo_ValidationError
Error = _arc.VOMSACInfo_Error
__swig_setmethods__["voname"] = _arc.VOMSACInfo_voname_set
__swig_getmethods__["voname"] = _arc.VOMSACInfo_voname_get
if _newclass:voname = _swig_property(_arc.VOMSACInfo_voname_get, _arc.VOMSACInfo_voname_set)
__swig_setmethods__["holder"] = _arc.VOMSACInfo_holder_set
__swig_getmethods__["holder"] = _arc.VOMSACInfo_holder_get
if _newclass:holder = _swig_property(_arc.VOMSACInfo_holder_get, _arc.VOMSACInfo_holder_set)
__swig_setmethods__["issuer"] = _arc.VOMSACInfo_issuer_set
__swig_getmethods__["issuer"] = _arc.VOMSACInfo_issuer_get
if _newclass:issuer = _swig_property(_arc.VOMSACInfo_issuer_get, _arc.VOMSACInfo_issuer_set)
__swig_setmethods__["target"] = _arc.VOMSACInfo_target_set
__swig_getmethods__["target"] = _arc.VOMSACInfo_target_get
if _newclass:target = _swig_property(_arc.VOMSACInfo_target_get, _arc.VOMSACInfo_target_set)
__swig_setmethods__["attributes"] = _arc.VOMSACInfo_attributes_set
__swig_getmethods__["attributes"] = _arc.VOMSACInfo_attributes_get
if _newclass:attributes = _swig_property(_arc.VOMSACInfo_attributes_get, _arc.VOMSACInfo_attributes_set)
__swig_setmethods__["_from"] = _arc.VOMSACInfo__from_set
__swig_getmethods__["_from"] = _arc.VOMSACInfo__from_get
if _newclass:_from = _swig_property(_arc.VOMSACInfo__from_get, _arc.VOMSACInfo__from_set)
__swig_setmethods__["till"] = _arc.VOMSACInfo_till_set
__swig_getmethods__["till"] = _arc.VOMSACInfo_till_get
if _newclass:till = _swig_property(_arc.VOMSACInfo_till_get, _arc.VOMSACInfo_till_set)
__swig_setmethods__["status"] = _arc.VOMSACInfo_status_set
__swig_getmethods__["status"] = _arc.VOMSACInfo_status_get
if _newclass:status = _swig_property(_arc.VOMSACInfo_status_get, _arc.VOMSACInfo_status_set)
def __init__(self):
"""Arc::VOMSACInfo::VOMSACInfo(void) """
this = _arc.new_VOMSACInfo()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_VOMSACInfo
__del__ = lambda self : None;
VOMSACInfo_swigregister = _arc.VOMSACInfo_swigregister
VOMSACInfo_swigregister(VOMSACInfo)
class VOMSTrustList(_object):
"""
Stores definitions for making decision if VOMS server is trusted
C++ includes: VOMSUtil.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, VOMSTrustList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, VOMSTrustList, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::VOMSTrustList::VOMSTrustList(const std::vector< VOMSTrustChain >
&chains, const std::vector< VOMSTrustRegex > ®exs)
Creates chain lists and regexps from those specified in arguments. See
AddChain() and AddRegex() for more information.
"""
this = _arc.new_VOMSTrustList(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_VOMSTrustList
__del__ = lambda self : None;
def AddChain(self, *args):
"""
VOMSTrustChain&
Arc::VOMSTrustList::AddChain(void)
Adds empty chain of trusted DNs to list.
"""
return _arc.VOMSTrustList_AddChain(self, *args)
def AddElement(self, *args):
"""
void
Arc::VOMSTrustList::AddElement(const std::vector< std::string >
&encoded_list)
"""
return _arc.VOMSTrustList_AddElement(self, *args)
def AddRegex(self, *args):
"""
RegularExpression& Arc::VOMSTrustList::AddRegex(const VOMSTrustRegex
®)
Adds regular expression to list. During verification each signature of
AC is checked against all stored regular expressions. DN of signing
certificate must match at least one of stored regular expressions.
"""
return _arc.VOMSTrustList_AddRegex(self, *args)
def SizeChains(self):
"""
int
Arc::VOMSTrustList::SizeChains(void) const
"""
return _arc.VOMSTrustList_SizeChains(self)
def SizeRegexs(self):
"""
int
Arc::VOMSTrustList::SizeRegexs(void) const
"""
return _arc.VOMSTrustList_SizeRegexs(self)
def GetChain(self, *args):
"""
const
VOMSTrustChain& Arc::VOMSTrustList::GetChain(int num) const
"""
return _arc.VOMSTrustList_GetChain(self, *args)
def GetRegex(self, *args):
"""
const
RegularExpression& Arc::VOMSTrustList::GetRegex(int num) const
"""
return _arc.VOMSTrustList_GetRegex(self, *args)
VOMSTrustList_swigregister = _arc.VOMSTrustList_swigregister
VOMSTrustList_swigregister(VOMSTrustList)
def InitVOMSAttribute():
"""
void
Arc::InitVOMSAttribute(void)
"""
return _arc.InitVOMSAttribute()
def createVOMSAC(*args):
"""
bool
Arc::createVOMSAC(std::string &codedac, Credential &issuer_cred,
Credential &holder_cred, std::vector< std::string > &fqan,
std::vector< std::string > &targets, std::vector< std::string >
&attributes, std::string &voname, std::string &uri, int lifetime)
Create AC(Attribute Certificate) with voms specific format.
Parameters:
-----------
codedac: The coded AC as output of this method
issuer_cred: The issuer credential which is used to sign the AC
holder_cred: The holder credential, the holder certificate is the one
which carries AC The rest arguments are the same as the above method
"""
return _arc.createVOMSAC(*args)
def addVOMSAC(*args):
"""
bool
Arc::addVOMSAC(ArcCredential::AC **&aclist, std::string &acorder,
std::string &decodedac)
Add decoded AC string into a list of AC objects
Parameters:
-----------
aclist: The list of AC objects (output)
acorder: The order of AC objects (output)
decodedac: The AC string that is decoded from the string returned
from voms server (input)
"""
return _arc.addVOMSAC(*args)
def VOMSDecode(*args):
"""
char* Arc::VOMSDecode(const
char *data, int size, int *j)
Decode the data which is encoded by voms server. Since voms code uses
some specific coding method (not base64 encoding), we simply copy the
method from voms code to here
"""
return _arc.VOMSDecode(*args)
def VOMSFQANToFull(*args):
"""
std::string
Arc::VOMSFQANToFull(const std::string &vo, const std::string &fqan)
"""
return _arc.VOMSFQANToFull(*args)
class CredentialStore(_object):
"""
This class provides functionality for storing delegated crdentials and
retrieving them from some store services. This is very preliminary
implementation and currently support only one type of credentials -
X.509 proxies, and only one type of store service - MyProxy. Later it
will be extended to support at least following services: ARC
delegation service, VOMS service, local file system.
C++ includes: CredentialStore.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CredentialStore, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CredentialStore, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::CredentialStore::CredentialStore(const UserConfig &cfg, const URL
&url)
"""
this = _arc.new_CredentialStore(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_CredentialStore
__del__ = lambda self : None;
def __nonzero__(self):
return _arc.CredentialStore___nonzero__(self)
__bool__ = __nonzero__
def Store(self, *args):
"""
bool
Arc::CredentialStore::Store(const std::map< std::string, std::string >
&options, const std::string &cred="", bool if_delegate=true, const
Arc::Time deleg_start=Arc::Time(), const Arc::Period
deleg_period=604800)
"""
return _arc.CredentialStore_Store(self, *args)
def Retrieve(self, *args):
"""
bool
Arc::CredentialStore::Retrieve(const std::map< std::string,
std::string > &options, std::string &cred, bool if_delegate=true)
"""
return _arc.CredentialStore_Retrieve(self, *args)
def Info(self, *args):
"""
bool
Arc::CredentialStore::Info(const std::map< std::string, std::string >
&options, std::string &respinfo)
"""
return _arc.CredentialStore_Info(self, *args)
def Destroy(self, *args):
"""
bool
Arc::CredentialStore::Destroy(const std::map< std::string, std::string
> &options)
"""
return _arc.CredentialStore_Destroy(self, *args)
def ChangePassword(self, *args):
"""
bool
Arc::CredentialStore::ChangePassword(const std::map< std::string,
std::string > &options)
"""
return _arc.CredentialStore_ChangePassword(self, *args)
CredentialStore_swigregister = _arc.CredentialStore_swigregister
CredentialStore_swigregister(CredentialStore)
def parseVOMSAC(*args):
"""
bool Arc::parseVOMSAC(const
Credential &holder_cred, const std::string &ca_cert_dir, const
std::string &ca_cert_file, VOMSTrustList &vomscert_trust_dn,
std::vector< VOMSACInfo > &output, bool verify=true, bool
reportall=false)
Parse the certificate. Similar to above one, but collects information
From all certificates in a chain.
"""
return _arc.parseVOMSAC(*args)
def getCredentialProperty(*args):
"""
std::string
Arc::getCredentialProperty(const Arc::Credential &u, const std::string
&property, const std::string &ca_cert_dir=std::string(""), const
std::string &ca_cert_file=std::string(""), const std::vector<
std::string > &voms_trust_list=std::vector< std::string >())
Extract the needed field from the certificate.
Parameters:
-----------
u: The proxy certificate which includes the voms specific formated
AC.
property: The property that caller would get, including: dn, voms:vo,
voms:role, voms:group
ca_cert_dir:
ca_cert_file:
voms_trust_list: the dn chain that is trusted when parsing voms AC
"""
return _arc.getCredentialProperty(*args)
DataStatusRetryableBase = _arc.DataStatusRetryableBase
class DataStatus(_object):
"""
Status code returned by many DataPoint methods.
A class to be used for return types of all major data handling
methods. It describes the outcome of the method.
C++ includes: DataStatus.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataStatus, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataStatus, name)
__repr__ = _swig_repr
Success = _arc.DataStatus_Success
ReadAcquireError = _arc.DataStatus_ReadAcquireError
ReadAcquireErrorRetryable = _arc.DataStatus_ReadAcquireErrorRetryable
WriteAcquireError = _arc.DataStatus_WriteAcquireError
WriteAcquireErrorRetryable = _arc.DataStatus_WriteAcquireErrorRetryable
ReadResolveError = _arc.DataStatus_ReadResolveError
ReadResolveErrorRetryable = _arc.DataStatus_ReadResolveErrorRetryable
WriteResolveError = _arc.DataStatus_WriteResolveError
WriteResolveErrorRetryable = _arc.DataStatus_WriteResolveErrorRetryable
ReadStartError = _arc.DataStatus_ReadStartError
ReadStartErrorRetryable = _arc.DataStatus_ReadStartErrorRetryable
WriteStartError = _arc.DataStatus_WriteStartError
WriteStartErrorRetryable = _arc.DataStatus_WriteStartErrorRetryable
ReadError = _arc.DataStatus_ReadError
ReadErrorRetryable = _arc.DataStatus_ReadErrorRetryable
WriteError = _arc.DataStatus_WriteError
WriteErrorRetryable = _arc.DataStatus_WriteErrorRetryable
TransferError = _arc.DataStatus_TransferError
TransferErrorRetryable = _arc.DataStatus_TransferErrorRetryable
ReadStopError = _arc.DataStatus_ReadStopError
ReadStopErrorRetryable = _arc.DataStatus_ReadStopErrorRetryable
WriteStopError = _arc.DataStatus_WriteStopError
WriteStopErrorRetryable = _arc.DataStatus_WriteStopErrorRetryable
PreRegisterError = _arc.DataStatus_PreRegisterError
PreRegisterErrorRetryable = _arc.DataStatus_PreRegisterErrorRetryable
PostRegisterError = _arc.DataStatus_PostRegisterError
PostRegisterErrorRetryable = _arc.DataStatus_PostRegisterErrorRetryable
UnregisterError = _arc.DataStatus_UnregisterError
UnregisterErrorRetryable = _arc.DataStatus_UnregisterErrorRetryable
CacheError = _arc.DataStatus_CacheError
CacheErrorRetryable = _arc.DataStatus_CacheErrorRetryable
CredentialsExpiredError = _arc.DataStatus_CredentialsExpiredError
DeleteError = _arc.DataStatus_DeleteError
DeleteErrorRetryable = _arc.DataStatus_DeleteErrorRetryable
NoLocationError = _arc.DataStatus_NoLocationError
LocationAlreadyExistsError = _arc.DataStatus_LocationAlreadyExistsError
NotSupportedForDirectDataPointsError = _arc.DataStatus_NotSupportedForDirectDataPointsError
UnimplementedError = _arc.DataStatus_UnimplementedError
IsReadingError = _arc.DataStatus_IsReadingError
IsWritingError = _arc.DataStatus_IsWritingError
CheckError = _arc.DataStatus_CheckError
CheckErrorRetryable = _arc.DataStatus_CheckErrorRetryable
ListError = _arc.DataStatus_ListError
ListNonDirError = _arc.DataStatus_ListNonDirError
ListErrorRetryable = _arc.DataStatus_ListErrorRetryable
StatError = _arc.DataStatus_StatError
StatNotPresentError = _arc.DataStatus_StatNotPresentError
StatErrorRetryable = _arc.DataStatus_StatErrorRetryable
NotInitializedError = _arc.DataStatus_NotInitializedError
SystemError = _arc.DataStatus_SystemError
StageError = _arc.DataStatus_StageError
StageErrorRetryable = _arc.DataStatus_StageErrorRetryable
InconsistentMetadataError = _arc.DataStatus_InconsistentMetadataError
ReadPrepareError = _arc.DataStatus_ReadPrepareError
ReadPrepareErrorRetryable = _arc.DataStatus_ReadPrepareErrorRetryable
ReadPrepareWait = _arc.DataStatus_ReadPrepareWait
WritePrepareError = _arc.DataStatus_WritePrepareError
WritePrepareErrorRetryable = _arc.DataStatus_WritePrepareErrorRetryable
WritePrepareWait = _arc.DataStatus_WritePrepareWait
ReadFinishError = _arc.DataStatus_ReadFinishError
ReadFinishErrorRetryable = _arc.DataStatus_ReadFinishErrorRetryable
WriteFinishError = _arc.DataStatus_WriteFinishError
WriteFinishErrorRetryable = _arc.DataStatus_WriteFinishErrorRetryable
SuccessCached = _arc.DataStatus_SuccessCached
GenericError = _arc.DataStatus_GenericError
GenericErrorRetryable = _arc.DataStatus_GenericErrorRetryable
UnknownError = _arc.DataStatus_UnknownError
def __init__(self, *args):
"""Arc::DataStatus::DataStatus() """
this = _arc.new_DataStatus(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DataStatus
__del__ = lambda self : None;
def __eq__(self, *args): return _arc.DataStatus___eq__(self, *args)
def __ne__(self, *args): return _arc.DataStatus___ne__(self, *args)
def __nonzero__(self):
return _arc.DataStatus___nonzero__(self)
__bool__ = __nonzero__
def Passed(self):
"""
bool
Arc::DataStatus::Passed() const
Returns true if no error occurred.
"""
return _arc.DataStatus_Passed(self)
def Retryable(self):
"""
bool
Arc::DataStatus::Retryable() const
Returns true if the error was temporary and could be retried.
"""
return _arc.DataStatus_Retryable(self)
def SetDesc(self, *args):
"""
void
Arc::DataStatus::SetDesc(const std::string &d)
Set a text description of the status, removing trailing new line if
present.
"""
return _arc.DataStatus_SetDesc(self, *args)
def GetDesc(self):
"""
std::string
Arc::DataStatus::GetDesc() const
Get a text description of the status.
"""
return _arc.DataStatus_GetDesc(self)
def __str__(self): return _arc.DataStatus___str__(self)
DataStatus_swigregister = _arc.DataStatus_swigregister
DataStatus_swigregister(DataStatus)
class FileInfo(_object):
"""
FileInfo stores information about files (metadata).
C++ includes: FileInfo.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, FileInfo, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, FileInfo, name)
__repr__ = _swig_repr
file_type_unknown = _arc.FileInfo_file_type_unknown
file_type_file = _arc.FileInfo_file_type_file
file_type_dir = _arc.FileInfo_file_type_dir
def __init__(self, name = ""):
"""Arc::FileInfo::FileInfo(const std::string &name="") """
this = _arc.new_FileInfo(name)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_FileInfo
__del__ = lambda self : None;
def GetName(self):
"""
const std::string&
Arc::FileInfo::GetName() const
"""
return _arc.FileInfo_GetName(self)
def GetLastName(self):
"""
std::string
Arc::FileInfo::GetLastName() const
"""
return _arc.FileInfo_GetLastName(self)
def SetName(self, *args):
"""
void
Arc::FileInfo::SetName(const std::string &n)
"""
return _arc.FileInfo_SetName(self, *args)
def GetURLs(self):
"""
const std::list<URL>&
Arc::FileInfo::GetURLs() const
"""
return _arc.FileInfo_GetURLs(self)
def AddURL(self, *args):
"""
void
Arc::FileInfo::AddURL(const URL &u)
"""
return _arc.FileInfo_AddURL(self, *args)
def CheckSize(self):
"""
bool
Arc::FileInfo::CheckSize() const
"""
return _arc.FileInfo_CheckSize(self)
def GetSize(self):
"""
unsigned long long int
Arc::FileInfo::GetSize() const
"""
return _arc.FileInfo_GetSize(self)
def SetSize(self, *args):
"""
void
Arc::FileInfo::SetSize(const unsigned long long int s)
"""
return _arc.FileInfo_SetSize(self, *args)
def CheckCheckSum(self):
"""
bool
Arc::FileInfo::CheckCheckSum() const
"""
return _arc.FileInfo_CheckCheckSum(self)
def GetCheckSum(self):
"""
const std::string&
Arc::FileInfo::GetCheckSum() const
"""
return _arc.FileInfo_GetCheckSum(self)
def SetCheckSum(self, *args):
"""
void
Arc::FileInfo::SetCheckSum(const std::string &c)
"""
return _arc.FileInfo_SetCheckSum(self, *args)
def CheckCreated(self):
"""
bool
Arc::FileInfo::CheckCreated() const
"""
return _arc.FileInfo_CheckCreated(self)
def GetCreated(self):
"""
Time
Arc::FileInfo::GetCreated() const
"""
return _arc.FileInfo_GetCreated(self)
def SetCreated(self, *args):
"""
void
Arc::FileInfo::SetCreated(const Time &t)
"""
return _arc.FileInfo_SetCreated(self, *args)
def CheckValid(self):
"""
bool
Arc::FileInfo::CheckValid() const
"""
return _arc.FileInfo_CheckValid(self)
def GetValid(self):
"""
Time
Arc::FileInfo::GetValid() const
"""
return _arc.FileInfo_GetValid(self)
def SetValid(self, *args):
"""
void
Arc::FileInfo::SetValid(const Time &t)
"""
return _arc.FileInfo_SetValid(self, *args)
def CheckType(self):
"""
bool
Arc::FileInfo::CheckType() const
"""
return _arc.FileInfo_CheckType(self)
def GetType(self):
"""
Type
Arc::FileInfo::GetType() const
"""
return _arc.FileInfo_GetType(self)
def SetType(self, *args):
"""
void
Arc::FileInfo::SetType(const Type t)
"""
return _arc.FileInfo_SetType(self, *args)
def CheckLatency(self):
"""
bool
Arc::FileInfo::CheckLatency() const
"""
return _arc.FileInfo_CheckLatency(self)
def GetLatency(self):
"""
std::string
Arc::FileInfo::GetLatency() const
"""
return _arc.FileInfo_GetLatency(self)
def SetLatency(self, *args):
"""
void
Arc::FileInfo::SetLatency(const std::string l)
"""
return _arc.FileInfo_SetLatency(self, *args)
def GetMetaData(self):
"""
std::map<std::string, std::string> Arc::FileInfo::GetMetaData() const
"""
return _arc.FileInfo_GetMetaData(self)
def SetMetaData(self, *args):
"""
void
Arc::FileInfo::SetMetaData(const std::string att, const std::string
val)
"""
return _arc.FileInfo_SetMetaData(self, *args)
def __lt__(self, *args): return _arc.FileInfo___lt__(self, *args)
FileInfo_swigregister = _arc.FileInfo_swigregister
FileInfo_swigregister(FileInfo)
def __lshift__(*args):
return _arc.__lshift__(*args)
__lshift__ = _arc.__lshift__
class URLMap(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, URLMap, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, URLMap, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::URLMap::URLMap() """
this = _arc.new_URLMap()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_URLMap
__del__ = lambda self : None;
def map(self, *args):
"""
bool Arc::URLMap::map(URL
&url) const
"""
return _arc.URLMap_map(self, *args)
def local(self, *args):
"""
bool
Arc::URLMap::local(const URL &url) const
"""
return _arc.URLMap_local(self, *args)
def add(self, *args):
"""
void Arc::URLMap::add(const
URL &templ, const URL &repl, const URL &accs=URL())
"""
return _arc.URLMap_add(self, *args)
def __nonzero__(self):
return _arc.URLMap___nonzero__(self)
__bool__ = __nonzero__
URLMap_swigregister = _arc.URLMap_swigregister
URLMap_swigregister(URLMap)
class DataPoint(_object):
"""
A DataPoint represents a data resource and is an abstraction of a URL.
DataPoint uses ARC's Plugin mechanism to dynamically load the required
Data Manager Component (DMC) when necessary. A DMC typically defines a
subclass of DataPoint (e.g. DataPointHTTP) and is responsible for a
specific protocol (e.g. http). DataPoints should not be used directly,
instead the DataHandle wrapper class should be used, which
automatically loads the correct DMC.
DataPoint defines methods for access to the data resource. To transfer
data between two DataPoints, DataMover::Transfer() can be used.
There are two subclasses of DataPoint, DataPointDirect and
DataPointIndex. None of these three classes can be instantiated
directly. DataPointDirect and its subclasses handle "physical"
resources through protocols such as file, http and gsiftp. These
classes implement methods such as StartReading() and StartWriting().
DataPointIndex and its subclasses handle resources such as indexes and
catalogs and implement methods like Resolve() and PreRegister().
When creating a new DMC, a subclass of either DataPointDirect or
DataPointIndex should be created, and the appropriate methods
implemented. DataPoint itself has no direct external dependencies, but
plugins may rely on third-party components. The new DMC must also add
itself to the list of available plugins and provide an Instance()
method which returns a new instance of itself, if the supplied
arguments are valid for the protocol. Here is an example
implementation of a new DMC for protocol MyProtocol which represents a
physical resource accessible through protocol my://
C++ includes: DataPoint.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataPoint, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataPoint, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
ACCESS_LATENCY_ZERO = _arc.DataPoint_ACCESS_LATENCY_ZERO
ACCESS_LATENCY_SMALL = _arc.DataPoint_ACCESS_LATENCY_SMALL
ACCESS_LATENCY_LARGE = _arc.DataPoint_ACCESS_LATENCY_LARGE
INFO_TYPE_MINIMAL = _arc.DataPoint_INFO_TYPE_MINIMAL
INFO_TYPE_NAME = _arc.DataPoint_INFO_TYPE_NAME
INFO_TYPE_TYPE = _arc.DataPoint_INFO_TYPE_TYPE
INFO_TYPE_TIMES = _arc.DataPoint_INFO_TYPE_TIMES
INFO_TYPE_CONTENT = _arc.DataPoint_INFO_TYPE_CONTENT
INFO_TYPE_ACCESS = _arc.DataPoint_INFO_TYPE_ACCESS
INFO_TYPE_STRUCT = _arc.DataPoint_INFO_TYPE_STRUCT
INFO_TYPE_REST = _arc.DataPoint_INFO_TYPE_REST
INFO_TYPE_ALL = _arc.DataPoint_INFO_TYPE_ALL
__swig_destroy__ = _arc.delete_DataPoint
__del__ = lambda self : None;
def GetURL(self):
"""
virtual const URL&
Arc::DataPoint::GetURL() const
Returns the URL that was passed to the constructor.
"""
return _arc.DataPoint_GetURL(self)
def GetUserConfig(self):
"""
virtual const
UserConfig& Arc::DataPoint::GetUserConfig() const
Returns the UserConfig that was passed to the constructor.
"""
return _arc.DataPoint_GetUserConfig(self)
def SetURL(self, *args):
"""
virtual bool
Arc::DataPoint::SetURL(const URL &url)
Assigns new URL. Main purpose of this method is to reuse existing
connection for accessing different object at same server.
Implementation does not have to implement this method. If supplied URL
is not suitable or method is not implemented false is returned.
"""
return _arc.DataPoint_SetURL(self, *args)
def str(self):
"""
virtual std::string
Arc::DataPoint::str() const
Returns a string representation of the DataPoint.
"""
return _arc.DataPoint_str(self)
def __nonzero__(self):
return _arc.DataPoint___nonzero__(self)
__bool__ = __nonzero__
def PrepareReading(self, *args):
"""
virtual
DataStatus Arc::DataPoint::PrepareReading(unsigned int timeout,
unsigned int &wait_time)
Prepare DataPoint for reading.
This method should be implemented by protocols which require
preparation or staging of physical files for reading. It can act
synchronously or asynchronously (if protocol supports it). In the
first case the method will block until the file is prepared or the
specified timeout has passed. In the second case the method can return
with a ReadPrepareWait status before the file is prepared. The caller
should then wait some time (a hint from the remote service may be
given in wait_time) and call PrepareReading() again to poll for the
preparation status, until the file is prepared. In this case it is
also up to the caller to decide when the request has taken too long
and if so cancel it by calling FinishReading(). When file preparation
has finished, the physical file(s) to read from can be found from
TransferLocations().
Parameters:
-----------
timeout: If non-zero, this method will block until either the file
has been prepared successfully or the timeout has passed. A zero value
means that the caller would like to call and poll for status.
wait_time: If timeout is zero (caller would like asynchronous
operation) and ReadPrepareWait is returned, a hint for how long to
wait before a subsequent call may be given in wait_time.
"""
return _arc.DataPoint_PrepareReading(self, *args)
def PrepareWriting(self, *args):
"""
virtual
DataStatus Arc::DataPoint::PrepareWriting(unsigned int timeout,
unsigned int &wait_time)
Prepare DataPoint for writing.
This method should be implemented by protocols which require
preparation of physical files for writing. It can act synchronously or
asynchronously (if protocol supports it). In the first case the method
will block until the file is prepared or the specified timeout has
passed. In the second case the method can return with a
WritePrepareWait status before the file is prepared. The caller should
then wait some time (a hint from the remote service may be given in
wait_time) and call PrepareWriting() again to poll for the preparation
status, until the file is prepared. In this case it is also up to the
caller to decide when the request has taken too long and if so cancel
or abort it by calling FinishWriting(true). When file preparation has
finished, the physical file(s) to write to can be found from
TransferLocations().
Parameters:
-----------
timeout: If non-zero, this method will block until either the file
has been prepared successfully or the timeout has passed. A zero value
means that the caller would like to call and poll for status.
wait_time: If timeout is zero (caller would like asynchronous
operation) and WritePrepareWait is returned, a hint for how long to
wait before a subsequent call may be given in wait_time.
"""
return _arc.DataPoint_PrepareWriting(self, *args)
def StartReading(self, *args):
"""
virtual
DataStatus Arc::DataPoint::StartReading(DataBuffer &buffer)=0
Start reading data from URL.
Separate thread to transfer data will be created. No other operation
can be performed while reading is in progress.
Parameters:
-----------
buffer: operation will use this buffer to put information into.
Should not be destroyed before StopReading() was called and returned.
"""
return _arc.DataPoint_StartReading(self, *args)
def StartWriting(self, *args):
"""
virtual
DataStatus Arc::DataPoint::StartWriting(DataBuffer &buffer,
DataCallback *space_cb=NULL)=0
Start writing data to URL.
Separate thread to transfer data will be created. No other operation
can be performed while writing is in progress.
Parameters:
-----------
buffer: operation will use this buffer to get information from.
Should not be destroyed before stop_writing was called and returned.
space_cb: callback which is called if there is not enough space to
store data. May not implemented for all protocols.
"""
return _arc.DataPoint_StartWriting(self, *args)
def StopReading(self):
"""
virtual
DataStatus Arc::DataPoint::StopReading()=0
Stop reading.
Must be called after corresponding start_reading method, either after
all data is transferred or to cancel transfer. Use buffer object to
find out when data is transferred. Must return failure if any happened
during transfer.
"""
return _arc.DataPoint_StopReading(self)
def StopWriting(self):
"""
virtual
DataStatus Arc::DataPoint::StopWriting()=0
Stop writing.
Must be called after corresponding start_writing method, either after
all data is transferred or to cancel transfer. Use buffer object to
find out when data is transferred. Must return failure if any happened
during transfer.
"""
return _arc.DataPoint_StopWriting(self)
def FinishReading(self, error = False):
"""
virtual
DataStatus Arc::DataPoint::FinishReading(bool error=false)
Finish reading from the URL.
Must be called after transfer of physical file has completed and if
PrepareReading() was called, to free resources, release requests that
were made during preparation etc.
Parameters:
-----------
error: If true then action is taken depending on the error.
"""
return _arc.DataPoint_FinishReading(self, error)
def FinishWriting(self, error = False):
"""
virtual
DataStatus Arc::DataPoint::FinishWriting(bool error=false)
Finish writing to the URL.
Must be called after transfer of physical file has completed and if
PrepareWriting() was called, to free resources, release requests that
were made during preparation etc.
Parameters:
-----------
error: If true then action is taken depending on the error.
"""
return _arc.DataPoint_FinishWriting(self, error)
def Check(self):
"""
virtual DataStatus
Arc::DataPoint::Check()=0
Query the DataPoint to check if object is accessible.
If possible this method will also try to provide meta information
about the object. It returns positive response if object's content can
be retrieved.
"""
return _arc.DataPoint_Check(self)
def Remove(self):
"""
virtual DataStatus
Arc::DataPoint::Remove()=0
Remove/delete object at URL.
"""
return _arc.DataPoint_Remove(self)
def Stat(self, *args):
"""
virtual DataStatus
Arc::DataPoint::Stat(FileInfo &file, DataPointInfoType
verb=INFO_TYPE_ALL)=0
Retrieve information about this object.
If the DataPoint represents a directory or something similar,
information about the object itself and not its contents will be
obtained.
Parameters:
-----------
file: will contain object name and requested attributes. There may be
more attributes than requested. There may be less if object can't
provide particular information.
verb: defines attribute types which method must try to retrieve. It
is not a failure if some attributes could not be retrieved due to
limitation of protocol or access control.
"""
return _arc.DataPoint_Stat(self, *args)
def List(self, *args):
"""
virtual DataStatus
Arc::DataPoint::List(std::list< FileInfo > &files, DataPointInfoType
verb=INFO_TYPE_ALL)=0
List hierarchical content of this object.
If the DataPoint represents a directory or something similar its
contents will be listed.
Parameters:
-----------
files: will contain list of file names and requested attributes.
There may be more attributes than requested. There may be less if
object can't provide particular information.
verb: defines attribute types which method must try to retrieve. It
is not a failure if some attributes could not be retrieved due to
limitation of protocol or access control.
"""
return _arc.DataPoint_List(self, *args)
def ReadOutOfOrder(self, *args):
"""
virtual void
Arc::DataPoint::ReadOutOfOrder(bool v)=0
Allow/disallow DataPoint to produce scattered data during reading*
operation.
Parameters:
-----------
v: true if allowed (default is false).
"""
return _arc.DataPoint_ReadOutOfOrder(self, *args)
def WriteOutOfOrder(self):
"""
virtual bool
Arc::DataPoint::WriteOutOfOrder()=0
Returns true if URL can accept scattered data for *writing* operation.
"""
return _arc.DataPoint_WriteOutOfOrder(self)
def SetAdditionalChecks(self, *args):
"""
virtual
void Arc::DataPoint::SetAdditionalChecks(bool v)=0
Allow/disallow additional checks.
Check for existence of remote file (and probably other checks too)
before initiating reading and writing operations.
Parameters:
-----------
v: true if allowed (default is true).
"""
return _arc.DataPoint_SetAdditionalChecks(self, *args)
def GetAdditionalChecks(self):
"""
virtual
bool Arc::DataPoint::GetAdditionalChecks() const =0
Check if additional checks before transfer will be performed.
"""
return _arc.DataPoint_GetAdditionalChecks(self)
def SetSecure(self, *args):
"""
virtual void
Arc::DataPoint::SetSecure(bool v)=0
Allow/disallow heavy security during data transfer.
Parameters:
-----------
v: true if allowed (default depends on protocol).
"""
return _arc.DataPoint_SetSecure(self, *args)
def GetSecure(self):
"""
virtual bool
Arc::DataPoint::GetSecure() const =0
Check if heavy security during data transfer is allowed.
"""
return _arc.DataPoint_GetSecure(self)
def Passive(self, *args):
"""
virtual void
Arc::DataPoint::Passive(bool v)=0
Request passive transfers for FTP-like protocols.
Parameters:
-----------
true: to request.
"""
return _arc.DataPoint_Passive(self, *args)
def GetFailureReason(self):
"""
virtual
DataStatus Arc::DataPoint::GetFailureReason(void) const
Returns reason of transfer failure, as reported by callbacks. This
could be different from the failure returned by the methods
themselves.
"""
return _arc.DataPoint_GetFailureReason(self)
def Range(self, start = 0, end = 0):
"""
virtual void
Arc::DataPoint::Range(unsigned long long int start=0, unsigned long
long int end=0)=0
Set range of bytes to retrieve.
Default values correspond to whole file.
"""
return _arc.DataPoint_Range(self, start, end)
def Resolve(self, *args):
"""
virtual DataStatus
Arc::DataPoint::Resolve(bool source)=0
Resolves index service URL into list of ordinary URLs.
Also obtains meta information about the file.
Parameters:
-----------
source: true if DataPoint object represents source of information.
"""
return _arc.DataPoint_Resolve(self, *args)
def Registered(self):
"""
virtual bool
Arc::DataPoint::Registered() const =0
Check if file is registered in Indexing Service.
Proper value is obtainable only after Resolve.
"""
return _arc.DataPoint_Registered(self)
def PreRegister(self, *args):
"""
virtual
DataStatus Arc::DataPoint::PreRegister(bool replication, bool
force=false)=0
Index service preregistration.
This function registers the physical location of a file into an
indexing service. It should be called *before* the actual transfer to
that location happens.
Parameters:
-----------
replication: if true, the file is being replicated between two
locations registered in the indexing service under same name.
force: if true, perform registration of a new file even if it already
exists. Should be used to fix failures in Indexing Service.
"""
return _arc.DataPoint_PreRegister(self, *args)
def PostRegister(self, *args):
"""
virtual
DataStatus Arc::DataPoint::PostRegister(bool replication)=0
Index Service postregistration.
Used for same purpose as PreRegister. Should be called after actual
transfer of file successfully finished.
Parameters:
-----------
replication: if true, the file is being replicated between two
locations registered in Indexing Service under same name.
"""
return _arc.DataPoint_PostRegister(self, *args)
def PreUnregister(self, *args):
"""
virtual
DataStatus Arc::DataPoint::PreUnregister(bool replication)=0
Index Service preunregistration.
Should be called if file transfer failed. It removes changes made by
PreRegister.
Parameters:
-----------
replication: if true, the file is being replicated between two
locations registered in Indexing Service under same name.
"""
return _arc.DataPoint_PreUnregister(self, *args)
def Unregister(self, *args):
"""
virtual DataStatus
Arc::DataPoint::Unregister(bool all)=0
Index Service unregistration.
Remove information about file registered in Indexing Service.
Parameters:
-----------
all: if true, information about file itself is (LFN) is removed.
Otherwise only particular physical instance is unregistered.
"""
return _arc.DataPoint_Unregister(self, *args)
def CheckSize(self):
"""
virtual bool
Arc::DataPoint::CheckSize() const
Check if meta-information 'size' is available.
"""
return _arc.DataPoint_CheckSize(self)
def SetSize(self, *args):
"""
virtual void
Arc::DataPoint::SetSize(const unsigned long long int val)
Set value of meta-information 'size'.
"""
return _arc.DataPoint_SetSize(self, *args)
def GetSize(self):
"""
virtual unsigned long
long int Arc::DataPoint::GetSize() const
Get value of meta-information 'size'.
"""
return _arc.DataPoint_GetSize(self)
def CheckCheckSum(self):
"""
virtual bool
Arc::DataPoint::CheckCheckSum() const
Check if meta-information 'checksum' is available.
"""
return _arc.DataPoint_CheckCheckSum(self)
def SetCheckSum(self, *args):
"""
virtual void
Arc::DataPoint::SetCheckSum(const std::string &val)
Set value of meta-information 'checksum'.
"""
return _arc.DataPoint_SetCheckSum(self, *args)
def GetCheckSum(self):
"""
virtual const
std::string& Arc::DataPoint::GetCheckSum() const
Get value of meta-information 'checksum'.
"""
return _arc.DataPoint_GetCheckSum(self)
def DefaultCheckSum(self):
"""
virtual const
std::string Arc::DataPoint::DefaultCheckSum() const
Default checksum type.
"""
return _arc.DataPoint_DefaultCheckSum(self)
def CheckCreated(self):
"""
virtual bool
Arc::DataPoint::CheckCreated() const
Check if meta-information 'creation/modification time' is available.
"""
return _arc.DataPoint_CheckCreated(self)
def SetCreated(self, *args):
"""
virtual void
Arc::DataPoint::SetCreated(const Time &val)
Set value of meta-information 'creation/modification time'.
"""
return _arc.DataPoint_SetCreated(self, *args)
def GetCreated(self):
"""
virtual const
Time& Arc::DataPoint::GetCreated() const
Get value of meta-information 'creation/modification time'.
"""
return _arc.DataPoint_GetCreated(self)
def CheckValid(self):
"""
virtual bool
Arc::DataPoint::CheckValid() const
Check if meta-information 'validity time' is available.
"""
return _arc.DataPoint_CheckValid(self)
def SetValid(self, *args):
"""
virtual void
Arc::DataPoint::SetValid(const Time &val)
Set value of meta-information 'validity time'.
"""
return _arc.DataPoint_SetValid(self, *args)
def GetValid(self):
"""
virtual const Time&
Arc::DataPoint::GetValid() const
Get value of meta-information 'validity time'.
"""
return _arc.DataPoint_GetValid(self)
def SetAccessLatency(self, *args):
"""
virtual void
Arc::DataPoint::SetAccessLatency(const DataPointAccessLatency
&latency)
Set value of meta-information 'access latency'.
"""
return _arc.DataPoint_SetAccessLatency(self, *args)
def GetAccessLatency(self):
"""
virtual
DataPointAccessLatency Arc::DataPoint::GetAccessLatency() const
Get value of meta-information 'access latency'.
"""
return _arc.DataPoint_GetAccessLatency(self)
def BufSize(self):
"""
virtual long long int
Arc::DataPoint::BufSize() const =0
Get suggested buffer size for transfers.
"""
return _arc.DataPoint_BufSize(self)
def BufNum(self):
"""
virtual int
Arc::DataPoint::BufNum() const =0
Get suggested number of buffers for transfers.
"""
return _arc.DataPoint_BufNum(self)
def Cache(self):
"""
virtual bool
Arc::DataPoint::Cache() const
Returns true if file is cacheable.
"""
return _arc.DataPoint_Cache(self)
def Local(self):
"""
virtual bool
Arc::DataPoint::Local() const =0
Returns true if file is local, e.g.file:// urls.
"""
return _arc.DataPoint_Local(self)
def ReadOnly(self):
"""
virtual bool
Arc::DataPoint::ReadOnly() const =0
"""
return _arc.DataPoint_ReadOnly(self)
def GetTries(self):
"""
virtual int
Arc::DataPoint::GetTries() const
Returns number of retries left.
"""
return _arc.DataPoint_GetTries(self)
def SetTries(self, *args):
"""
virtual void
Arc::DataPoint::SetTries(const int n)
Set number of retries.
"""
return _arc.DataPoint_SetTries(self, *args)
def NextTry(self):
"""
virtual void
Arc::DataPoint::NextTry(void)
Decrease number of retries left.
"""
return _arc.DataPoint_NextTry(self)
def IsIndex(self):
"""
virtual bool
Arc::DataPoint::IsIndex() const =0
Check if URL is an Indexing Service.
"""
return _arc.DataPoint_IsIndex(self)
def IsStageable(self):
"""
virtual bool
Arc::DataPoint::IsStageable() const
If URL should be staged or queried for Transport URL (TURL)
"""
return _arc.DataPoint_IsStageable(self)
def AcceptsMeta(self):
"""
virtual bool
Arc::DataPoint::AcceptsMeta() const =0
If endpoint can have any use from meta information.
"""
return _arc.DataPoint_AcceptsMeta(self)
def ProvidesMeta(self):
"""
virtual bool
Arc::DataPoint::ProvidesMeta() const =0
If endpoint can provide at least some meta information directly.
"""
return _arc.DataPoint_ProvidesMeta(self)
def SetMeta(self, *args):
"""
virtual void
Arc::DataPoint::SetMeta(const DataPoint &p)
Copy meta information from another object.
Already defined values are not overwritten.
Parameters:
-----------
p: object from which information is taken.
"""
return _arc.DataPoint_SetMeta(self, *args)
def CompareMeta(self, *args):
"""
virtual bool
Arc::DataPoint::CompareMeta(const DataPoint &p) const
Compare meta information from another object.
Undefined values are not used for comparison.
Parameters:
-----------
p: object to which to compare.
"""
return _arc.DataPoint_CompareMeta(self, *args)
def TransferLocations(self):
"""
virtual
std::vector<URL> Arc::DataPoint::TransferLocations() const
Returns physical file(s) to read/write, if different from
CurrentLocation()
To be used with protocols which re-direct to different URLs such as
Transport URLs (TURLs). The list is initially filled by PrepareReading
and PrepareWriting. If this list is non-empty then real transfer
should use a URL from this list. It is up to the caller to choose the
best URL and instantiate new DataPoint for handling it. For
consistency protocols which do not require redirections return
original URL. For protocols which need redirection calling
StartReading and StartWriting will use first URL in the list.
"""
return _arc.DataPoint_TransferLocations(self)
def CurrentLocation(self):
"""
virtual const
URL& Arc::DataPoint::CurrentLocation() const =0
Returns current (resolved) URL.
"""
return _arc.DataPoint_CurrentLocation(self)
def CurrentLocationMetadata(self):
"""
virtual const std::string& Arc::DataPoint::CurrentLocationMetadata()
const =0
Returns meta information used to create current URL.
Usage differs between different indexing services.
"""
return _arc.DataPoint_CurrentLocationMetadata(self)
def CompareLocationMetadata(self):
"""
virtual DataStatus Arc::DataPoint::CompareLocationMetadata() const =0
Compare metadata of DataPoint and current location.
Returns inconsistency error or error encountered during operation, or
success
"""
return _arc.DataPoint_CompareLocationMetadata(self)
def NextLocation(self):
"""
virtual bool
Arc::DataPoint::NextLocation()=0
Switch to next location in list of URLs.
At last location switch to first if number of allowed retries is not
exceeded. Returns false if no retries left.
"""
return _arc.DataPoint_NextLocation(self)
def LocationValid(self):
"""
virtual bool
Arc::DataPoint::LocationValid() const =0
Returns false if out of retries.
"""
return _arc.DataPoint_LocationValid(self)
def LastLocation(self):
"""
virtual bool
Arc::DataPoint::LastLocation()=0
Returns true if the current location is the last.
"""
return _arc.DataPoint_LastLocation(self)
def HaveLocations(self):
"""
virtual bool
Arc::DataPoint::HaveLocations() const =0
Returns true if number of resolved URLs is not 0.
"""
return _arc.DataPoint_HaveLocations(self)
def AddLocation(self, *args):
"""
virtual
DataStatus Arc::DataPoint::AddLocation(const URL &url, const
std::string &meta)=0
Add URL to list.
Parameters:
-----------
url: Location URL to add.
meta: Location meta information.
"""
return _arc.DataPoint_AddLocation(self, *args)
def RemoveLocation(self):
"""
virtual
DataStatus Arc::DataPoint::RemoveLocation()=0
Remove current URL from list.
"""
return _arc.DataPoint_RemoveLocation(self)
def RemoveLocations(self, *args):
"""
virtual
DataStatus Arc::DataPoint::RemoveLocations(const DataPoint &p)=0
Remove locations present in another DataPoint object.
"""
return _arc.DataPoint_RemoveLocations(self, *args)
def ClearLocations(self):
"""
virtual
DataStatus Arc::DataPoint::ClearLocations()=0
Remove all locations.
"""
return _arc.DataPoint_ClearLocations(self)
def AddCheckSumObject(self, *args):
"""
virtual int
Arc::DataPoint::AddCheckSumObject(CheckSum *cksum)=0
Add a checksum object which will compute checksum during transmission.
Parameters:
-----------
cksum: object which will compute checksum. Should not be destroyed
till DataPointer itself.
integer position in the list of checksum objects.
"""
return _arc.DataPoint_AddCheckSumObject(self, *args)
def GetCheckSumObject(self, *args):
"""
virtual
const CheckSum* Arc::DataPoint::GetCheckSumObject(int index) const =0
Get CheckSum object at given position in list.
"""
return _arc.DataPoint_GetCheckSumObject(self, *args)
def SortLocations(self, *args):
"""
virtual void
Arc::DataPoint::SortLocations(const std::string &pattern, const URLMap
&url_map)=0
Sort locations according to the specified pattern.
Parameters:
-----------
pattern: a set of strings, separated by |, to match against.
"""
return _arc.DataPoint_SortLocations(self, *args)
DataPoint_swigregister = _arc.DataPoint_swigregister
DataPoint_swigregister(DataPoint)
class DataPointLoader(_object):
"""
Class used by DataHandle to load the required DMC.
C++ includes: DataPoint.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataPointLoader, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataPointLoader, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
DataPointLoader_swigregister = _arc.DataPointLoader_swigregister
DataPointLoader_swigregister(DataPointLoader)
class DataPointPluginArgument(_object):
"""
Class representing the arguments passed to DMC plugins.
C++ includes: DataPoint.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataPointPluginArgument, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataPointPluginArgument, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::DataPointPluginArgument::DataPointPluginArgument(const URL &url,
const UserConfig &usercfg)
"""
this = _arc.new_DataPointPluginArgument(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DataPointPluginArgument
__del__ = lambda self : None;
DataPointPluginArgument_swigregister = _arc.DataPointPluginArgument_swigregister
DataPointPluginArgument_swigregister(DataPointPluginArgument)
class DataHandle(_object):
"""
This class is a wrapper around the DataPoint class.
It simplifies the construction, use and destruction of DataPoint
objects and should be used instead of DataPoint classes directly. The
appropriate DataPoint subclass is created automatically and stored
internally in DataHandle. A DataHandle instance can be thought of as a
pointer to the DataPoint instance and the DataPoint can be accessed
through the usual dereference operators. A DataHandle cannot be
copied.
This class is main way to access remote data items and obtain
information about them. Below is an example of accessing last 512
bytes of files stored at GridFTP server.
And the same example in python
C++ includes: DataHandle.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataHandle, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataHandle, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::DataHandle::DataHandle(const URL &url, const UserConfig &usercfg)
Construct a new DataHandle.
"""
this = _arc.new_DataHandle(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DataHandle
__del__ = lambda self : None;
def __ref__(self, *args): return _arc.DataHandle___ref__(self, *args)
def __nonzero__(self):
return _arc.DataHandle___nonzero__(self)
__bool__ = __nonzero__
__swig_getmethods__["GetPoint"] = lambda x: _arc.DataHandle_GetPoint
if _newclass:GetPoint = staticmethod(_arc.DataHandle_GetPoint)
DataHandle_swigregister = _arc.DataHandle_swigregister
DataHandle_swigregister(DataHandle)
def DataHandle_GetPoint(*args):
return _arc.DataHandle_GetPoint(*args)
DataHandle_GetPoint = _arc.DataHandle_GetPoint
DATASPEED_AVERAGING_PERIOD = _arc.DATASPEED_AVERAGING_PERIOD
class DataSpeed(_object):
"""
Keeps track of average and instantaneous transfer speed.
Also detects data transfer inactivity and other transfer timeouts.
C++ includes: DataSpeed.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataSpeed, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataSpeed, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::DataSpeed::DataSpeed(unsigned long long int min_speed, time_t
min_speed_time, unsigned long long int min_average_speed, time_t
max_inactivity_time, time_t base=DATASPEED_AVERAGING_PERIOD)
Constructor
Parameters:
-----------
base: time period used to average values (default 1 minute).
min_speed: minimal allowed speed (Butes per second). If speed drops
and holds below threshold for min_speed_time_ seconds error is
triggered.
min_speed_time:
min_average_speed_: minimal average speed (Bytes per second) to
trigger error. Averaged over whole current transfer time.
max_inactivity_time: - if no data is passing for specified amount of
time (seconds), error is triggered.
"""
this = _arc.new_DataSpeed(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DataSpeed
__del__ = lambda self : None;
def verbose(self, *args):
"""
bool
Arc::DataSpeed::verbose(void)
Check if speed information is going to be printed.
"""
return _arc.DataSpeed_verbose(self, *args)
def set_min_speed(self, *args):
"""
void
Arc::DataSpeed::set_min_speed(unsigned long long int min_speed, time_t
min_speed_time)
Set minimal allowed speed.
Parameters:
-----------
min_speed: minimal allowed speed (Butes per second). If speed drops
and holds below threshold for min_speed_time_ seconds error is
triggered.
min_speed_time:
"""
return _arc.DataSpeed_set_min_speed(self, *args)
def set_min_average_speed(self, *args):
"""
void
Arc::DataSpeed::set_min_average_speed(unsigned long long int
min_average_speed)
Set minmal avaerage speed.
Parameters:
-----------
min_average_speed_: minimal average speed (Bytes per second) to
trigger error. Averaged over whole current transfer time.
"""
return _arc.DataSpeed_set_min_average_speed(self, *args)
def set_max_inactivity_time(self, *args):
"""
void
Arc::DataSpeed::set_max_inactivity_time(time_t max_inactivity_time)
Set inactivity tiemout.
Parameters:
-----------
max_inactivity_time: - if no data is passing for specified amount of
time (seconds), error is triggered.
"""
return _arc.DataSpeed_set_max_inactivity_time(self, *args)
def get_max_inactivity_time(self):
"""
time_t Arc::DataSpeed::get_max_inactivity_time()
Get inactivity timeout.
"""
return _arc.DataSpeed_get_max_inactivity_time(self)
def set_base(self, base_ = 60):
"""
void
Arc::DataSpeed::set_base(time_t base_=DATASPEED_AVERAGING_PERIOD)
Set averaging time period.
Parameters:
-----------
base: time period used to average values (default 1 minute).
"""
return _arc.DataSpeed_set_base(self, base_)
def set_max_data(self, max = 0):
"""
void
Arc::DataSpeed::set_max_data(unsigned long long int max=0)
Set amount of data to be transferred. Used in verbose messages.
Parameters:
-----------
max: amount of data in bytes.
"""
return _arc.DataSpeed_set_max_data(self, max)
def set_progress_indicator(self, func = 0):
"""
void
Arc::DataSpeed::set_progress_indicator(show_progress_t func=NULL)
Specify which external function will print verbose messages. If not
specified internal one is used.
Parameters:
-----------
pointer: to function which prints information.
"""
return _arc.DataSpeed_set_progress_indicator(self, func)
def reset(self):
"""
void
Arc::DataSpeed::reset(void)
Reset all counters and triggers.
"""
return _arc.DataSpeed_reset(self)
def transfer(self, n = 0):
"""
bool
Arc::DataSpeed::transfer(unsigned long long int n=0)
Inform object, about amount of data has been transferred. All errors
are triggered by this method. To make them work application must call
this method periodically even with zero value.
Parameters:
-----------
n: amount of data transferred (bytes).
"""
return _arc.DataSpeed_transfer(self, n)
def hold(self, *args):
"""
void
Arc::DataSpeed::hold(bool disable)
Turn off speed control.
Parameters:
-----------
disable: true to turn off.
"""
return _arc.DataSpeed_hold(self, *args)
def min_speed_failure(self):
"""
bool
Arc::DataSpeed::min_speed_failure()
Check if minimal speed error was triggered.
"""
return _arc.DataSpeed_min_speed_failure(self)
def min_average_speed_failure(self):
"""
bool Arc::DataSpeed::min_average_speed_failure()
Check if minimal average speed error was triggered.
"""
return _arc.DataSpeed_min_average_speed_failure(self)
def max_inactivity_time_failure(self):
"""
bool Arc::DataSpeed::max_inactivity_time_failure()
Check if maximal inactivity time error was triggered.
"""
return _arc.DataSpeed_max_inactivity_time_failure(self)
def transferred_size(self):
"""
unsigned
long long int Arc::DataSpeed::transferred_size(void)
Returns amount of data this object knows about.
"""
return _arc.DataSpeed_transferred_size(self)
DataSpeed_swigregister = _arc.DataSpeed_swigregister
DataSpeed_swigregister(DataSpeed)
class DataBuffer(_object):
"""
Represents set of buffers.
This class is used used during data transfer using DataPoint classes.
C++ includes: DataBuffer.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataBuffer, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataBuffer, name)
__repr__ = _swig_repr
__swig_setmethods__["speed"] = _arc.DataBuffer_speed_set
__swig_getmethods__["speed"] = _arc.DataBuffer_speed_get
if _newclass:speed = _swig_property(_arc.DataBuffer_speed_get, _arc.DataBuffer_speed_set)
def __nonzero__(self):
return _arc.DataBuffer___nonzero__(self)
__bool__ = __nonzero__
def __init__(self, *args):
"""
Arc::DataBuffer::DataBuffer(CheckSum *cksum, unsigned int size=65536,
int blocks=3)
Contructor
Parameters:
-----------
size: size of every buffer in bytes.
blocks: number of buffers.
cksum: object which will compute checksum. Should not be destroyed
till DataBuffer itself.
"""
this = _arc.new_DataBuffer(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DataBuffer
__del__ = lambda self : None;
def set(self, cksum = None, size = 65536, blocks = 3):
"""
bool
Arc::DataBuffer::set(CheckSum *cksum=NULL, unsigned int size=65536,
int blocks=3)
Reinitialize buffers with different parameters.
Parameters:
-----------
size: size of every buffer in bytes.
blocks: number of buffers.
cksum: object which will compute checksum. Should not be destroyed
till DataBuffer itself.
"""
return _arc.DataBuffer_set(self, cksum, size, blocks)
def add(self, *args):
"""
int
Arc::DataBuffer::add(CheckSum *cksum)
Add a checksum object which will compute checksum of buffer.
Parameters:
-----------
cksum: object which will compute checksum. Should not be destroyed
till DataBuffer itself.
integer position in the list of checksum objects.
"""
return _arc.DataBuffer_add(self, *args)
def is_written(self, *args):
"""
bool
Arc::DataBuffer::is_written(char *buf)
Informs object that data was written from buffer.
Parameters:
-----------
buf: - address of buffer
"""
return _arc.DataBuffer_is_written(self, *args)
def is_notwritten(self, *args):
"""
bool
Arc::DataBuffer::is_notwritten(char *buf)
Informs object that data was NOT written from buffer (and releases
buffer).
Parameters:
-----------
buf: - address of buffer
"""
return _arc.DataBuffer_is_notwritten(self, *args)
def eof_read(self, *args):
"""
bool
Arc::DataBuffer::eof_read()
Returns true if object was informed about end of transfer on 'read'
side.
"""
return _arc.DataBuffer_eof_read(self, *args)
def eof_write(self, *args):
"""
bool
Arc::DataBuffer::eof_write()
Returns true if object was informed about end of transfer on 'write'
side.
"""
return _arc.DataBuffer_eof_write(self, *args)
def error_read(self, *args):
"""
bool
Arc::DataBuffer::error_read()
Returns true if object was informed about error on 'read' side.
"""
return _arc.DataBuffer_error_read(self, *args)
def error_write(self, *args):
"""
bool
Arc::DataBuffer::error_write()
Returns true if object was informed about error on 'write' side.
"""
return _arc.DataBuffer_error_write(self, *args)
def error_transfer(self):
"""
bool
Arc::DataBuffer::error_transfer()
Returns true if eror occured inside object.
"""
return _arc.DataBuffer_error_transfer(self)
def error(self):
"""
bool
Arc::DataBuffer::error()
Returns true if object was informed about error or internal error
occured.
"""
return _arc.DataBuffer_error(self)
def wait_any(self):
"""
bool
Arc::DataBuffer::wait_any()
Wait (max 60 sec.) till any action happens in object. Returns true if
action is eof on any side.
"""
return _arc.DataBuffer_wait_any(self)
def wait_used(self):
"""
bool
Arc::DataBuffer::wait_used()
Wait till there are no more used buffers left in object.
"""
return _arc.DataBuffer_wait_used(self)
def wait_for_read(self):
"""
bool
Arc::DataBuffer::wait_for_read()
Wait till no more buffers taken for "READING INTO" left in object.
"""
return _arc.DataBuffer_wait_for_read(self)
def wait_for_write(self):
"""
bool
Arc::DataBuffer::wait_for_write()
Wait till no more buffers taken for "WRITING FROM" left in object.
"""
return _arc.DataBuffer_wait_for_write(self)
def checksum_valid(self, *args):
"""
bool
Arc::DataBuffer::checksum_valid(int index) const
"""
return _arc.DataBuffer_checksum_valid(self, *args)
def checksum_object(self, *args):
"""
const
CheckSum* Arc::DataBuffer::checksum_object(int index) const
"""
return _arc.DataBuffer_checksum_object(self, *args)
def wait_eof_read(self):
"""
bool
Arc::DataBuffer::wait_eof_read()
Wait till end of transfer happens on 'read' side.
"""
return _arc.DataBuffer_wait_eof_read(self)
def wait_read(self):
"""
bool
Arc::DataBuffer::wait_read()
Wait till end of transfer or error happens on 'read' side.
"""
return _arc.DataBuffer_wait_read(self)
def wait_eof_write(self):
"""
bool
Arc::DataBuffer::wait_eof_write()
Wait till end of transfer happens on 'write' side.
"""
return _arc.DataBuffer_wait_eof_write(self)
def wait_write(self):
"""
bool
Arc::DataBuffer::wait_write()
Wait till end of transfer or error happens on 'write' side.
"""
return _arc.DataBuffer_wait_write(self)
def wait_eof(self):
"""
bool
Arc::DataBuffer::wait_eof()
Wait till end of transfer happens on any side.
"""
return _arc.DataBuffer_wait_eof(self)
def eof_position(self):
"""
unsigned long
long int Arc::DataBuffer::eof_position() const
Returns offset following last piece of data transferred.
"""
return _arc.DataBuffer_eof_position(self)
def buffer_size(self):
"""
unsigned int
Arc::DataBuffer::buffer_size() const
Returns size of buffer in object. If not initialized then this number
represents size of default buffer.
"""
return _arc.DataBuffer_buffer_size(self)
def for_write(self, *args):
"""
bool
Arc::DataBuffer::for_write()
Check if there are buffers which can be taken by for_write(). This
function checks only for buffers and does not take eof and error
conditions into account.
"""
return _arc.DataBuffer_for_write(self, *args)
def for_read(self, *args):
"""
bool
Arc::DataBuffer::for_read()
Check if there are buffers which can be taken by for_read(). This
function checks only for buffers and does not take eof and error
conditions into account.
"""
return _arc.DataBuffer_for_read(self, *args)
def is_read(self, *args):
"""
bool
Arc::DataBuffer::is_read(char *buf, unsigned int length, unsigned long
long int offset)
Informs object that data was read into buffer.
Parameters:
-----------
buf: - address of buffer
length: amount of data.
offset: offset in stream, file, etc.
"""
return _arc.DataBuffer_is_read(self, *args)
DataBuffer_swigregister = _arc.DataBuffer_swigregister
DataBuffer_swigregister(DataBuffer)
class CacheParameters(_object):
"""
Contains data on the parameters of a cache.
C++ includes: FileCache.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CacheParameters, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CacheParameters, name)
__repr__ = _swig_repr
__swig_setmethods__["cache_path"] = _arc.CacheParameters_cache_path_set
__swig_getmethods__["cache_path"] = _arc.CacheParameters_cache_path_get
if _newclass:cache_path = _swig_property(_arc.CacheParameters_cache_path_get, _arc.CacheParameters_cache_path_set)
__swig_setmethods__["cache_link_path"] = _arc.CacheParameters_cache_link_path_set
__swig_getmethods__["cache_link_path"] = _arc.CacheParameters_cache_link_path_get
if _newclass:cache_link_path = _swig_property(_arc.CacheParameters_cache_link_path_get, _arc.CacheParameters_cache_link_path_set)
def __init__(self):
this = _arc.new_CacheParameters()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_CacheParameters
__del__ = lambda self : None;
CacheParameters_swigregister = _arc.CacheParameters_swigregister
CacheParameters_swigregister(CacheParameters)
class FileCache(_object):
"""
FileCache provides an interface to all cache operations.
When it is decided a file should be downloaded to the cache, Start()
should be called, so that the cache file can be prepared and locked if
necessary. If the file is already available it is not locked and
Link() can be called immediately to create a hard link to a per-job
directory in the cache and then soft link, or copy the file directly
to the session directory so it can be accessed from the user's job. If
the file is not available, Start() will lock it, then after
downloading Link() can be called. Stop() must then be called to
release the lock. If the transfer failed, StopAndDelete() can be
called to clean up the cache file. After a job has finished, Release()
should be called to remove the hard links created for that job.
Cache files are locked for writing using the FileLock class, which
creates a lock file with the '.lock' suffix next to the cache file. If
Start() is called and the cache file is not already available, it
creates this lock and Stop() must be called to release it. All
processes calling Start() must wait until they successfully obtain the
lock before downloading can begin.
The cache directory(ies) and the optional directory to link to when
the soft-links are made are set in the constructor. The names of cache
files are formed from an SHA-1 hash of the URL to cache. To ease the
load on the file system, the cache files are split into subdirectories
based on the first two characters in the hash. For example the file
with hash 76f11edda169848038efbd9fa3df5693 is stored in
76/f11edda169848038efbd9fa3df5693. A cache filename can be found by
passing the URL to Find(). For more information on the structure of
the cache, see the ARC Computing Element System Administrator Guide
(NORDUGRID- MANUAL-20).
C++ includes: FileCache.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, FileCache, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, FileCache, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::FileCache::FileCache()
Default constructor. Invalid cache.
"""
this = _arc.new_FileCache(*args)
try: self.this.append(this)
except: self.this = this
def Start(self, *args):
"""
bool
Arc::FileCache::Start(const std::string &url, bool &available, bool
&is_locked, bool use_remote=true, bool delete_first=false)
Start preparing to cache the file specified by url.
Start() returns true if the file was successfully prepared. The
available parameter is set to true if the file already exists and in
this case Link() can be called immediately. If available is false the
caller should write the file and then call Link() followed by Stop().
It returns false if it was unable to prepare the cache file for any
reason. In this case the is_locked parameter should be checked and if
it is true the file is locked by another process and the caller should
try again later.
Parameters:
-----------
url: url that is being downloaded
available: true on exit if the file is already in cache
is_locked: true on exit if the file is already locked, ie cannot be
used by this process
use_remote: Whether to look to see if the file exists in a remote
cache. Can be set to false if for example a forced download to cache
is desired.
delete_first: If true then any existing cache file is deleted.
"""
return _arc.FileCache_Start(self, *args)
def Stop(self, *args):
"""
bool
Arc::FileCache::Stop(const std::string &url)
Stop the cache after a file was downloaded.
This method (or stopAndDelete) must be called after file was
downloaded or download failed, to release the lock on the cache file.
Stop() does not delete the cache file. It returns false if the lock
file does not exist, or another pid was found inside the lock file
(this means another process took over the lock so this process must go
back to Start()), or if it fails to delete the lock file. It must only
be called if the caller holds the writing lock.
Parameters:
-----------
url: the url of the file that was downloaded
"""
return _arc.FileCache_Stop(self, *args)
def StopAndDelete(self, *args):
"""
bool
Arc::FileCache::StopAndDelete(const std::string &url)
Stop the cache after a file was downloaded and delete the cache file.
Release the cache file and delete it, because for example a failed
download left an incomplete copy. This method also deletes the meta
file which contains the url corresponding to the cache file. The logic
of the return value is the same as Stop(). It must only be called if
the caller holds the writing lock.
Parameters:
-----------
url: the url corresponding to the cache file that has to be released
and deleted
"""
return _arc.FileCache_StopAndDelete(self, *args)
def File(self, *args):
"""
std::string
Arc::FileCache::File(const std::string &url)
Get the cache filename for the given URL.
Returns the full pathname of the file in the cache which corresponds
to the given url.
Parameters:
-----------
url: the URL to look for in the cache
"""
return _arc.FileCache_File(self, *args)
def Link(self, *args):
"""
bool
Arc::FileCache::Link(const std::string &link_path, const std::string
&url, bool copy, bool executable, bool holding_lock, bool &try_again)
Link a cache file to the place it will be used.
Create a hard-link to the per-job dir from the cache dir, and then a
soft-link from here to the session directory. This is effectively
'claiming' the file for the job, so even if the original cache file is
deleted, eg by some external process, the hard link still exists until
it is explicitly released by calling Release().
If cache_link_path is set to "." or copy or executable is true then
files will be copied directly to the session directory rather than
linked.
After linking or copying, the cache file is checked for the presence
of a write lock, and whether the modification time has changed since
linking started (in case the file was locked, modified then released
during linking). If either of these are true the links created during
Link() are deleted and try_again is set to true. The caller should
then go back to Start(). If the caller has obtained a write lock from
Start() and then downloaded the file, it should set holding_lock to
true, in which case none of the above checks are performed.
The session directory is accessed under the uid and gid passed in the
constructor.
Parameters:
-----------
link_path: path to the session dir for soft-link or new file
url: url of file to link to or copy
copy: If true the file is copied rather than soft-linked to the
session dir
executable: If true then file is copied and given execute permissions
in the session dir
holding_lock: Should be set to true if the caller already holds the
lock
try_again: If after linking the cache file was found to be locked,
deleted or modified, then try_again is set to true
"""
return _arc.FileCache_Link(self, *args)
def Release(self):
"""
bool
Arc::FileCache::Release() const
Release cache files used in this cache.
Release claims on input files for the job specified by id. For each
cache directory the per-job directory with the hard-links will be
deleted.
"""
return _arc.FileCache_Release(self)
def AddDN(self, *args):
"""
bool
Arc::FileCache::AddDN(const std::string &url, const std::string &DN,
const Time &expiry_time)
Store a DN in the permissions cache for the given url.
Add the given DN to the list of cached DNs with the given expiry time.
Parameters:
-----------
url: the url corresponding to the cache file to which we want to add
a cached DN
DN: the DN of the user
expiry_time: the expiry time of this DN in the DN cache
"""
return _arc.FileCache_AddDN(self, *args)
def CheckDN(self, *args):
"""
bool
Arc::FileCache::CheckDN(const std::string &url, const std::string &DN)
Check if a DN exists in the permission cache for the given url.
Check if the given DN is cached for authorisation.
Parameters:
-----------
url: the url corresponding to the cache file for which we want to
check the cached DN
DN: the DN of the user
"""
return _arc.FileCache_CheckDN(self, *args)
def CheckCreated(self, *args):
"""
bool
Arc::FileCache::CheckCreated(const std::string &url)
Check if it is possible to obtain the creation time of a cache file.
Returns true if the file exists in the cache, since the creation time
is the creation time of the cache file.
Parameters:
-----------
url: the url corresponding to the cache file for which we want to
know if the creation date exists
"""
return _arc.FileCache_CheckCreated(self, *args)
def GetCreated(self, *args):
"""
Time
Arc::FileCache::GetCreated(const std::string &url)
Get the creation time of a cached file.
If the cache file does not exist, 0 is returned.
Parameters:
-----------
url: the url corresponding to the cache file for which we want to
know the creation date
"""
return _arc.FileCache_GetCreated(self, *args)
def CheckValid(self, *args):
"""
bool
Arc::FileCache::CheckValid(const std::string &url)
Check if there is an expiry time of the given url in the cache.
Parameters:
-----------
url: the url corresponding to the cache file for which we want to
know if the expiration time exists
"""
return _arc.FileCache_CheckValid(self, *args)
def GetValid(self, *args):
"""
Time
Arc::FileCache::GetValid(const std::string &url)
Get expiry time of a cached file.
If the time is not available, a time equivalent to 0 is returned.
Parameters:
-----------
url: the url corresponding to the cache file for which we want to
know the expiry time
"""
return _arc.FileCache_GetValid(self, *args)
def SetValid(self, *args):
"""
bool
Arc::FileCache::SetValid(const std::string &url, const Time &val)
Set expiry time of a cache file.
Parameters:
-----------
url: the url corresponding to the cache file for which we want to set
the expiry time
val: expiry time
"""
return _arc.FileCache_SetValid(self, *args)
def __nonzero__(self):
return _arc.FileCache___nonzero__(self)
__bool__ = __nonzero__
def __eq__(self, *args): return _arc.FileCache___eq__(self, *args)
__swig_destroy__ = _arc.delete_FileCache
__del__ = lambda self : None;
FileCache_swigregister = _arc.FileCache_swigregister
FileCache_swigregister(FileCache)
class DataMover(_object):
"""
DataMover provides an interface to transfer data between two
DataPoints.
Its main action is represented by Transfer methods
C++ includes: DataMover.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DataMover, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DataMover, name)
__repr__ = _swig_repr
def __init__(self):
"""
Arc::DataMover::DataMover()
Constructor.
"""
this = _arc.new_DataMover()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DataMover
__del__ = lambda self : None;
def Transfer(self, *args):
"""
DataStatus
Arc::DataMover::Transfer(DataPoint &source, DataPoint &destination,
FileCache &cache, const URLMap &map, unsigned long long int min_speed,
time_t min_speed_time, unsigned long long int min_average_speed,
time_t max_inactivity_time, callback cb=NULL, void *arg=NULL, const
char *prefix=NULL)
Initiates transfer from 'source' to 'destination'.
Parameters:
-----------
min_speed: minimal allowed current speed.
min_speed_time: time for which speed should be less than 'min_speed'
before transfer fails.
min_average_speed: minimal allowed average speed.
max_inactivity_time: time for which should be no activity before
transfer fails.
"""
return _arc.DataMover_Transfer(self, *args)
def Delete(self, *args):
"""
DataStatus
Arc::DataMover::Delete(DataPoint &url, bool errcont=false)
Delete the file at url.
"""
return _arc.DataMover_Delete(self, *args)
def verbose(self, *args):
"""
void
Arc::DataMover::verbose(const std::string &prefix)
Activate printing information about transfer status.
Parameters:
-----------
prefix: use this string if 'prefix' in DataMover::Transfer is NULL.
"""
return _arc.DataMover_verbose(self, *args)
def retry(self, *args):
"""
void
Arc::DataMover::retry(bool)
Set if transfer will be retried in case of failure.
"""
return _arc.DataMover_retry(self, *args)
def secure(self, *args):
"""
void
Arc::DataMover::secure(bool)
Set if high level of security (encryption) will be used during
transfer if available.
"""
return _arc.DataMover_secure(self, *args)
def passive(self, *args):
"""
void
Arc::DataMover::passive(bool)
Set if passive transfer should be used for FTP-like transfers.
"""
return _arc.DataMover_passive(self, *args)
def force_to_meta(self, *args):
"""
void
Arc::DataMover::force_to_meta(bool)
Set if file should be transferred and registered even if such LFN is
already registered and source is not one of registered locations.
"""
return _arc.DataMover_force_to_meta(self, *args)
def checks(self, *args):
"""
void
Arc::DataMover::checks(bool v)
Set if to make check for existence of remote file (and probably other
checks too) before initiating 'reading' and 'writing' operations.
Parameters:
-----------
v: true if allowed (default is true).
"""
return _arc.DataMover_checks(self, *args)
def set_default_min_speed(self, *args):
"""
void
Arc::DataMover::set_default_min_speed(unsigned long long int
min_speed, time_t min_speed_time)
Set minimal allowed transfer speed (default is 0) to 'min_speed'. If
speed drops below for time longer than 'min_speed_time' error is
raised. For more information see description of DataSpeed class.
"""
return _arc.DataMover_set_default_min_speed(self, *args)
def set_default_min_average_speed(self, *args):
"""
void Arc::DataMover::set_default_min_average_speed(unsigned long long
int min_average_speed)
Set minimal allowed average transfer speed (default is 0 averaged over
whole time of transfer. For more information see description of
DataSpeed class.
"""
return _arc.DataMover_set_default_min_average_speed(self, *args)
def set_default_max_inactivity_time(self, *args):
"""
void Arc::DataMover::set_default_max_inactivity_time(time_t
max_inactivity_time)
Set maximal allowed time for waiting for any data. For more
information see description of DataSpeed class.
"""
return _arc.DataMover_set_default_max_inactivity_time(self, *args)
def set_progress_indicator(self, func = 0):
"""
void
Arc::DataMover::set_progress_indicator(DataSpeed::show_progress_t
func=NULL)
Set function which is called every second during the transfer.
"""
return _arc.DataMover_set_progress_indicator(self, func)
def set_preferred_pattern(self, *args):
"""
void
Arc::DataMover::set_preferred_pattern(const std::string &pattern)
Set a preferred pattern for ordering of replicas.
"""
return _arc.DataMover_set_preferred_pattern(self, *args)
DataMover_swigregister = _arc.DataMover_swigregister
DataMover_swigregister(DataMover)
class DelegationConsumer(_object):
"""
A consumer of delegated X509 credentials. During delegation procedure
this class acquires delegated credentials aka proxy - certificate,
private key and chain of previous certificates. Delegation procedure
consists of calling Request() method for generating certificate
request followed by call to Acquire() method for making complete
credentials from certificate chain.
C++ includes: DelegationInterface.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DelegationConsumer, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DelegationConsumer, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::DelegationConsumer::DelegationConsumer(const std::string
&content)
Creates object with provided private key
"""
this = _arc.new_DelegationConsumer(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DelegationConsumer
__del__ = lambda self : None;
def __nonzero__(self):
return _arc.DelegationConsumer___nonzero__(self)
__bool__ = __nonzero__
def ID(self):
"""
const
std::string& Arc::DelegationConsumer::ID(void)
Return identifier of this object - not implemented
"""
return _arc.DelegationConsumer_ID(self)
def Backup(self):
"""
bool
Arc::DelegationConsumer::Backup(std::string &content)
Stores content of this object into a string
"""
return _arc.DelegationConsumer_Backup(self)
def Restore(self, *args):
"""
bool
Arc::DelegationConsumer::Restore(const std::string &content)
Restores content of object from string
"""
return _arc.DelegationConsumer_Restore(self, *args)
def Request(self):
"""
bool
Arc::DelegationConsumer::Request(std::string &content)
Make X509 certificate request from internal private key
"""
return _arc.DelegationConsumer_Request(self)
def Acquire(self):
"""
bool
Arc::DelegationConsumer::Acquire(std::string &content, std::string
&identity)
Includes the functionality of Acquire(content) plus extracting the
credential identity.
"""
return _arc.DelegationConsumer_Acquire(self)
DelegationConsumer_swigregister = _arc.DelegationConsumer_swigregister
DelegationConsumer_swigregister(DelegationConsumer)
class DelegationProvider(_object):
"""
A provider of delegated credentials. During delegation procedure this
class generates new credential to be used in proxy/delegated
credential.
C++ includes: DelegationInterface.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DelegationProvider, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DelegationProvider, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::DelegationProvider::DelegationProvider(const std::string
&cert_file, const std::string &key_file, std::istream *inpwd=NULL)
Creates instance from provided credentials. Credentials are used to
sign delegated credentials. Arguments should contain filesystem path
to PEM-encoded certificate and private key. Optionally cert_file may
contain certificates chain.
"""
this = _arc.new_DelegationProvider(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DelegationProvider
__del__ = lambda self : None;
def __nonzero__(self):
return _arc.DelegationProvider___nonzero__(self)
__bool__ = __nonzero__
def Delegate(self, *args):
"""
std::string
Arc::DelegationProvider::Delegate(const std::string &request, const
DelegationRestrictions &restrictions=DelegationRestrictions())
Perform delegation. Takes X509 certificate request and creates proxy
credentials excluding private key. Result is then to be fed into
DelegationConsumer::Acquire
"""
return _arc.DelegationProvider_Delegate(self, *args)
DelegationProvider_swigregister = _arc.DelegationProvider_swigregister
DelegationProvider_swigregister(DelegationProvider)
class DelegationConsumerSOAP(DelegationConsumer):
"""
This class extends DelegationConsumer to support SOAP message
exchange. Implements WS
interfacehttp://www.nordugrid.org/schemas/delegation described in
delegation.wsdl.
C++ includes: DelegationInterface.h
"""
__swig_setmethods__ = {}
for _s in [DelegationConsumer]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, DelegationConsumerSOAP, name, value)
__swig_getmethods__ = {}
for _s in [DelegationConsumer]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, DelegationConsumerSOAP, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Arc::DelegationConsumerSOAP::DelegationConsumerSOAP(const std::string
&content)
Creates object with specified private key
"""
this = _arc.new_DelegationConsumerSOAP(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DelegationConsumerSOAP
__del__ = lambda self : None;
def DelegateCredentialsInit(self, *args):
"""
bool
Arc::DelegationConsumerSOAP::DelegateCredentialsInit(const std::string
&id, const SOAPEnvelope &in, SOAPEnvelope &out)
Process SOAP message which starts delagation. Generated message in
'out' is meant to be sent back to DelagationProviderSOAP. Argument
'id' contains identifier of procedure and is used only to produce SOAP
message.
"""
return _arc.DelegationConsumerSOAP_DelegateCredentialsInit(self, *args)
def UpdateCredentials(self, *args):
"""
bool Arc::DelegationConsumerSOAP::UpdateCredentials(std::string
&credentials, std::string &identity, const SOAPEnvelope &in,
SOAPEnvelope &out)
Includes the functionality in above UpdateCredentials method; plus
extracting the credential identity
"""
return _arc.DelegationConsumerSOAP_UpdateCredentials(self, *args)
def DelegatedToken(self, *args):
"""
bool Arc::DelegationConsumerSOAP::DelegatedToken(std::string
&credentials, std::string &identity, XMLNode token)
"""
return _arc.DelegationConsumerSOAP_DelegatedToken(self, *args)
DelegationConsumerSOAP_swigregister = _arc.DelegationConsumerSOAP_swigregister
DelegationConsumerSOAP_swigregister(DelegationConsumerSOAP)
class DelegationProviderSOAP(DelegationProvider):
"""
Extension of DelegationProvider with SOAP exchange interface. This
class is also a temporary container for intermediate information used
during delegation procedure.
C++ includes: DelegationInterface.h
"""
__swig_setmethods__ = {}
for _s in [DelegationProvider]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, DelegationProviderSOAP, name, value)
__swig_getmethods__ = {}
for _s in [DelegationProvider]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, DelegationProviderSOAP, name)
__repr__ = _swig_repr
ARCDelegation = _arc.DelegationProviderSOAP_ARCDelegation
GDS10 = _arc.DelegationProviderSOAP_GDS10
GDS10RENEW = _arc.DelegationProviderSOAP_GDS10RENEW
GDS20 = _arc.DelegationProviderSOAP_GDS20
GDS20RENEW = _arc.DelegationProviderSOAP_GDS20RENEW
EMIES = _arc.DelegationProviderSOAP_EMIES
def __init__(self, *args):
"""
Arc::DelegationProviderSOAP::DelegationProviderSOAP(const std::string
&cert_file, const std::string &key_file, std::istream *inpwd=NULL)
Creates instance from provided credentials. Credentials are used to
sign delegated credentials. Arguments should contain filesystem path
to PEM-encoded certificate and private key. Optionally cert_file may
contain certificates chain.
"""
this = _arc.new_DelegationProviderSOAP(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DelegationProviderSOAP
__del__ = lambda self : None;
def DelegateCredentialsInit(self, *args):
"""
bool
Arc::DelegationProviderSOAP::DelegateCredentialsInit(MCCInterface
&mcc_interface, MessageAttributes *attributes_in, MessageAttributes
*attributes_out, MessageContext *context, ServiceType
stype=ARCDelegation)
Extended version of
DelegateCredentialsInit(MCCInterface&,MessageContext*). Additionally
takes attributes for request and response message to make fine control
on message processing possible.
"""
return _arc.DelegationProviderSOAP_DelegateCredentialsInit(self, *args)
def UpdateCredentials(self, *args):
"""
bool Arc::DelegationProviderSOAP::UpdateCredentials(MCCInterface
&mcc_interface, MessageAttributes *attributes_in, MessageAttributes
*attributes_out, MessageContext *context, const DelegationRestrictions
&restrictions=DelegationRestrictions(), ServiceType
stype=ARCDelegation)
Extended version of UpdateCredentials(MCCInterface&,MessageContext*).
Additionally takes attributes for request and response message to make
fine control on message processing possible.
"""
return _arc.DelegationProviderSOAP_UpdateCredentials(self, *args)
def DelegatedToken(self, *args):
"""
bool Arc::DelegationProviderSOAP::DelegatedToken(XMLNode parent)
Generates DelegatedToken element. Element is created as child of
provided XML element and contains structure described in
delegation.wsdl.
"""
return _arc.DelegationProviderSOAP_DelegatedToken(self, *args)
def ID(self):
"""
const
std::string& Arc::DelegationProviderSOAP::ID(void)
Returns the identifier provided by service accepting delegated
credentials. This identifier may then be used to refer to credentials
stored at service.
"""
return _arc.DelegationProviderSOAP_ID(self)
DelegationProviderSOAP_swigregister = _arc.DelegationProviderSOAP_swigregister
DelegationProviderSOAP_swigregister(DelegationProviderSOAP)
class DelegationContainerSOAP(_object):
"""
Manages multiple delegated credentials. Delegation consumers are
created automatically with DelegateCredentialsInit method up to
max_size_ and assigned unique identifier. It's methods are similar to
those of DelegationConsumerSOAP with identifier included in SOAP
message used to route execution to one of managed
DelegationConsumerSOAP instances.
C++ includes: DelegationInterface.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DelegationContainerSOAP, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DelegationContainerSOAP, name)
__repr__ = _swig_repr
def __init__(self):
"""Arc::DelegationContainerSOAP::DelegationContainerSOAP(void) """
this = _arc.new_DelegationContainerSOAP()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_DelegationContainerSOAP
__del__ = lambda self : None;
def DelegateCredentialsInit(self, *args):
"""
bool
Arc::DelegationContainerSOAP::DelegateCredentialsInit(const
SOAPEnvelope &in, SOAPEnvelope &out, const std::string &client="")
See DelegationConsumerSOAP::DelegateCredentialsInit If 'client' is not
empty then all subsequent calls involving access to generated
credentials must contain same value in their 'client' arguments.
"""
return _arc.DelegationContainerSOAP_DelegateCredentialsInit(self, *args)
def UpdateCredentials(self, *args):
"""
bool Arc::DelegationContainerSOAP::UpdateCredentials(std::string
&credentials, std::string &identity, const SOAPEnvelope &in,
SOAPEnvelope &out, const std::string &client="")
"""
return _arc.DelegationContainerSOAP_UpdateCredentials(self, *args)
def DelegatedToken(self, *args):
"""
bool Arc::DelegationContainerSOAP::DelegatedToken(std::string
&credentials, std::string &identity, XMLNode token, const std::string
&client="")
"""
return _arc.DelegationContainerSOAP_DelegatedToken(self, *args)
def Process(self, *args):
"""
bool
Arc::DelegationContainerSOAP::Process(std::string &credentials, const
SOAPEnvelope &in, SOAPEnvelope &out, const std::string &client="")
"""
return _arc.DelegationContainerSOAP_Process(self, *args)
def MatchNamespace(self, *args):
"""
bool Arc::DelegationContainerSOAP::MatchNamespace(const SOAPEnvelope
&in)
"""
return _arc.DelegationContainerSOAP_MatchNamespace(self, *args)
DelegationContainerSOAP_swigregister = _arc.DelegationContainerSOAP_swigregister
DelegationContainerSOAP_swigregister(DelegationContainerSOAP)
class Policy(_object):
"""
Interface for containing and processing different types of policy.
Basically, each policy object is a container which includes a few
elements e.g., ArcPolicySet objects includes a few ArcPolicy objects;
ArcPolicy object includes a few ArcRule objects. There is logical
relationship between ArcRules or ArcPolicies, which is called
combining algorithm. According to algorithm, evaluation results from
the elements are combined, and then the combined evaluation result is
returned to the up-level.
C++ includes: Policy.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Policy, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Policy, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_Policy
__del__ = lambda self : None;
Policy_swigregister = _arc.Policy_swigregister
Policy_swigregister(Policy)
class Request(_object):
"""
Base class/Interface for request, includes a container for
RequestItems and some operations.
A Request object can has a few <subjects, actions, objects> tuples,
i.e. RequestItem The Request class and any customized class which
inherit from it, should be loadable, which means these classes can be
dynamically loaded according to the configuration informtation, see
the example configuration below: <Service name="pdp.service"
id="pdp_service"> <pdp:PDPConfig> <......> <pdp: Request
name="arc.request" /> <......> </pdp:PDPConfig> </Service>
There can be different types of subclass which inherit Request, such
like XACMLRequest, ArcRequest, GACLRequest
C++ includes: Request.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Request, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Request, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_destroy__ = _arc.delete_Request
__del__ = lambda self : None;
Request_swigregister = _arc.Request_swigregister
Request_swigregister(Request)
DECISION_PERMIT = _arc.DECISION_PERMIT
DECISION_DENY = _arc.DECISION_DENY
DECISION_INDETERMINATE = _arc.DECISION_INDETERMINATE
DECISION_NOT_APPLICABLE = _arc.DECISION_NOT_APPLICABLE
class ResponseItem(_object):
"""
Evaluation result concerning one RequestTuple.
Include the RequestTuple, related XMLNode, the set of policy objects
which give positive evaluation result, and the related XMLNode
C++ includes: Response.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ResponseItem, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ResponseItem, name)
__repr__ = _swig_repr
__swig_setmethods__["res"] = _arc.ResponseItem_res_set
__swig_getmethods__["res"] = _arc.ResponseItem_res_get
if _newclass:res = _swig_property(_arc.ResponseItem_res_get, _arc.ResponseItem_res_set)
def __init__(self):
"""ArcSec::ResponseItem::ResponseItem() """
this = _arc.new_ResponseItem()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ResponseItem
__del__ = lambda self : None;
ResponseItem_swigregister = _arc.ResponseItem_swigregister
ResponseItem_swigregister(ResponseItem)
class ResponseList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ResponseList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ResponseList, name)
__repr__ = _swig_repr
def size(self):
"""
int
ArcSec::ResponseList::size()
"""
return _arc.ResponseList_size(self)
def getItem(self, *args):
"""
ResponseItem*
ArcSec::ResponseList::getItem(int n)
"""
return _arc.ResponseList_getItem(self, *args)
def empty(self):
"""
bool
ArcSec::ResponseList::empty()
"""
return _arc.ResponseList_empty(self)
def __init__(self):
this = _arc.new_ResponseList()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_ResponseList
__del__ = lambda self : None;
ResponseList_swigregister = _arc.ResponseList_swigregister
ResponseList_swigregister(ResponseList)
class Response(_object):
"""
Container for the evaluation results.
C++ includes: Response.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Response, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Response, name)
__repr__ = _swig_repr
def getResponseItems(self):
"""
virtual
ResponseList& ArcSec::Response::getResponseItems()
"""
return _arc.Response_getResponseItems(self)
def __init__(self):
this = _arc.new_Response()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_Response
__del__ = lambda self : None;
Response_swigregister = _arc.Response_swigregister
Response_swigregister(Response)
class Source(_object):
"""
Acquires and parses XML document from specified source.
This class is to be used to provide easy way to specify different
sources for XML Authorization Policies and Requests.
C++ includes: Source.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Source, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Source, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
ArcSec::Source::Source(const std::string &str)
Read XML document from string.
"""
this = _arc.new_Source(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_Source
__del__ = lambda self : None;
Source_swigregister = _arc.Source_swigregister
Source_swigregister(Source)
class SourceFile(Source):
"""
Convenience class for obtaining XML document from file.
C++ includes: Source.h
"""
__swig_setmethods__ = {}
for _s in [Source]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SourceFile, name, value)
__swig_getmethods__ = {}
for _s in [Source]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, SourceFile, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
ArcSec::SourceFile::SourceFile(const std::string &name)
Read XML document from file named name and store it.
"""
this = _arc.new_SourceFile(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SourceFile
__del__ = lambda self : None;
SourceFile_swigregister = _arc.SourceFile_swigregister
SourceFile_swigregister(SourceFile)
class SourceURL(Source):
"""
Convenience class for obtaining XML document from remote URL.
C++ includes: Source.h
"""
__swig_setmethods__ = {}
for _s in [Source]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SourceURL, name, value)
__swig_getmethods__ = {}
for _s in [Source]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, SourceURL, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
ArcSec::SourceURL::SourceURL(const std::string &url)
Read XML document from URL url and store it.
"""
this = _arc.new_SourceURL(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _arc.delete_SourceURL
__del__ = lambda self : None;
SourceURL_swigregister = _arc.SourceURL_swigregister
SourceURL_swigregister(SourceURL)
class Evaluator(_object):
"""
Interface for policy evaluation. Execute the policy evaluation, based
on the request and policy.
C++ includes: Evaluator.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Evaluator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Evaluator, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def addPolicy(self, *args):
"""
virtual void
ArcSec::Evaluator::addPolicy(Policy *policy, const std::string
&id="")=0
Add policy to the evaluator. Policy will be marked with id. The policy
object is taken over by this instance and will be destroyed in
destructor.
"""
return _arc.Evaluator_addPolicy(self, *args)
def evaluate(self, *args):
"""
virtual Response*
ArcSec::Evaluator::evaluate(const Source &request, Policy
*policyobj)=0
Evaluate the request from specified source against the specified
policy. In some implementations all of the existing policie inside the
evaluator may be destroyed by this method.
"""
return _arc.Evaluator_evaluate(self, *args)
__swig_destroy__ = _arc.delete_Evaluator
__del__ = lambda self : None;
Evaluator_swigregister = _arc.Evaluator_swigregister
Evaluator_swigregister(Evaluator)
class EvaluatorLoader(_object):
"""
EvaluatorLoader is implemented as a helper class for loading different
Evaluator objects, like ArcEvaluator.
The object loading is based on the configuration information about
evaluator, including information for factory class, request, policy
and evaluator itself
C++ includes: EvaluatorLoader.h
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, EvaluatorLoader, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, EvaluatorLoader, name)
__repr__ = _swig_repr
def __init__(self):
"""ArcSec::EvaluatorLoader::EvaluatorLoader() """
this = _arc.new_EvaluatorLoader()
try: self.this.append(this)
except: self.this = this
def getEvaluator(self, *args):
"""
Evaluator* ArcSec::EvaluatorLoader::getEvaluator(const Request
*request)
Get evaluator object suitable for presented request
"""
return _arc.EvaluatorLoader_getEvaluator(self, *args)
def getRequest(self, *args):
"""
Request*
ArcSec::EvaluatorLoader::getRequest(const Source &requestsource)
Get request object according to the request source
"""
return _arc.EvaluatorLoader_getRequest(self, *args)
def getPolicy(self, *args):
"""
Policy*
ArcSec::EvaluatorLoader::getPolicy(const Source &policysource)
Get proper policy object according to the policy source
"""
return _arc.EvaluatorLoader_getPolicy(self, *args)
__swig_destroy__ = _arc.delete_EvaluatorLoader
__del__ = lambda self : None;
EvaluatorLoader_swigregister = _arc.EvaluatorLoader_swigregister
EvaluatorLoader_swigregister(EvaluatorLoader)
# This file is compatible with both classic and new-style classes.
|