jgroup.test.jini
Class HelloServer
java.lang.Object
jgroup.test.jini.HelloServer
- All Implemented Interfaces:
- java.rmi.Remote, jgroup.core.ExternalGMIListener, jgroup.core.MembershipListener, Hello
public class HelloServer
- extends java.lang.Object
- implements Hello, jgroup.core.MembershipListener
Simple Hello server aimed at demonstrating the capabilities of
Greg.
- Since:
- Jgroup 1.0
- Author:
- Alberto Montresor
Nested classes/interfaces inherited from interface jgroup.core.MembershipListener |
jgroup.core.MembershipListener.AllowDuplicateViews |
Constructor Summary |
HelloServer(java.lang.String[] configArgs,
com.sun.jini.start.LifeCycle lifeCycle)
Constructor compatible with the jini service starter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloServer
public HelloServer(java.lang.String[] configArgs,
com.sun.jini.start.LifeCycle lifeCycle)
throws java.lang.Exception
- Constructor compatible with the jini service starter.
- Parameters:
configArgs
- String
array whose elements are
the arguments to use when creating the server.lifeCycle
- instance of LifeCycle
that, if
non-null
, will cause this object's
unregister
method to be invoked during
shutdown to notify the service starter framework that
the reference to this service's implementation can be
'released' for garbage collection. A value of
null
for this argument is allowed.
- Throws:
java.lang.Exception
- If there was a problem initializing the service.
sayHello
public java.lang.String sayHello()
throws java.rmi.RemoteException
- External method
- Specified by:
sayHello
in interface Hello
- Throws:
java.rmi.RemoteException
getGlobalTimestamp
public long getGlobalTimestamp()
throws java.rmi.RemoteException
- Returns the global timestamp
- Specified by:
getGlobalTimestamp
in interface Hello
- Throws:
java.rmi.RemoteException
viewChange
public void viewChange(jgroup.core.View v)
- 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.