Tabnine Logo
MethodCall.methodId
Code IndexAdd Tabnine to your IDE (free)

How to use
methodId
method
in
org.jgroups.blocks.MethodCall

Best Java code snippets using org.jgroups.blocks.MethodCall.methodId (Showing top 2 results out of 315)

origin: wildfly/wildfly

/**
 * Message contains MethodCall. Execute it against *this* object and return result.
 * Use MethodCall.invoke() to do this. Return result.
 */
public Object handle(Message req) throws Exception {
  if(server_obj == null) {
    log.error(Util.getMessage("NoMethodHandlerIsRegisteredDiscardingRequest"));
    return null;
  }
  if(req == null || req.getLength() == 0) {
    log.error(Util.getMessage("MessageOrMessageBufferIsNull"));
    return null;
  }
  MethodCall method_call=methodCallFromBuffer(req.getRawBuffer(), req.getOffset(), req.getLength(), marshaller);
  if(log.isTraceEnabled())
    log.trace("[sender=%s], method_call: %s", req.getSrc(), method_call);
  if(method_call.mode() == MethodCall.ID) {
    if(method_lookup == null)
      throw new Exception(String.format("MethodCall uses ID=%d, but method_lookup has not been set", method_call.methodId()));
    Method m=method_lookup.findMethod(method_call.methodId());
    if(m == null)
      throw new Exception("no method found for " + method_call.methodId());
    method_call.method(m);
  }
    
  return method_call.invoke(server_obj);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Message contains MethodCall. Execute it against *this* object and return result.
 * Use MethodCall.invoke() to do this. Return result.
 */
public Object handle(Message req) throws Exception {
  if(server_obj == null) {
    log.error(Util.getMessage("NoMethodHandlerIsRegisteredDiscardingRequest"));
    return null;
  }
  if(req == null || req.getLength() == 0) {
    log.error(Util.getMessage("MessageOrMessageBufferIsNull"));
    return null;
  }
  MethodCall method_call=methodCallFromBuffer(req.getRawBuffer(), req.getOffset(), req.getLength(), marshaller);
  if(log.isTraceEnabled())
    log.trace("[sender=%s], method_call: %s", req.getSrc(), method_call);
  if(method_call.mode() == MethodCall.ID) {
    if(method_lookup == null)
      throw new Exception(String.format("MethodCall uses ID=%d, but method_lookup has not been set", method_call.methodId()));
    Method m=method_lookup.findMethod(method_call.methodId());
    if(m == null)
      throw new Exception("no method found for " + method_call.methodId());
    method_call.method(m);
  }
    
  return method_call.invoke(server_obj);
}
org.jgroups.blocksMethodCallmethodId

Popular methods of MethodCall

  • <init>
  • invoke
  • findMethod
    Called by the ProbeHandler impl. All args are strings. Needs to find a method where all parameter ty
  • getAllMethods
    The method walks up the class hierarchy and returns all methods of this class and those inherited fr
  • getMethod
    Returns the first method that matches the specified name and parameter types. The overriding methods
  • getName
    returns the name of the method to be invoked using this method call object
  • init
  • args
  • isPrimitiveType
  • method
  • methodName
  • mode
  • methodName,
  • mode,
  • readArgs,
  • readFrom,
  • readMethod,
  • readTypes,
  • setName,
  • writeArgs,
  • writeMethod

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • String (java.lang)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JOptionPane (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now