com.sun.jini.admin
Interface StorageLocationAdmin

All Known Subinterfaces:
RegistrarAdmin

public abstract interface StorageLocationAdmin

Admin interface for controlling the location of a service's persistent storage. Administrable services are encouraged to have their admin object implement this interface.

See Also:
Administrable.getAdmin()

Method Summary
 java.lang.String getStorageLocation()
          Returns the location of the service's persistent storage.
 void setStorageLocation(java.lang.String location)
          Sets the location of the service's persistent storage, moving all current persistent storage from the current location to the specified new location.
 

Method Detail

getStorageLocation

public java.lang.String getStorageLocation()
                                    throws java.rmi.RemoteException
Returns the location of the service's persistent storage. Typically returns a directory pathname unless the service specifies otherwise.

setStorageLocation

public void setStorageLocation(java.lang.String location)
                        throws java.io.IOException,
                               java.rmi.RemoteException
Sets the location of the service's persistent storage, moving all current persistent storage from the current location to the specified new location.
Throws:
java.io.IOException - if moving the persistent storage fails


Copyright © 1999 Sun Microsystems, Inc. All rights reserved