[jbosstools-issues] [JBoss JIRA] Issue Comment Edited: (JBIDE-7484) DeltaCloudClient: remove instance methods (#startInstance, #stopInstance, etc.) in order to remove code duplication

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Thu Nov 4 08:03:01 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-7484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561272#action_12561272 ] 

Andre Dietisheim edited comment on JBIDE-7484 at 11/4/10 8:01 AM:
------------------------------------------------------------------

Deltacloud reports the newly available actions when it performed an action on a instance. In other words if you stop an instance, deltacloud will report that you may now destroy the instance but not stop it. The current client implementation does not consider this. Currently the deltacloud plugin tracks this on its own which is obsolete. I switch this.

      was (Author: adietish):
    Deltacloud reports the instance state on each instance action. In other word the response when stopping and instance always returns the available actions (ex. a running instance may only be stopped but not destroyed). The current client implementation does not consider these informations. Currently the deltacloud plugin does track this on its own which is obsolete. I switch this.
  
> DeltaCloudClient: remove instance methods (#startInstance, #stopInstance, etc.) in order to remove code duplication
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-7484
>                 URL: https://jira.jboss.org/browse/JBIDE-7484
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>
> The DeltaCloudClient currently has duplicate implementations of instance related functionalities (start, stop, destroy, reboot). I'll remove the deprecated methods:
> Mail with Jeff Johnson on the 29th of Oct:
> >> I discovered another possible duplication:
> >>
> >> DeltaCloudClient#performInstanceAction allows you to perfom START, STOP,
> >> REBOOT, DESTROY (Instance#Action)
> >>
> >> On the other hand most of these actions also have their own method in
> >> DeltaCloudClient:
> >>
> >> startInstance
> >> shutdownInstance (=STOP)
> >> rebootInstance
> >> destroyInstance
> >>
> >> Is there any reason for this duplication? Which one would you remove
> >> (the performaAction or the individual methods)?
> >>
> >> Thanks!
> >> André
> >I would remove the individual methods.  Remember that I copied and hacked an ancient version of this code so some methods that Martin thought 
> > might be useful were never used.  I didn't go about pruning them.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list