jgroup.test.jini.reggie
Class ReggieHelloServer
java.lang.Object
jgroup.test.jini.reggie.ReggieHelloServer
- All Implemented Interfaces:
- com.sun.jini.admin.DestroyAdmin, java.rmi.Remote, java.util.EventListener, ReggieHello, net.jini.admin.Administrable, net.jini.admin.JoinAdmin, net.jini.lookup.ServiceIDListener
public class ReggieHelloServer
- extends java.lang.Object
- implements net.jini.lookup.ServiceIDListener, ReggieHello
Simple server to test Reggie.
- Author:
- Rohnny Moland
Constructor Summary |
ReggieHelloServer(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 |
ReggieHelloServer
public ReggieHelloServer(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 ReggieHello
- Throws:
java.rmi.RemoteException
serviceIDNotify
public void serviceIDNotify(net.jini.core.lookup.ServiceID serviceID)
- Specified by:
serviceIDNotify
in interface net.jini.lookup.ServiceIDListener
getLookupAttributes
public net.jini.core.entry.Entry[] getLookupAttributes()
throws java.rmi.RemoteException
- Specified by:
getLookupAttributes
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
addLookupAttributes
public void addLookupAttributes(net.jini.core.entry.Entry[] attrSets)
throws java.rmi.RemoteException
- Specified by:
addLookupAttributes
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
modifyLookupAttributes
public void modifyLookupAttributes(net.jini.core.entry.Entry[] attrSetTemplates,
net.jini.core.entry.Entry[] attrSets)
throws java.rmi.RemoteException
- Specified by:
modifyLookupAttributes
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
getLookupGroups
public java.lang.String[] getLookupGroups()
throws java.rmi.RemoteException
- Specified by:
getLookupGroups
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
addLookupGroups
public void addLookupGroups(java.lang.String[] groups)
throws java.rmi.RemoteException
- Specified by:
addLookupGroups
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
removeLookupGroups
public void removeLookupGroups(java.lang.String[] groups)
throws java.rmi.RemoteException
- Specified by:
removeLookupGroups
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
setLookupGroups
public void setLookupGroups(java.lang.String[] groups)
throws java.rmi.RemoteException
- Specified by:
setLookupGroups
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
getLookupLocators
public net.jini.core.discovery.LookupLocator[] getLookupLocators()
throws java.rmi.RemoteException
- Specified by:
getLookupLocators
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
addLookupLocators
public void addLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
throws java.rmi.RemoteException
- Specified by:
addLookupLocators
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
removeLookupLocators
public void removeLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
throws java.rmi.RemoteException
- Specified by:
removeLookupLocators
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
setLookupLocators
public void setLookupLocators(net.jini.core.discovery.LookupLocator[] locators)
throws java.rmi.RemoteException
- Specified by:
setLookupLocators
in interface net.jini.admin.JoinAdmin
- Throws:
java.rmi.RemoteException
destroy
public void destroy()
throws java.rmi.RemoteException
- Specified by:
destroy
in interface com.sun.jini.admin.DestroyAdmin
- Throws:
java.rmi.RemoteException
getAdmin
public java.lang.Object getAdmin()
throws java.rmi.RemoteException
- Specified by:
getAdmin
in interface net.jini.admin.Administrable
- Throws:
java.rmi.RemoteException
Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.