@Override protected void backdateInstanceDomainXML() throws BootstrapException { final String remoteDomainXML = remoteInstanceDir + DOMAIN_XML_PATH; try { setLastModified(remoteDomainXML, 0); } catch (IOException ex) { throw new BootstrapException(launcher, ex); } logger.log(Level.FINE, "Backdated the instance's copy of domain.xml"); }
@Override protected void backdateInstanceDomainXML() throws BootstrapException { final String remoteDomainXML = remoteInstanceDir + DOMAIN_XML_PATH; try { setLastModified(remoteDomainXML, 0); } catch (IOException ex) { throw new BootstrapException(launcher, ex); } logger.log(Level.FINE, "Backdated the instance's copy of domain.xml"); }
private RemoteHelper( final Habitat habitat, final File dasInstanceDir, String remoteNodeDir, final String instance, final Node node, final Logger logger) throws BootstrapException { this.dasInstanceDir = dasInstanceDir; this.instance = instance; this.logger = logger; this.remoteNodeDir = remoteNodeDirUnixStyle(node, remoteNodeDir); remoteInstanceDir = remoteInstanceDir(this.remoteNodeDir); domainXMLTimestamp = dasDomainXMLTimestamp(dasInstanceDir); launcher = habitat.getComponent(SSHLauncher.class); launcher.init(node, logger); try { ftpClient = launcher.getSFTPClient(); } catch (IOException ex) { throw new BootstrapException(launcher, ex); } }
private SSHHelper( final ServiceLocator habitat, final File dasInstanceDir, String remoteNodeDir, final String instance, final Node node, final Logger logger) throws BootstrapException { super(habitat, dasInstanceDir, remoteNodeDir, instance, node, logger); launcher = habitat.getService(SSHLauncher.class); launcher.init(node, logger); try { ftpClient = launcher.getSFTPClient(); } catch (JSchException ex) { throw new BootstrapException(launcher, ex); } }
/** * Bootstraps the instance for remote admin. * * @throws IOException */ public void bootstrapInstance() throws BootstrapException { try { mkdirs(); copyBootstrapFiles(); backdateInstanceDomainXML(); } catch (Exception ex) { throw new BootstrapException(ex); } }
/** * Bootstraps the instance for remote admin. * * @throws IOException */ public void bootstrapInstance() throws BootstrapException { try { mkdirs(); copyBootstrapFiles(); backdateInstanceDomainXML(); } catch (Exception ex) { throw new BootstrapException(ex); } }