Class: Rlibmemcached::MemcachedAnalysisSt
- Inherits:
-
Object
- Object
- Rlibmemcached::MemcachedAnalysisSt
- Defined in:
- ext/rlibmemcached/rlibmemcached_wrap.c
Instance Method Summary collapse
- #average_item_size(*args) ⇒ Object
- #average_item_size=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #least_free_server(*args) ⇒ Object
- #least_free_server=(*args) ⇒ Object
- #least_remaining_bytes(*args) ⇒ Object
- #least_remaining_bytes=(*args) ⇒ Object
- #longest_uptime(*args) ⇒ Object
- #longest_uptime=(*args) ⇒ Object
- #most_consumed_server(*args) ⇒ Object
- #most_consumed_server=(*args) ⇒ Object
- #most_used_bytes(*args) ⇒ Object
- #most_used_bytes=(*args) ⇒ Object
- #oldest_server(*args) ⇒ Object
- #oldest_server=(*args) ⇒ Object
- #pool_hit_ratio(*args) ⇒ Object
- #pool_hit_ratio=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2880
SWIGINTERN VALUE
_wrap_new_MemcachedAnalysisSt(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct memcached_analysis_st *)calloc(1, sizeof(struct memcached_analysis_st));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#average_item_size(*args) ⇒ Object
2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2420
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_average_item_size_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint32_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","average_item_size", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = ((arg1)->average_item_size);
{
vresult = UINT2NUM(result);
}
return vresult;
fail:
return Qnil;
}
|
#average_item_size=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2385
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_average_item_size_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
uint32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","average_item_size", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
{
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","average_item_size", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","average_item_size", 2, argv[0]));
} else {
arg2 = *((uint32_t *)(argp2));
}
}
if (arg1) (arg1)->average_item_size = arg2;
return Qnil;
fail:
return Qnil;
}
|
#least_free_server(*args) ⇒ Object
2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2542
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_least_free_server_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint32_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_free_server", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = ((arg1)->least_free_server);
{
vresult = UINT2NUM(result);
}
return vresult;
fail:
return Qnil;
}
|
#least_free_server=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2507
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_least_free_server_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
uint32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_free_server", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
{
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","least_free_server", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","least_free_server", 2, argv[0]));
} else {
arg2 = *((uint32_t *)(argp2));
}
}
if (arg1) (arg1)->least_free_server = arg2;
return Qnil;
fail:
return Qnil;
}
|
#least_remaining_bytes(*args) ⇒ Object
2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2839
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_least_remaining_bytes_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint64_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_remaining_bytes", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = ((arg1)->least_remaining_bytes);
{
vresult = ULL2NUM(result);
}
return vresult;
fail:
return Qnil;
}
|
#least_remaining_bytes=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2804
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_least_remaining_bytes_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
uint64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_remaining_bytes", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
{
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","least_remaining_bytes", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","least_remaining_bytes", 2, argv[0]));
} else {
arg2 = *((uint64_t *)(argp2));
}
}
if (arg1) (arg1)->least_remaining_bytes = arg2;
return Qnil;
fail:
return Qnil;
}
|
#longest_uptime(*args) ⇒ Object
2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2481
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_longest_uptime_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint32_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","longest_uptime", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = ((arg1)->longest_uptime);
{
vresult = UINT2NUM(result);
}
return vresult;
fail:
return Qnil;
}
|
#longest_uptime=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2446
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_longest_uptime_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
uint32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","longest_uptime", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
{
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","longest_uptime", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","longest_uptime", 2, argv[0]));
} else {
arg2 = *((uint32_t *)(argp2));
}
}
if (arg1) (arg1)->longest_uptime = arg2;
return Qnil;
fail:
return Qnil;
}
|
#most_consumed_server(*args) ⇒ Object
2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2603
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_most_consumed_server_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint32_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_consumed_server", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = ((arg1)->most_consumed_server);
{
vresult = UINT2NUM(result);
}
return vresult;
fail:
return Qnil;
}
|
#most_consumed_server=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2568
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_most_consumed_server_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
uint32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_consumed_server", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
{
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","most_consumed_server", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","most_consumed_server", 2, argv[0]));
} else {
arg2 = *((uint32_t *)(argp2));
}
}
if (arg1) (arg1)->most_consumed_server = arg2;
return Qnil;
fail:
return Qnil;
}
|
#most_used_bytes(*args) ⇒ Object
2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2778
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_most_used_bytes_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint64_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_used_bytes", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = ((arg1)->most_used_bytes);
{
vresult = ULL2NUM(result);
}
return vresult;
fail:
return Qnil;
}
|
#most_used_bytes=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2743
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_most_used_bytes_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
uint64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_used_bytes", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
{
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","most_used_bytes", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","most_used_bytes", 2, argv[0]));
} else {
arg2 = *((uint64_t *)(argp2));
}
}
if (arg1) (arg1)->most_used_bytes = arg2;
return Qnil;
fail:
return Qnil;
}
|
#oldest_server(*args) ⇒ Object
2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2664
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_oldest_server_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint32_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","oldest_server", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = ((arg1)->oldest_server);
{
vresult = UINT2NUM(result);
}
return vresult;
fail:
return Qnil;
}
|
#oldest_server=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2629
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_oldest_server_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
uint32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","oldest_server", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
{
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","oldest_server", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","oldest_server", 2, argv[0]));
} else {
arg2 = *((uint32_t *)(argp2));
}
}
if (arg1) (arg1)->oldest_server = arg2;
return Qnil;
fail:
return Qnil;
}
|
#pool_hit_ratio(*args) ⇒ Object
2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2719
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_pool_hit_ratio_get(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
double result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","pool_hit_ratio", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
result = (double) ((arg1)->pool_hit_ratio);
vresult = SWIG_From_double((double)(result));
return vresult;
fail:
return Qnil;
}
|
#pool_hit_ratio=(*args) ⇒ Object
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 |
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 2690
SWIGINTERN VALUE
_wrap_MemcachedAnalysisSt_pool_hit_ratio_set(int argc, VALUE *argv, VALUE self) {
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
double arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","pool_hit_ratio", 1, self ));
}
arg1 = (struct memcached_analysis_st *)(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","pool_hit_ratio", 2, argv[0] ));
}
arg2 = (double)(val2);
if (arg1) (arg1)->pool_hit_ratio = arg2;
return Qnil;
fail:
return Qnil;
}
|