Method and system for providing version control of parameters in a command-based API using Java serialization
First Claim
1. A method for providing a command from a client-side host to a server-side host, comprising:
- invoking a client-side application programming interface (API) at the client-side host to pass in a set of parameter objects, and to provide a command object that contains the parameter objects;
wherein each of the parameter objects represents a different parameter of a command, said different parameter representing a different function and each new parameter for the command is defined as a unique new class type;
serializing the command and parameter objects to provide serialized command and parameter objects; and
sending the serialized command and parameter objects to the server-side host as the command to determine whether said server-side host supports said different function,receiving the serialized command and parameter objects at the server-side host as the command from the client-side host;
deserializing, by said server-side host, the serialized command and parameter objects to determine whether the server-side host is compatible with the different parameters of the command that are represented by the parameter objects, the server-side host determining that the server-side host is not compatible with one or more of the different parameters if the server-side host does not support a class type associated with said one or more of the different parameters, andreformulating, by said client-side host, the command to delete one or more parameters determined to be incompatible,wherein;
if the server-side host cannot successfully deserialize at least one of the serialized parameter objects, the server-side host sends an error message to the client-side host to inform the client-side host that the server-side host does not support the parameter represented by the at least one serialized parameter object that cannot be successfully deserialized.
1 Assignment
0 Petitions
Accused Products
Abstract
A technique for determining whether a server host supports the functions in a command sent by a client host. The client host formulates a command including a command object that contains parameter objects. The parameter objects, which represent the functions, are serialized, e.g., using the Java serialization command, and communicated to the server host. The server host attempts to deserialize the parameter objects. If it is successful, it is concluded that the server host supports the functions represented by the parameter objects. Or, it is concluded that the server host is incompatible with the functions represented by one or more parameter objects that cannot be deserialized. The server host may be a storage server, and the functions may be storage-related, such as a copy type to be performed.
-
Citations
5 Claims
-
1. A method for providing a command from a client-side host to a server-side host, comprising:
-
invoking a client-side application programming interface (API) at the client-side host to pass in a set of parameter objects, and to provide a command object that contains the parameter objects; wherein each of the parameter objects represents a different parameter of a command, said different parameter representing a different function and each new parameter for the command is defined as a unique new class type; serializing the command and parameter objects to provide serialized command and parameter objects; and sending the serialized command and parameter objects to the server-side host as the command to determine whether said server-side host supports said different function, receiving the serialized command and parameter objects at the server-side host as the command from the client-side host; deserializing, by said server-side host, the serialized command and parameter objects to determine whether the server-side host is compatible with the different parameters of the command that are represented by the parameter objects, the server-side host determining that the server-side host is not compatible with one or more of the different parameters if the server-side host does not support a class type associated with said one or more of the different parameters, and reformulating, by said client-side host, the command to delete one or more parameters determined to be incompatible, wherein; if the server-side host cannot successfully deserialize at least one of the serialized parameter objects, the server-side host sends an error message to the client-side host to inform the client-side host that the server-side host does not support the parameter represented by the at least one serialized parameter object that cannot be successfully deserialized. - View Dependent Claims (2, 3, 4, 5)
-
Specification