jgroup.test.hello
Class AtomicHelloServer

java.lang.Object
  extended by jgroup.test.hello.AtomicHelloServer
All Implemented Interfaces:
java.rmi.Remote, jgroup.core.ExternalGMIListener, jgroup.core.MembershipListener, Hello

public class AtomicHelloServer
extends java.lang.Object
implements Hello, jgroup.core.MembershipListener

Simple Hello server aimed at demonstrating the capabilities of atomic external method invocations.

Since:
Jgroup 1.0
Author:
Hein Meling

Nested Class Summary
 
Nested classes/interfaces inherited from interface jgroup.core.MembershipListener
jgroup.core.MembershipListener.AllowDuplicateViews
 
Constructor Summary
AtomicHelloServer()
           
 
Method Summary
 double doCompute()
           
 void hasLeft()
           
static void main(java.lang.String[] argv)
           
 void prepareChange()
           
 Answer sayHello()
           
 void viewChange(jgroup.core.View view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicHelloServer

public AtomicHelloServer()
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

sayHello

@Atomic
public Answer sayHello()
                throws java.rmi.RemoteException
Specified by:
sayHello in interface Hello
Throws:
java.rmi.RemoteException

doCompute

@Atomic
public double doCompute()
                 throws java.rmi.RemoteException
Specified by:
doCompute in interface Hello
Throws:
java.rmi.RemoteException

viewChange

@MembershipListener.AllowDuplicateViews
public void viewChange(jgroup.core.View view)
Specified by:
viewChange in interface jgroup.core.MembershipListener

prepareChange

public void prepareChange()
Specified by:
prepareChange in interface jgroup.core.MembershipListener

hasLeft

public void hasLeft()
Specified by:
hasLeft in interface jgroup.core.MembershipListener


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.