Skip to content

bdecoste/openshift-java-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

java client for the OpenShift REST service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.9%
  • Shell 0.1%