use of org.jumpmind.symmetric.model.NodeCommunication.CommunicationType in project symmetric-ds by JumpMind.
the class NodeCommunicationServiceTest method testNodeCommunicationTypeLengths.
@Test
public void testNodeCommunicationTypeLengths() {
final int MAX_LENGTH_IN_DB = 10;
for (CommunicationType communicationType : NodeCommunication.CommunicationType.values()) {
String msg = communicationType.name() + " is too long for DB. " + communicationType.name().length() + " <= " + MAX_LENGTH_IN_DB;
assertTrue(msg, communicationType.name().length() <= MAX_LENGTH_IN_DB);
}
}
use of org.jumpmind.symmetric.model.NodeCommunication.CommunicationType in project symmetric-ds by JumpMind.
the class NodeCommunicationService method stop.
public void stop() {
Collection<CommunicationType> services = new HashSet<NodeCommunication.CommunicationType>(executors.keySet());
for (CommunicationType communicationType : services) {
try {
ExecutorService service = executors.get(communicationType);
service.shutdownNow();
} finally {
executors.remove(communicationType);
}
}
}
Aggregations