net.sf.hajdbc.state.distributed.DistributedManager Maven / Gradle / Ivy
package net.sf.hajdbc.state.distributed;
import java.util.List;
import java.util.Map;
import net.sf.hajdbc.Database;
import net.sf.hajdbc.distributed.Command;
import net.sf.hajdbc.distributed.Member;
import net.sf.hajdbc.distributed.MembershipListener;
public interface DistributedManager> {
void addMembershipListener(MembershipListener listener);
void removeMembershipListener(MembershipListener listener);
Member getLocal();
String getLocalIp();
Member getCoordinator();
List getMembers();
Member getMember(String ip);
Map executeAll(Command> command,
Member... excludedMembers);
R execute(Command> command, Member member);
C getExtContext(String key);
C removeExtContext(String key);
void setExtContext(String key, C context);
}