some design issue on distributed filesystem

in Help Center
I wanna extend distributed filesystem's design, which may have object classes more than just only file and directory, so i wanna add a addNode() method in the directory interface, which means i create the node in the client side, and send this object to server via parameters of addNode(). For I donnot know what exactly the object class is, so my addNode() should be like this: void addNode(NodeI obj), because NodeI is inherited from PersistentNode, so there will be some status be tranfered to server. but how does server side down cast the incoming obj to what it should be? or there are better design?
0
Comments
Cheers,
Michi.