/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void start() { startTime = System.currentTimeMillis(); ensureCurrentState(STATE.INITED); changeState(STATE.STARTED); LOG.info("Service:" + getName() + " is started."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void stop() { if (state == STATE.STOPPED || state == STATE.INITED || state == STATE.NOTINITED) { // already stopped, or else it was never // started (eg another service failing canceled startup) return; } ensureCurrentState(STATE.STARTED); changeState(STATE.STOPPED); LOG.info("Service:" + getName() + " is stopped."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void init(HiveConf hiveConf) { ensureCurrentState(STATE.NOTINITED); setHiveConf(hiveConf); changeState(STATE.INITED); LOG.info("Service:" + getName() + " is inited."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void start() { startTime = System.currentTimeMillis(); ensureCurrentState(STATE.INITED); changeState(STATE.STARTED); LOG.info("Service:" + getName() + " is started."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void start() { startTime = System.currentTimeMillis(); ensureCurrentState(STATE.INITED); changeState(STATE.STARTED); LOG.info("Service:" + getName() + " is started."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void start() { startTime = System.currentTimeMillis(); ensureCurrentState(STATE.INITED); changeState(STATE.STARTED); LOG.info("Service:" + getName() + " is started."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void start() { startTime = System.currentTimeMillis(); ensureCurrentState(STATE.INITED); changeState(STATE.STARTED); LOG.info("Service:" + getName() + " is started."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void start() { startTime = System.currentTimeMillis(); ensureCurrentState(STATE.INITED); changeState(STATE.STARTED); LOG.info("Service:" + getName() + " is started."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void init(HiveConf hiveConf) { ensureCurrentState(STATE.NOTINITED); this.hiveConf = hiveConf; changeState(STATE.INITED); LOG.info("Service:" + getName() + " is inited."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void init(HiveConf hiveConf) { ensureCurrentState(STATE.NOTINITED); this.hiveConf = hiveConf; changeState(STATE.INITED); LOG.info("Service:" + getName() + " is inited."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void init(HiveConf hiveConf) { ensureCurrentState(STATE.NOTINITED); this.hiveConf = hiveConf; changeState(STATE.INITED); LOG.info("Service:" + getName() + " is inited."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void init(HiveConf hiveConf) { ensureCurrentState(STATE.NOTINITED); this.hiveConf = hiveConf; changeState(STATE.INITED); LOG.info("Service:" + getName() + " is inited."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void stop() { if (state == STATE.STOPPED || state == STATE.INITED || state == STATE.NOTINITED) { // already stopped, or else it was never // started (eg another service failing canceled startup) return; } ensureCurrentState(STATE.STARTED); changeState(STATE.STOPPED); LOG.info("Service:" + getName() + " is stopped."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void stop() { if (state == STATE.STOPPED || state == STATE.INITED || state == STATE.NOTINITED) { // already stopped, or else it was never // started (eg another service failing canceled startup) return; } ensureCurrentState(STATE.STARTED); changeState(STATE.STOPPED); LOG.info("Service:" + getName() + " is stopped."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void stop() { if (state == STATE.STOPPED || state == STATE.INITED || state == STATE.NOTINITED) { // already stopped, or else it was never // started (eg another service failing canceled startup) return; } ensureCurrentState(STATE.STARTED); changeState(STATE.STOPPED); LOG.info("Service:" + getName() + " is stopped."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void stop() { if (state == STATE.STOPPED || state == STATE.INITED || state == STATE.NOTINITED) { // already stopped, or else it was never // started (eg another service failing canceled startup) return; } ensureCurrentState(STATE.STARTED); changeState(STATE.STOPPED); LOG.info("Service:" + getName() + " is stopped."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void stop() { if (state == STATE.STOPPED || state == STATE.INITED || state == STATE.NOTINITED) { // already stopped, or else it was never // started (eg another service failing canceled startup) return; } ensureCurrentState(STATE.STARTED); changeState(STATE.STOPPED); LOG.info("Service:" + getName() + " is stopped."); }
/** * {@inheritDoc} * * @throws IllegalStateException * if the current service state does not permit * this action */ @Override public synchronized void init(HiveConf hiveConf) { ensureCurrentState(STATE.NOTINITED); setHiveConf(hiveConf); changeState(STATE.INITED); LOG.info("Service:" + getName() + " is inited."); }