
org.sapia.ubik.rmi.examples.StatelessUbikBar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sapia_ubik Show documentation
Show all versions of sapia_ubik Show documentation
A RMI-like distributed computing framework
The newest version!
package org.sapia.ubik.rmi.examples;
import java.util.HashMap;
/**
* @author Yanick Duchesne
*
* - Copyright:
- Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
* - License:
- Read the license.txt file of the jar or visit the
* license page at the Sapia OSS web site
*
*/
public class StatelessUbikBar implements Bar {
HashMap map = new HashMap();
int hashcode;
public StatelessUbikBar(int hashCode) throws java.rmi.RemoteException {
map.put("foo", "bar!!!");
hashcode = hashCode;
}
/**
* @see org.sapia.ubik.rmi.Bar#getMsg()
*/
public String getMsg() {
System.out.println("getMsg()... @" + Integer.toHexString(hashcode));
return ((String) map.get("foo")) + "@" + Integer.toHexString(hashcode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy