nyla.solutions.global.patterns.command.remote.partitioning.CommasRemoteRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.global Show documentation
Show all versions of nyla.solutions.global Show documentation
Nyla Solutions Global Java API provides support for basic application
utilities (application configuration, data encryption, debugger and text
processing).
The newest version!
package nyla.solutions.global.patterns.command.remote.partitioning;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;
import nyla.solutions.global.patterns.command.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;
}