org.ow2.carol.cmi.test
Class JRMPHelloServer
java.lang.Object
javax.rmi.PortableRemoteObject
org.ow2.carol.cmi.test.JRMPHelloServer
- All Implemented Interfaces:
- java.rmi.Remote, org.ow2.carol.cmi.jndi.ClusteredObject, TestItf
@Cluster(name="test_cluster")
@LBPolicy(value=org.ow2.carol.cmi.lb.policy.RoundRobinPolicy.class)
public class JRMPHelloServer
- extends javax.rmi.PortableRemoteObject
- implements TestItf, org.ow2.carol.cmi.jndi.ClusteredObject
- Author:
- nieuviar, The new CMI team
|
Field Summary |
protected static java.util.HashMap<java.lang.String,TestItf> |
testItfs
|
| Methods inherited from class javax.rmi.PortableRemoteObject |
connect, exportObject, narrow, toStub, unexportObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testItfs
protected static java.util.HashMap<java.lang.String,TestItf> testItfs
JRMPHelloServer
public JRMPHelloServer(java.lang.String string)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
display
public void display()
throws java.rmi.RemoteException
- Displays "hello".
- Specified by:
display in interface TestItf
- Throws:
java.rmi.RemoteException - if a RemoteException occurs.
getClusteredObjectInfo
public org.ow2.carol.cmi.info.ClusteredObjectInfo getClusteredObjectInfo()
- Specified by:
getClusteredObjectInfo in interface org.ow2.carol.cmi.jndi.ClusteredObject
Copyright © 2008 OW2 Consortium. All Rights Reserved.