Ejemplo n.º 1
0
  /** Starts the deploy. */
  @Override
  protected void startImpl() {
    super.startImpl();

    deploy();

    handleAlarm(_alarm);
  }
Ejemplo n.º 2
0
  /** Stops the deploy. */
  @Override
  protected void stopImpl() {
    _alarm.dequeue();

    if (_deployService != null) _deployService.removeUpdateListener(this);

    super.stopImpl();
  }
Ejemplo n.º 3
0
  /** Configuration checks on init. */
  @Override
  protected void initImpl() throws ConfigException {
    super.initImpl();

    if (getExpandDirectory() == null)
      throw new ConfigException(
          L.l("<expand-directory> must be specified for deployment of archive expansion."));

    if (getArchiveDirectory() == null)
      throw new ConfigException(
          L.l("<archive-directory> must be specified for deployment of archive expansion."));

    String id = getId();

    _directoryManager =
        new ExpandDirectoryManager(
            id, getExpandDirectory(), getExpandPrefix(), getExpandSuffix(), _requireFiles);

    _archiveManager = new ExpandArchiveManager(id, getArchiveDirectory(), getExtension());

    _repositoryManager = new ExpandRepositoryManager(id);
  }