![JAR search and dependency download from the Maven repository](/logo.png)
nyla.solutions.commas.remote.partitioning.CommasRemoteRegistry Maven / Gradle / Ivy
package nyla.solutions.commas.remote.partitioning;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;
import nyla.solutions.commas.CommandFacts;
public interface CommasRemoteRegistry extends Remote
{
/**
*
* @param key the routing key
* @param commandFacts the Command facts
* @return
* @throws RemoteException
*/
LocationType whereIs(KeyType key, CommandFacts commandFacts)
throws RemoteException;
void registerKey(KeyType key, CommandFacts commandFacts, LocationType location )
throws RemoteException;
//TODO: may add to add command facts
public void registerLocation(LocationType location)
throws RemoteException;
public Collection listRegisteredLocations()
throws RemoteException;
/**
* Unregister a location
* @param location remote all references to the location
* @throws RemoteException
*/
public void unregisterLocation(LocationType location)
throws RemoteException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy