use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class WeblogicApi method readWebLogicOracleV1NamespacedDomainAsync.
/**
* (asynchronously) read the specified Domain
*
* @param name
* name of the Domain (required)
* @param namespace
* object name and auth scope, such as for teams and projects
* (required)
* @param pretty
* If 'true', then the output is pretty printed. (optional)
* @param exact
* Should the export be exact. Exact export maintains cluster-specific
* fields like 'Namespace'. (optional)
* @param export
* Should this value be exported. Export strips fields that a user can
* not specify. (optional)
* @param callback
* The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException
* If fail to process the API call, e.g. serializing the request body
* object
*/
public com.squareup.okhttp.Call readWebLogicOracleV1NamespacedDomainAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback<Domain> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = (bytesRead, contentLength, done) -> callback.onDownloadProgress(bytesRead, contentLength, done);
progressRequestListener = (bytesWritten, contentLength, done) -> callback.onUploadProgress(bytesWritten, contentLength, done);
}
com.squareup.okhttp.Call call = readWebLogicOracleV1NamespacedDomainValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Domain>() {
}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class WeblogicApi method patchWebLogicOracleV1NamespacedDomainAsync.
/**
* (asynchronously) partially update the specified Domain
*
* @param name
* name of the Domain (required)
* @param namespace
* object name and auth scope, such as for teams and projects
* (required)
* @param body
* (required)
* @param pretty
* If 'true', then the output is pretty printed. (optional)
* @param callback
* The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException
* If fail to process the API call, e.g. serializing the request body
* object
*/
public com.squareup.okhttp.Call patchWebLogicOracleV1NamespacedDomainAsync(String name, String namespace, Patch body, String pretty, final ApiCallback<Domain> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = (bytesRead, contentLength, done) -> callback.onDownloadProgress(bytesRead, contentLength, done);
progressRequestListener = (bytesWritten, contentLength, done) -> callback.onUploadProgress(bytesWritten, contentLength, done);
}
com.squareup.okhttp.Call call = patchWebLogicOracleV1NamespacedDomainValidateBeforeCall(name, namespace, body, pretty, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Domain>() {
}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class WeblogicApi method replaceWebLogicOracleV1NamespacedDomainStatusWithHttpInfo.
/**
* replace status of the specified Domain
*
* @param name
* name of the Domain (required)
* @param namespace
* object name and auth scope, such as for teams and projects
* (required)
* @param body
* (required)
* @param pretty
* If 'true', then the output is pretty printed. (optional)
* @return ApiResponse<Domain>
* @throws ApiException
* If fail to call the API, e.g. server error or cannot deserialize
* the response body
*/
public ApiResponse<Domain> replaceWebLogicOracleV1NamespacedDomainStatusWithHttpInfo(String name, String namespace, Domain body, String pretty) throws ApiException {
com.squareup.okhttp.Call call = replaceWebLogicOracleV1NamespacedDomainStatusValidateBeforeCall(name, namespace, body, pretty, null, null);
Type localVarReturnType = new TypeToken<Domain>() {
}.getType();
return apiClient.execute(call, localVarReturnType);
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class DomainPresenceInfo method getAdmin.
/**
* Server objects (Pods and Services) for admin server
* @return Server objects for admin server
*/
public ServerKubernetesObjects getAdmin() {
Domain dom = domain.get();
DomainSpec spec = dom.getSpec();
return servers.get(spec.getAsName());
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class HealthCheckHelper method verifyPersistentVolume.
/**
* Verify a persistent volume exists for a domain and the permissions are correct.
*
* @throws ApiException exception for k8s API
*/
private void verifyPersistentVolume(HashMap<String, Domain> domainUIDMap) throws ApiException {
CallBuilderFactory factory = ContainerResolver.getInstance().getContainer().getSPI(CallBuilderFactory.class);
V1PersistentVolumeList pvList = factory.create().listPersistentVolume();
for (Domain domain : domainUIDMap.values()) {
LOGGER.finest(MessageKeys.WEBLOGIC_DOMAIN, domain.toString());
String domainUID = domain.getSpec().getDomainUID();
boolean foundLabel = false;
for (V1PersistentVolume pv : pvList.getItems()) {
Map<String, String> labels = pv.getMetadata().getLabels();
if (labels != null && labels.get(DOMAIN_UID_LABEL) != null && labels.get(DOMAIN_UID_LABEL).equals(domainUID)) {
foundLabel = true;
List<String> accessModes = pv.getSpec().getAccessModes();
boolean foundAccessMode = false;
for (String accessMode : accessModes) {
if (accessMode.equals(READ_WRITE_MANY_ACCESS)) {
foundAccessMode = true;
break;
}
}
// Persistent volume does not have ReadWriteMany access mode,
if (!foundAccessMode) {
logHealthCheckEvent(MessageKeys.PV_ACCESS_MODE_FAILED, pv.getMetadata().getName(), domain.getMetadata().getName(), domainUID, READ_WRITE_MANY_ACCESS);
}
// TODO: Should we verify the claim, also?
}
}
// Persistent volume for domain UID not found
if (!foundLabel) {
logHealthCheckEvent(MessageKeys.PV_NOT_FOUND_FOR_DOMAIN_UID, domain.getMetadata().getName(), domainUID);
}
}
}
Aggregations