com.kedwards.swt.admin
Class BasicAdminImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--com.kedwards.swt.admin.BasicAdminImpl
All Implemented Interfaces:
BasicAdmin, java.rmi.Remote, java.io.Serializable

public class BasicAdminImpl
extends java.rmi.server.UnicastRemoteObject
implements BasicAdmin

BasicAdminImpl.java

This class provides a backend implementation of the BasicAdmin interface. This code gives a simple, default implementation of Join, Destroy, and StorageLocation admin.

See http://www.kedwards.com/jini

No warranty expressed or implied; use at your own risk; for educational purposes only.

Author:
Keith Edwards
See Also:
Serialized Form

Field Summary
protected  ServiceWrapper serviceWrapper
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
BasicAdminImpl(ServiceWrapper serviceWrapper)
           
 
Method Summary
 void addLookupAttributes(net.jini.core.entry.Entry[] attrs)
           
 void addLookupGroups(java.lang.String[] groups)
           
 void addLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
           
 void destroy()
           
 net.jini.core.entry.Entry[] getLookupAttributes()
           
 java.lang.String[] getLookupGroups()
           
 net.jini.core.discovery.LookupLocator[] getLookupLocators()
           
 java.lang.String getStorageLocation()
           
 void modifyLookupAttributes(net.jini.core.entry.Entry[] tmpls, net.jini.core.entry.Entry[] attrs)
           
 void removeLookupGroups(java.lang.String[] groups)
           
 void removeLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
           
 void setLookupGroups(java.lang.String[] groups)
           
 void setLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
           
 void setStorageLocation(java.lang.String loc)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serviceWrapper

protected ServiceWrapper serviceWrapper
Constructor Detail

BasicAdminImpl

public BasicAdminImpl(ServiceWrapper serviceWrapper)
               throws java.rmi.RemoteException
Method Detail

destroy

public void destroy()

setStorageLocation

public void setStorageLocation(java.lang.String loc)
                        throws java.rmi.RemoteException

getStorageLocation

public java.lang.String getStorageLocation()

getLookupAttributes

public net.jini.core.entry.Entry[] getLookupAttributes()

addLookupAttributes

public void addLookupAttributes(net.jini.core.entry.Entry[] attrs)
                         throws java.rmi.RemoteException

modifyLookupAttributes

public void modifyLookupAttributes(net.jini.core.entry.Entry[] tmpls,
                                   net.jini.core.entry.Entry[] attrs)
                            throws java.rmi.RemoteException

getLookupGroups

public java.lang.String[] getLookupGroups()

addLookupGroups

public void addLookupGroups(java.lang.String[] groups)
                     throws java.rmi.RemoteException

removeLookupGroups

public void removeLookupGroups(java.lang.String[] groups)
                        throws java.rmi.RemoteException

setLookupGroups

public void setLookupGroups(java.lang.String[] groups)
                     throws java.rmi.RemoteException

getLookupLocators

public net.jini.core.discovery.LookupLocator[] getLookupLocators()

addLookupLocators

public void addLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
                       throws java.rmi.RemoteException

removeLookupLocators

public void removeLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
                          throws java.rmi.RemoteException

setLookupLocators

public void setLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
                       throws java.rmi.RemoteException