@@ -0,0 +1,868 @@
+package node.company;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport transaction.Vault;%0A%0Aimport communication.protocols.Protocol;%0Aimport communication.protocols.TransactionCommitProtocol;%0Aimport communication.protocols.TransactionExecutionProtocol;%0Aimport data.trainnetwork.BookableSection;%0A%0Apublic class DistributedRepositorySlave extends DistributedRepository %7B%0A%0A%09@Override%0A%09protected Set%3CProtocol%3E getProtocols() %7B%0A%09%09Set%3CProtocol%3E protocols = new HashSet%3CProtocol%3E();%0A%09%09protocols.add(new TransactionExecutionProtocol%3CString, Vault%3CBookableSection%3E%3E(transactions));%0A%09%09protocols.add(new TransactionCommitProtocol%3CString, Vault%3CBookableSection%3E%3E(transactions));%0A%09%09%0A%09%09// TODO add client handling%0A%09%09%0A%09%09return protocols;%0A%09%7D%0A%0A%09%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09DistributedRepositorySlave s = new DistributedRepositorySlave();%0A%09%09s.start();%0A%09%09%0A%09%7D%0A%09%0A%7D%0A

Add DistributedRepositorySlave