org.ow2.carol.cmi.test
Class JRMPHelloServer

java.lang.Object
  extended by javax.rmi.PortableRemoteObject
      extended by 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

Nested Class Summary
protected static class JRMPHelloServer.BindHandler
           
protected static class JRMPHelloServer.DispInfosHandler
           
protected static class JRMPHelloServer.DisplayRegistryHandler
           
protected static class JRMPHelloServer.DisplayReplicatedRegistryHandler
           
protected static class JRMPHelloServer.InvokeHandler
           
protected static class JRMPHelloServer.LookupHandler
           
protected static class JRMPHelloServer.RebindHandler
           
protected static class JRMPHelloServer.UnbindHandler
           
 
Field Summary
protected static java.util.HashMap<java.lang.String,TestItf> testItfs
           
 
Constructor Summary
JRMPHelloServer(java.lang.String string)
           
 
Method Summary
 void display()
          Displays "hello".
 org.ow2.carol.cmi.info.ClusteredObjectInfo getClusteredObjectInfo()
           
static void main(java.lang.String[] args)
           
 
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
 

Field Detail

testItfs

protected static java.util.HashMap<java.lang.String,TestItf> testItfs
Constructor Detail

JRMPHelloServer

public JRMPHelloServer(java.lang.String string)
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

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.