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

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

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

origin: org.jboss.cluster/jboss-ha-server-core

 @Override
 public byte[] objectToByteBuffer(Object obj) throws Exception
 {
   // wrap MethodCall in Object[service_name, byte[]] so that service name is available during demarshalling
   if (obj instanceof MethodCall)
   {
    String name = ((MethodCall)obj).getName();
    int idx = name.lastIndexOf('.');
    String serviceName = name.substring(0, idx);
    return CoreGroupCommunicationService.this.objectToByteBufferInternal(new Object[]{serviceName, CoreGroupCommunicationService.this.objectToByteBufferInternal(obj)});
   }
   return CoreGroupCommunicationService.this.objectToByteBufferInternal(obj);
 }
}
origin: org.jgroups/com.springsource.org.jgroups

public RspList callRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout,
                 boolean use_anycasting, boolean oob) {
  if(dests != null && dests.isEmpty()) {
    // don't send if dest list is empty
    if(log.isTraceEnabled())
      log.trace(new StringBuffer("destination list of ").append(method_call.getName()).
           append("() is empty: no need to send message"));
    return new RspList();
  }
  if(log.isTraceEnabled())
    log.trace(new StringBuffer("dests=").append(dests).append(", method_call=").append(method_call).
         append(", mode=").append(mode).append(", timeout=").append(timeout));
  byte[] buf;
  try {
    buf=req_marshaller != null? req_marshaller.objectToByteBuffer(method_call) : Util.objectToByteBuffer(method_call);
  }
  catch(Exception e) {
    // if(log.isErrorEnabled()) log.error("exception", e);
    // we will change this in 2.4 to add the exception to the signature
    // (see http://jira.jboss.com/jira/browse/JGRP-193). The reason for a RTE is that we cannot change the
    // signature in 2.3, otherwise 2.3 would be *not* API compatible to prev releases
    throw new RuntimeException("failure to marshal argument(s)", e);
  }
  Message msg=new Message(null, null, buf);
  if(oob)
    msg.setFlag(Message.OOB);
  RspList  retval=super.castMessage(dests, msg, mode, timeout, use_anycasting);
  if(log.isTraceEnabled()) log.trace("responses: " + retval);
  return retval;
}
origin: org.jboss.as/jboss-as-clustering-impl

@Override
public Buffer objectToBuffer(Object obj) throws Exception {
  // wrap MethodCall in Object[service_name, byte[]] so that service name is available during demarshalling
  if (obj instanceof MethodCall) {
    String name = ((MethodCall) obj).getName();
    int idx = name.lastIndexOf('.');
    String serviceName = name.substring(0, idx);
    return new Buffer(CoreGroupCommunicationService.this.objectToByteBufferInternal(new Object[] { serviceName, CoreGroupCommunicationService.this.objectToByteBufferInternal(obj) }));
  }
  return new Buffer(CoreGroupCommunicationService.this.objectToByteBufferInternal(obj));
}
origin: org.jboss.cluster/jboss-ha-server-core

String methodName = method_call.getName();
origin: org.jboss.as/jboss-as-clustering-impl

String methodName = method_call.getName();
org.jgroups.blocksMethodCallgetName

Javadoc

returns the name of the method to be invoked using this method call object

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

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JComboBox (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
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