How can I get the gearman client's sumbitted function name?
Hello. Could you please tell me whether the function name from the client gets passed to the worker?
Assume I have registered my ReverseFunction with the following function names: 'reverse', 'reverse_a_string' and 'reverse_me'. My gearman client submits a job like so.. client.
Now in the worker I want determine which function name was submitted by the client. How can I get the function name that was requested by the client which in this case is 'reverse_me'?
public class ReverseFunction extends AbstractGearman
public GearmanJobResult executeFunction() {
// Can I get the function name that was submitted by the client?
new byte[0], new byte[0], 0, 0);
return gjr;
}
}
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Khai Do
- Solved:
- Last query:
- Last reply: