@Override public void close() throws IOException { super.close(); if (client != null) { client.close(); } }
/** * Calls {@link Tiller#close() close()} on the {@link Tiller} * instance {@linkplain #ReleaseManager(Tiller) supplied at * construction time}. * * @exception IOException if an error occurs */ @Override public void close() throws IOException { this.getTiller().close(); }
/** * Calls {@link Tiller#close() close()} on the {@link Tiller} * instance {@linkplain #ReleaseManager(Tiller) supplied at * construction time}. * * @exception IOException if an error occurs */ @Override public void close() throws IOException { this.getTiller().close(); }
@Override public void close() { ensureNotClosed(); try { tiller.close(); closed = true; } catch (IOException e) { throw new TillerClientException("Failed to close tiller instance", e); } }
@Test public void testNewTiller() throws Throwable { for (TillerConnectionType connectionType : TillerConnectionType.values()) { Tiller tiller = TillerFactory.newTiller(buildTillerConfig(connectionType)); assertNotNull(tiller); assertNotNull(tiller.getHealthStub()); tiller.close(); } }