Package de.anomic.search

Examples of de.anomic.search.Switchboard.terminate()


                    } else if ((downloaded == null) || (!downloaded.exists()) || (downloaded.length() == 0)) {
                        sb.getLog().logInfo("AUTO-UPDATE: omitting update because download failed (file cannot be found, is too small or signature was bad)");
                        prop.put("candeploy_autoUpdate", "4");
                    } else {
                        yacyRelease.deployRelease(downloaded);
                        sb.terminate(10, "manual release update to " + downloaded.getName());
                        sb.getLog().logInfo("AUTO-UPDATE: deploy and restart initiated");
                        prop.put("candeploy_autoUpdate", "1");
                    }
                }
            }
View Full Code Here


            return prop;
        }

        if (post.containsKey("shutdown")) {
            Log.logInfo("STEERING", "shutdown request from " + requestIP);
            sb.terminate(10, "shutdown request from Steering; ip = " + requestIP);
            prop.put("info", "3");
           
            return prop;
        }
View Full Code Here

                final File scriptFile = new File(sb.getDataPath(), "DATA/RELEASE/restart.bat".replace("/", File.separator));
                OS.deployScript(scriptFile, script);
                Log.logInfo("RESTART", "wrote restart-script to " + scriptFile.getAbsolutePath());
                OS.execAsynchronous(scriptFile);
                Log.logInfo("RESTART", "script is running");
                sb.terminate(10, "windows restart");
            } catch (final IOException e) {
                Log.logSevere("RESTART", "restart failed", e);
            }
        }
View Full Code Here

                final File scriptFile = new File(sb.getDataPath(), "DATA/RELEASE/restart.sh");
                OS.deployScript(scriptFile, script);
                Log.logInfo("RESTART", "wrote restart-script to " + scriptFile.getAbsolutePath());
                OS.execAsynchronous(scriptFile);
                Log.logInfo("RESTART", "script is running");
                sb.terminate(10, "unix restart");
            } catch (final IOException e) {
                Log.logSevere("RESTART", "restart failed", e);
            }
        }
    }
View Full Code Here

            OS.deployScript(scriptFile, script);
            Log.logInfo("UPDATE", "wrote update-script to " + scriptFile.getAbsolutePath());
            OS.execAsynchronous(scriptFile);
            Log.logInfo("UPDATE", "script is running");
            sb.setConfig("update.time.deploy", System.currentTimeMillis());
            sb.terminate(10, "auto-deploy for " + releaseFile.getName());
        } catch (final IOException e) {
            Log.logSevere("UPDATE", "update failed", e);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.