[
https://issues.jboss.org/browse/JBIDE-11903?page=com.atlassian.jira.plugi...
]
Andre Dietisheim edited comment on JBIDE-11903 at 3/5/13 8:51 AM:
------------------------------------------------------------------
start, stop and restart are already available via
{code}
IApplication#start
IApplication#stop
IApplcaiiton#restart
{code}
There are approriate tests in ApplicationResourceIntegrationTest which test the REST
operations that are related:
{code}
ApplicationResourceIntegrationTest#shouldStartStartedApplication
ApplicationResourceIntegrationTest#shouldStartStoppedApplication
ApplicationResourceIntegrationTest#shouldStopApplication
ApplicationResourceIntegrationTest#shouldStopStoppedApplication
ApplicationResourceIntegrationTest#shouldRestartStartedApplication
ApplicationResourceIntegrationTest#shouldRestartStoppedApplication
{code}
What's missing are methods that allow report the current state.
According to
https://bugzilla.redhat.com/show_bug.cgi?id=805989 there are the following
states
{code}
* stopped
* building
* deploying
* started
* idle
* unknown
{code}
which may be queried via gear_profiles:
{code}
curl -k --user "<USER>:<PASS>" -H "Accept:
application/xml;version=1.0"
https://openshift.redhat.com/broker/rest/domains/honkabonka2/applications...
-X GET
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>ok</status>
<type>gear_groups</type>
<data>
<gear-group>
<uuid>512e6a3ee0b8cde478000045</uuid>
<name>512e6a3ee0b8cde478000045</name>
<gear-profile>small</gear-profile>
<gears>
<gear>
<id>512e6a3ee0b8cde478000037</id>
<state>idle</state>
</gear>
</gears>
<cartridges>
<cartridge>
<name>jbossas-7</name>
<display-name>JBoss Application Server 7.1</display-name>
<tags>
<tag>service</tag>
<tag>web_framework</tag>
<tag>java</tag>
<tag>jboss</tag>
</tags>
</cartridge>
<cartridge>
<connection-url>postgresql://127.11.220.1:5432/</connection-url>
<username>admin</username>
<password>RcqAMFZ4yyju</password>
<database-name>as</database-name>
<name>postgresql-8.4</name>
<display-name>PostgreSQL Database 8.4</display-name>
<tags>
<tag>service</tag>
<tag>database</tag>
<tag>embedded</tag>
</tags>
</cartridge>
<cartridge>
<
job-url>https://j-honkabonka2.rhcloud.com/job/as-build/</job-url>
<name>jenkins-client-1.4</name>
<display-name>Jenkins Client 1.4</display-name>
<tags>
<tag>ci_builder</tag>
<tag>embedded</tag>
</tags>
</cartridge>
</cartridges>
<scales-from>1</scales-from>
<scales-to>1</scales-to>
<base-gear-storage>1</base-gear-storage>
<additional-gear-storage>0</additional-gear-storage>
</gear-group>
</data>
<messages/>
<version>1.0</version>
<supported-api-versions>
<supported-api-version>1.0</supported-api-version>
<supported-api-version>1.1</supported-api-version>
<supported-api-version>1.2</supported-api-version>
<supported-api-version>1.3</supported-api-version>
</supported-api-versions>
</response>
{code}
was (Author: adietish):
start, stop and restart are already available via
{code}
IApplication#start
IApplication#stop
IApplcaiiton#restart
{code}
There are approriate tests in ApplicationResourceIntegrationTest which test the REST
operations that are related:
{code}
ApplicationResourceIntegrationTest
ApplicationResourceIntegrationTest
ApplicationResourceIntegrationTest
ApplicationResourceIntegrationTest
ApplicationResourceIntegrationTest
ApplicationResourceIntegrationTest
ApplicationResourceIntegrationTest
{code}
OpenShift Explorer: add Application start/stop/restart
-------------------------------------------------------
Key: JBIDE-11903
URL:
https://issues.jboss.org/browse/JBIDE-11903
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: openshift
Affects Versions: 3.3.0.Beta2
Environment: Eclipse plugin
Reporter: Nam Duong
Assignee: Andre Dietisheim
Fix For: 4.1.0.Alpha2
The OpenShift Console view should contain controls for application start|stop|restart to
match the functionality of the CLI. Currently, if you select Window->Show
View->Others->OpenShift Express Console, then login in and select an application.
The right-click menu doesn't have start|stop|restart so users have to either install
the rhc client tools or ssh onto the OpenShift host gear.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira