| CONTENTS | PREV | NEXT | Java Remote Method Invocation |
Operation Class
The classOperationholds a description of a method in the Java programming language for a remote object.
Note - TheOperationinterface is deprecated as of the Java 2 SDK, Standard Edition, v1.2. The 1.2 stub protocol no longer uses the oldRemoteRef.invokemethod which takes anOperationas one of its arguments. As of the Java 2 SDK, Standard Edition, v1.2, stubs now use the newinvokemethod which does not requireOperationas a parameter.
package java.rmi.server;
public class Operation {
public Operation(String op) {...}
public String getOperation() {...}
public String toString() {...}
}
AnOperationobject is typically constructed with the method signature.The method
getOperationreturns the contents of the operation descriptor (the value with which it was initialized).The method
toStringalso returns the string representation of the operation descriptor (typically the method signature).