Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

java client for the OpenShift REST service

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 epl-v10.html
Octocat-spinner-32 license
Octocat-spinner-32 pom.xml
README.md

OpenShift Java Client

This is a client for OpenShift written in java. It pretty much offers all features that are currently available in the rhc-* command line tools (create/rename a domain, create/destroy applications, list all existing applications, available cartridges, embed cartridges etc.). This is the client that is used in JBoss Tools for OpenShift.

Usage

An exemplary usage of the client may look like the following:

    final IOpenShiftConnection connection = 
            new OpenShiftConnectionFactory().getConnection("myApplicationId", "user", "password");
    IUser user = connection.getUser();
    IDomain domain = user.createDomain("myDomain");
    IApplication as7Application = domain.createApplication("myApplication", ICartridge.JBOSSAS_7);
    IEmbeddedCartridge mySqlCartridge = as7Application.addEmbeddableCartridge(IEmbeddableCartridge.MYSQL_51);
    String unstructuredCredentials = mySqlCartridge.getCreationLog();
    String mySqlConnectionUrl = mySqlCartridge.getUrl();

Download

You may either build from source using maven (mvn clean package) or get the prebuilt artifact from the maven central.

Something went wrong with that request. Please try again.