Autoscale - add and delete instances

Initial implementation of scale up (https://github.com/SixSq/tasklist/issues/97 T1) and down (https://github.com/SixSq/tasklist/issues/98 T1) capability server side.
Done in 1723177cff25ffaaaf431b982f84cd25dfde7812

On 27 Jun 2014, at 12:19, Marc-Elian Begin <notifications@github.com> wrote:

> In jar-service/src/main/java/com/sixsq/slipstream/run/NodeGroupResource.java:
> 
> > +			udpateRunState(run);
> > +
> > +			transaction.commit();
> > +		} catch (Exception ex) {
> > +			if (transaction.isActive()) {
> > +				transaction.rollback();
> > +			}
> > +			throw ex;
> > +		} finally {
> > +			em.close();
> > +		}
> > +
> > +		getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
> > +	}
> > +
> > +	private void raiseConflictIfAbortIsSet() {
> Code duplication with RuntimeParameterResource.
> 
> —
> Reply to this email directly or view it on GitHub.
>