public class OffloadingBrowserClient extends CQClient
CQClient.Builder, CQClient.InternalBuilder<T extends CQClient>
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER_KEY |
static String |
IP_KEY |
static org.slf4j.Logger |
LOG |
static String |
OFFLOADING_BROWSER_JSON_LIST_URL |
static String |
OFFLOADING_CONFIG_URL |
static String |
OFFLOADING_TOPIC |
static String |
PORT_KEY |
static String |
SLING_ID_KEY |
STATISTICS_ROOT, wcmCommands
Constructor and Description |
---|
OffloadingBrowserClient(org.apache.http.impl.client.CloseableHttpClient http,
org.apache.sling.testing.clients.SlingClientConfig config) |
OffloadingBrowserClient(URI serverUrl,
String user,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
enableDisableTopic(String slingId,
String topic,
boolean enable)
Enables/ disables a topic for the given slingId.
|
void |
enableDisableTopicWithWait(String slingId,
String topic,
boolean enable,
long timeout)
Enables/ disables a topic for the given slingId.
|
Set<OffloadingInstanceConfiguration> |
getAllInstances()
Returns a set of the instance descriptors of all the existing instances
|
OffloadingInstanceConfiguration |
getInstance(String slingId)
Returns the instance descriptor for the given Sling ID, or null if it doesn't exist
|
copyLanguages, copyPage, createPage, createPageWithRetry, createVersion, deletePage, deletePageWithRetry, lockPage, movePage, movePage, resetPageStatistics, restoreTree, restoreVersion, rolloutPage, searchAndReplaceInPages, searchInPages, setPageProperties, setPageProperty, setPagePropertyImage, unlockPage, uploadAsset, uploadFileCQStyle
createFolder, createNode, createNodeRecursive, deletePath, doGetJson, exists, getJsonNode, getJsonNode, getNodeNameFromPath, getParentPath, getUUId, getUUID, importContent, importContent, importJson, move, setPropertiesString, setPropertyString, setPropertyStringArray, upload, waitExists, waitUntilExists
adaptTo, addValue, close, doDelete, doGet, doGet, doGet, doHead, doPatch, doPost, doPost, doPut, doRawRequest, doRequest, doStreamGet, doStreamPost, doStreamRequest, execute, execute, execute, execute, execute, execute, execute, execute, getClientId, getConnectionManager, getCookieStore, getCredentialsProvider, getParams, getPassword, getPath, getPath, getUrl, getUrl, getUrl, getUser, getValue, getValues, hasValue
public static final org.slf4j.Logger LOG
public static final String OFFLOADING_BROWSER_JSON_LIST_URL
public static final String OFFLOADING_CONFIG_URL
public static final String SLING_ID_KEY
public static final String IP_KEY
public static final String PORT_KEY
public static final String CLUSTER_KEY
public static final String OFFLOADING_TOPIC
public OffloadingBrowserClient(org.apache.http.impl.client.CloseableHttpClient http, org.apache.sling.testing.clients.SlingClientConfig config) throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException
public Set<OffloadingInstanceConfiguration> getAllInstances() throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException
- if the call to the backend failspublic OffloadingInstanceConfiguration getInstance(String slingId) throws org.apache.sling.testing.clients.ClientException
slingId
- id of the instanceorg.apache.sling.testing.clients.ClientException
- if the call to the backend failspublic void enableDisableTopic(String slingId, String topic, boolean enable) throws org.apache.sling.testing.clients.ClientException
slingId
- id of the instancetopic
- topic to enable/disableenable
- enable or disableorg.apache.sling.testing.clients.ClientException
- if the HTTP call to the backend failspublic void enableDisableTopicWithWait(String slingId, String topic, boolean enable, long timeout) throws org.apache.sling.testing.clients.ClientException, InterruptedException
slingId
- id of the instancetopic
- topic to enable/disableenable
- enable or disabletimeout
- number of milliseconds to wait for the topic configuration to be updatedorg.apache.sling.testing.clients.ClientException
- if the action did not register with the OffloadingBrowser before timeoutInterruptedException
- if the method was interruptedCopyright © 2018. All rights reserved.