OpenShift Java Client 2.5.0.Final

com.openshift.internal.client.cartridge
Class AbstractCartridgeQuery

java.lang.Object
  extended by com.openshift.internal.client.cartridge.AbstractCartridgeQuery
Direct Known Subclasses:
LatestVersionQuery, StringPropertyQuery

public abstract class AbstractCartridgeQuery
extends Object

A base class for a constraint that shall match available embeddable cartridges (on the platform). Among several matching ones, the one with the highest version is chosen. application.

Author:
Andre Dietisheim
See Also:
for cartridges that have already been added and configured to an application.

Constructor Summary
AbstractCartridgeQuery()
           
 
Method Summary
<C extends ICartridge>
C
get(Collection<C> cartridges)
           
<C extends ICartridge>
Collection<C>
getAll(Collection<C> cartridges)
           
protected  IOpenShiftConnection getConnection(IApplication application)
           
protected  IOpenShiftConnection getConnection(IDomain domain)
           
abstract
<C extends ICartridge>
boolean
matches(C cartridge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCartridgeQuery

public AbstractCartridgeQuery()
Method Detail

getAll

public <C extends ICartridge> Collection<C> getAll(Collection<C> cartridges)

get

public <C extends ICartridge> C get(Collection<C> cartridges)

matches

public abstract <C extends ICartridge> boolean matches(C cartridge)

getConnection

protected IOpenShiftConnection getConnection(IApplication application)

getConnection

protected IOpenShiftConnection getConnection(IDomain domain)

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.