public Fabric startTransports() { if (state != State.STARTED) { throw new IllegalStateException("In wrong state: " + state); } coordinator.startTransports(); state = State.RUNNING; return this; }
coordinator.boot(); coordinator.load(); coordinator.startRuntime();
public Fabric stop() throws FabricException { if (state != State.RUNNING && state != State.STARTED) { throw new IllegalStateException("Not in started or running state: " + state); } coordinator.shutdown(); state = State.UNINITIALIZED; if (tempDirectory.exists()) { try { FileHelper.cleanDirectory(tempDirectory); } catch (Fabric3Exception e) { //noinspection StatementWithEmptyBody if (e.getCause() instanceof IOException) { // Classloader on Windows does not release locks on JAR files, ignore } if (tempDirectory.exists()) { FileHelper.forceDeleteOnExit(tempDirectory); } } } return this; }