Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Grafical interface to gearman
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leandro Oliveira  
View profile  
 More options Mar 26 2012, 11:20 am
From: Leandro Oliveira <lean...@leandroleite.info>
Date: Mon, 26 Mar 2012 08:20:19 -0700 (PDT)
Local: Mon, Mar 26 2012 11:20 am
Subject: Grafical interface to gearman
hey guys,

I looked for a graphical interface for monitoring the Gearman, but
without success

Anyone know one?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "how to get gearmand worker list?" by auror.cao
auror.cao  
View profile  
 More options Mar 28 2012, 10:58 pm
From: "auror.cao" <auror.cao.ch...@gmail.com>
Date: Thu, 29 Mar 2012 10:58:15 +0800
Local: Wed, Mar 28 2012 10:58 pm
Subject: how to get gearmand worker list?
Hi  guys:
        I want to get the workers' status, but I don't know which function
can do it in C.
        Who can tell me how to get it by the lib of gearmand.
Thanks very much.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Herman Radtke  
View profile  
 More options Mar 29 2012, 9:38 pm
From: Herman Radtke <hermanrad...@gmail.com>
Date: Thu, 29 Mar 2012 18:38:15 -0700
Local: Thurs, Mar 29 2012 9:38 pm
Subject: Re: how to get gearmand worker list?

On Wed, Mar 28, 2012 at 7:58 PM, auror.cao <auror.cao.ch...@gmail.com> wrote:
> Hi  guys:
>        I want to get the workers' status, but I don't know which function
> can do it in C.
>        Who can tell me how to get it by the lib of gearmand.
> Thanks very much.

I don't believe there is an API call for this. You need to open a
socket to the daemon and send the commands over. Look at the source
code for gearadmin for an example:
http://bazaar.launchpad.net/~tangent-org/gearmand/trunk/view/head:/bi...

--
Herman Radtke
hermanrad...@gmail.com | http://hermanradtke.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "答复: how to get gearmand worker list?" by auror.cao
auror.cao  
View profile  
 More options Mar 30 2012, 2:44 am
From: "auror.cao" <auror.cao.ch...@gmail.com>
Date: Fri, 30 Mar 2012 14:44:36 +0800
Local: Fri, Mar 30 2012 2:44 am
Subject: 答复: how to get gearmand worker list?
Thanks for Herman Radtke's help. I found the source code in instance.cc.
My solution as bellow:
                int _sockfd;
        struct addrinfo ai;
                struct addrinfo *_addrinfo ;
        char buffer[2048]={'\0'};
        bzero(&ai,sizeof(ai));
        ai.ai_socktype= SOCK_STREAM;
        ai.ai_protocol= IPPROTO_TCP;

        int ret= getaddrinfo("127.0.0.1","4730", &ai, &_addrinfo);
        if( ret)
        {
                printf(" getaddrinfo error");
                return -1;
        }
         _sockfd= socket(_addrinfo->ai_family,
                  _addrinfo->ai_socktype,
                  _addrinfo->ai_protocol);
        if( _sockfd <0 )
        {
                printf("socket error");
                return -1;
        }
        ret = connect(_sockfd, _addrinfo->ai_addr, _addrinfo->ai_addrlen) ;
        if( ret < 0 )
        {
                printf("connect error");
                return -1;
        }
        ret=send(_sockfd,"status\r\n",strlen("workers\r\n"),0);  //if you want to get other options just exchange the send string.
        if( ret < 0 )
        {
                printf("send error");
                return -1;
        }
        ret = recv(_sockfd, buffer, sizeof(buffer),0);
        if( ret < 0 )
        {
                printf( "receive error");
                return -1;
        }
        printf("receive data =%s",buffer);

-----邮件原件-----
发件人: gearman@googlegroups.com [mailto:gearman@googlegroups.com] 代表 Herman Radtke
发送时间: 2012年3月30日 9:38
收件人: gearman@googlegroups.com
主题: Re: how to get gearmand worker list?

On Wed, Mar 28, 2012 at 7:58 PM, auror.cao <auror.cao.ch...@gmail.com> wrote:
> Hi  guys:
>        I want to get the workers' status, but I don't know which function
> can do it in C.
>        Who can tell me how to get it by the lib of gearmand.
> Thanks very much.

I don't believe there is an API call for this. You need to open a
socket to the daemon and send the commands over. Look at the source
code for gearadmin for an example:
http://bazaar.launchpad.net/~tangent-org/gearmand/trunk/view/head:/bi...

--
Herman Radtke
hermanrad...@gmail.com | http://hermanradtke.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "how to get gearmand worker list?" by Keith Kruepke
Keith Kruepke  
View profile  
 More options Mar 30 2012, 9:44 am
From: Keith Kruepke <krue...@gmail.com>
Date: Fri, 30 Mar 2012 08:44:28 -0500
Local: Fri, Mar 30 2012 9:44 am
Subject: Re: how to get gearmand worker list?
FYI- The administrative protocol is covered in the Gearman protocol
documentation:

http://gearman.org/index.php?id=protocol

Look for the section with the heading "Administrative Protocol".

-----Original Message-----
From: Herman Radtke
Sent: Thu, 29 Mar 2012 18:38:15 -0700
To: gearman
Subject: Re: how to get gearmand worker list?

On Wed, Mar 28, 2012 at 7:58 PM, auror.cao<auror.cao.ch...@gmail.com>  wrote:

> Hi  guys:
>         I want to get the workers' status, but I don't know which function
> can do it in C.
>         Who can tell me how to get it by the lib of gearmand.
> Thanks very much.

I don't believe there is an API call for this. You need to open a
socket to the daemon and send the commands over. Look at the source
code for gearadmin for an example:
http://bazaar.launchpad.net/~tangent-org/gearmand/trunk/view/head:/bi...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Aker  
View profile  
 More options Mar 31 2012, 8:26 pm
From: Brian Aker <br...@tangent.org>
Date: Sat, 31 Mar 2012 17:26:23 -0700
Local: Sat, Mar 31 2012 8:26 pm
Subject: Re: how to get gearmand worker list?

Hi,

On Mar 28, 2012, at 7:58 PM, auror.cao wrote:

> Hi  guys:
>    I want to get the workers' status, but I don't know which function
> can do it in C.
>    Who can tell me how to get it by the lib of gearmand.
> Thanks very much.

What information are you looking for?

Cheers,
        -Brian

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Grafical interface to gearman" by Arman Khalatyan
Arman Khalatyan  
View profile  
 More options Apr 26 2012, 10:11 am
From: Arman Khalatyan <arm2...@googlemail.com>
Date: Thu, 26 Apr 2012 16:11:26 +0200
Local: Thurs, Apr 26 2012 10:11 am
Subject: Re: Grafical interface to gearman
Did you try his?
https://github.com/yugene/Gearman-Monitor

On Mon, Mar 26, 2012 at 5:20 PM, Leandro Oliveira


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »