congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MethodCall.method
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.jgroups.blocks.MethodCall.method (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.blocksMethodCallmethod

Javadoc

The Method of the call.

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
  • methodId
  • methodName
  • mode
  • methodName,
  • mode,
  • readArgs,
  • readFrom,
  • readMethod,
  • readTypes,
  • setName,
  • writeArgs,
  • writeMethod

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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