Java Doc for MethodCall.java in  » Net » JGroups-2.4.1-sp3 » org » jgroups » blocks » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » JGroups 2.4.1 sp3 » org.jgroups.blocks 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jgroups.blocks.MethodCall

MethodCall
public class MethodCall implements Externalizable(Code)
A method call is the JGroups representation of a remote method. It includes the name of the method (case sensitive) and a list of arguments. A method call is serializable and can be passed over the wire.
author:
   Bela Ban
version:
   $Revision: 1.24 $


Field Summary
final protected static  shortID
    
final protected static  shortMETHOD
     Explicitly ship the method, caller has to determine method himself.
final protected static  shortOLD
     Infer the method from the arguments.
final protected static  shortSIGNATURE
     Provide a signature, similar to JMX.
final protected static  shortTYPES
     Use class information.
protected  Object[]args
     The arguments of the method.
final protected static  Loglog
    
protected  Methodmethod
     The Method of the call.
protected  shortmethod_id
    
protected  Stringmethod_name
     The name of the method, case sensitive.
protected  shortmode
     Which mode to use.
protected  Mappayload
    
protected  String[]signature
     The signature, e.g., new String[]{String.class.getName(), int.class.getName()}.
protected  Class[]types
     The class types, e.g., new Class[]{String.class, int.class}.

Constructor Summary
public  MethodCall()
     Creates an empty method call, this is always invalid, until setName() has been called.
public  MethodCall(Method method)
    
public  MethodCall(Method method, Object[] arguments)
    
public  MethodCall(String method_name, Object[] args)
    
public  MethodCall(short method_id, Object[] args)
    
public  MethodCall(String method_name, Object[] args, Class[] types)
    
public  MethodCall(String method_name, Object[] args, String[] signature)
    

Method Summary
 MethodfindMethod(Class target_class)
    
public synchronized  Objectget(Object key)
    
 Method[]getAllMethods(Class target)
     The method walks up the class hierarchy and returns all methods of this class and those inherited from superclasses and superinterfaces.
public  Object[]getArgs()
    
public  shortgetId()
    
public  MethodgetMethod()
    
 MethodgetMethod(Class target, String methodName, Class[] types)
     Returns the first method that matches the specified name and parameter types.
public  intgetMode()
    
public  StringgetName()
    
 Class[]getTypesFromString(Class cl, String[] signature)
    
public  Objectinvoke(Object target)
     Invokes the method with the supplied arguments against the target object. If a method lookup is provided, it will be used.
public  Objectinvoke(Object target, Object[] args)
    
public synchronized  Objectput(Object key, Object value)
    
public  voidreadExternal(ObjectInput in)
    
public  voidsetArgs(Object[] args)
    
public  voidsetId(short method_id)
    
public  voidsetMethod(Method m)
    
public  voidsetName(String n)
    
public  StringtoString()
    
public  StringtoStringDetails()
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
ID
final protected static short ID(Code)
Use an ID to map to a method



METHOD
final protected static short METHOD(Code)
Explicitly ship the method, caller has to determine method himself.



OLD
final protected static short OLD(Code)
Infer the method from the arguments.



SIGNATURE
final protected static short SIGNATURE(Code)
Provide a signature, similar to JMX.



TYPES
final protected static short TYPES(Code)
Use class information.



args
protected Object[] args(Code)
The arguments of the method.



log
final protected static Log log(Code)



method
protected Method method(Code)
The Method of the call.



method_id
protected short method_id(Code)
The ID of a method, maps to a java.lang.reflect.Method



method_name
protected String method_name(Code)
The name of the method, case sensitive.



mode
protected short mode(Code)
Which mode to use.



payload
protected Map payload(Code)
To carry arbitrary data with a method call, data needs to be serializable if sent across the wire



signature
protected String[] signature(Code)
The signature, e.g., new String[]{String.class.getName(), int.class.getName()}.



types
protected Class[] types(Code)
The class types, e.g., new Class[]{String.class, int.class}.




Constructor Detail
MethodCall
public MethodCall()(Code)
Creates an empty method call, this is always invalid, until setName() has been called.



MethodCall
public MethodCall(Method method)(Code)



MethodCall
public MethodCall(Method method, Object[] arguments)(Code)



MethodCall
public MethodCall(String method_name, Object[] args)(Code)

Parameters:
  method_name -
Parameters:
  args -



MethodCall
public MethodCall(short method_id, Object[] args)(Code)



MethodCall
public MethodCall(String method_name, Object[] args, Class[] types)(Code)



MethodCall
public MethodCall(String method_name, Object[] args, String[] signature)(Code)




Method Detail
findMethod
Method findMethod(Class target_class) throws Exception(Code)

Parameters:
  target_class -
throws:
  Exception -



get
public synchronized Object get(Object key)(Code)



getAllMethods
Method[] getAllMethods(Class target)(Code)
The method walks up the class hierarchy and returns all methods of this class and those inherited from superclasses and superinterfaces.



getArgs
public Object[] getArgs()(Code)
returns an ordered list of arguments used for the method invokation returns the list of ordered arguments



getId
public short getId()(Code)



getMethod
public Method getMethod()(Code)



getMethod
Method getMethod(Class target, String methodName, Class[] types)(Code)
Returns the first method that matches the specified name and parameter types. The overriding methods have priority. The method is chosen from all the methods of the current class and all its superclasses and superinterfaces. the matching method or null if no mathching method has been found.



getMode
public int getMode()(Code)



getName
public String getName()(Code)
returns the name of the method to be invoked using this method call object a case sensitive name, can be null for an invalid method call



getTypesFromString
Class[] getTypesFromString(Class cl, String[] signature) throws Exception(Code)



invoke
public Object invoke(Object target) throws Throwable(Code)
Invokes the method with the supplied arguments against the target object. If a method lookup is provided, it will be used. Otherwise, the default method lookup will be used.
Parameters:
  target - - the object that you want to invoke the method on an object



invoke
public Object invoke(Object target, Object[] args) throws Throwable(Code)



put
public synchronized Object put(Object key, Object value)(Code)



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



setArgs
public void setArgs(Object[] args)(Code)



setId
public void setId(short method_id)(Code)



setMethod
public void setMethod(Method m)(Code)



setName
public void setName(String n)(Code)
sets the name for this MethodCall and allowing you to reuse the same object for a different method invokation of a different method
Parameters:
  n - - a case sensitive method name



toString
public String toString()(Code)



toStringDetails
public String toStringDetails()(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.