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

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

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

origin: wildfly/wildfly

public Object invoke(Object target, Object[] args) throws Exception {
  if(args != null)
    this.args=args;
  return invoke(target);
}
origin: wildfly/wildfly

    converted_args[i]=Util.convert(args[i], types[i]);
Object retval=call.invoke(target, converted_args);
if(retval != null)
  map.put(prot_name + "." + method_name, retval.toString());
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.jgroups/com.springsource.org.jgroups

public Object invoke(Object target, Object[] args) throws Throwable {
  if(args != null)
    this.args=args;
  return invoke(target);
}
origin: org.jboss.eap/wildfly-client-all

public Object invoke(Object target, Object[] args) throws Exception {
  if(args != null)
    this.args=args;
  return invoke(target);
}
origin: org.jboss.as/jboss-as-clustering-impl

@SuppressWarnings("unchecked")
<T> T invokeDirectly(String serviceName, String methodName, Object[] args, Class<?>[] types, List<T> remoteResponses, ResponseFilter filter) throws Exception {
  T retVal = null;
  Object handler = this.rpcHandlers.get(serviceName);
  if (handler != null) {
    MethodCall call = new MethodCall(methodName, args, types);
    try {
      Object result = call.invoke(handler);
      retVal = (T) result;
      if (remoteResponses != null && (filter == null || filter.isAcceptable(retVal, me))) {
        remoteResponses.add(retVal);
      }
    } catch (Exception e) {
      throw e;
    } catch (Error e) {
      throw e;
    } catch (Throwable e) {
      throw new RuntimeException(e);
    }
  }
  return retVal;
}
origin: org.jboss.cluster/jboss-ha-server-core

try
 Object result = call.invoke(handler);
 if (returnType != null && void.class != returnType)
origin: org.jboss.eap/wildfly-client-all

    converted_args[i]=Util.convert(args[i], types[i]);
Object retval=call.invoke(target, converted_args);
if(retval != null)
  map.put(prot_name + "." + method_name, retval.toString());
origin: org.jgroups/com.springsource.org.jgroups

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);
}
origin: org.jboss.cluster/jboss-ha-server-core

retval = method_call.invoke(handler);
if (overrideCL)
origin: org.jboss.as/jboss-as-clustering-impl

retval = method_call.invoke(handler);
if (trace) {
  ClusteringImplLogger.ROOT_LOGGER.tracef("rpc call return value: %s", retval);
org.jgroups.blocksMethodCallinvoke

Javadoc

Invokes the method with the supplied arguments against the target object.

Popular methods of MethodCall

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best IntelliJ 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