KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > regis > Configurable


1 package org.sapia.regis;
2
3 import java.rmi.RemoteException JavaDoc;
4 import java.util.Properties JavaDoc;
5
6
7 public interface Configurable{
8
9   /**
10    * @param nodePath the path of the <code>Node</code> to update.
11    * @param username a username.
12    * @param password a password.
13    * @param xmlConf a registry XML configuration.
14    * @param props the <code>Properties</code> to use as variables for substitution
15    * purposes, or <code>null</code> if no such properties are appropriate.
16    * @throws RemoteException if the remote registry could not be accessed.
17    * @throws Exception if an error occurs performing the update.
18    */

19   public void load(Path nodePath,
20                    String JavaDoc username,
21                    String JavaDoc password,
22                    String JavaDoc xmlConf,
23                    Properties JavaDoc props) throws RemoteException JavaDoc, Exception JavaDoc;
24
25   /**
26    * This method is meant to be used as a replication hook when multiple configurable instances are set up in peer-to-peer.
27    *
28    * @see #load(Path, String, String, String, Properties)
29    */

30   public void syncLoad(Path nodePath, String JavaDoc username, String JavaDoc password, String JavaDoc xmlConf, Properties JavaDoc props) throws RemoteException JavaDoc, Exception JavaDoc;
31
32 }
33
Popular Tags