jgroup.test.hello
Class NotifyServer
java.lang.Object
jgroup.test.hello.NotifyServer
- All Implemented Interfaces:
- java.rmi.Remote, jgroup.core.ExternalGMIListener, jgroup.core.InternalGMIListener, jgroup.core.MembershipListener, Hello, InternalHello
public class NotifyServer
- extends java.lang.Object
- implements Hello, InternalHello, jgroup.core.MembershipListener
Simple Hello server aimed at demonstrating the capabilities of both
internal and external invocations. This server is modified to be used
with the automatic join and bind of the PGMS and RegistryLayer, and to
test things like the LeaseLayer and NotifyLayer.
- Since:
- Jgroup 1.0
- Author:
- Alberto Montresor, Hein Meling
Nested classes/interfaces inherited from interface jgroup.core.MembershipListener |
jgroup.core.MembershipListener.AllowDuplicateViews |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifyServer
public NotifyServer()
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Throws:
java.lang.Exception
sayHello
public Answer sayHello()
throws java.rmi.RemoteException
- Specified by:
sayHello
in interface Hello
- Throws:
java.rmi.RemoteException
doCompute
@Multicast
public double doCompute()
throws java.rmi.RemoteException
- Specified by:
doCompute
in interface Hello
- Throws:
java.rmi.RemoteException
time
public java.lang.Object time()
throws java.rmi.RemoteException
- Specified by:
time
in interface InternalHello
- Throws:
java.rmi.RemoteException
viewChange
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.