public void logErrorInCheckStatusResponse( ClientSubscriptionChannel channel, CheckStatusResponseStructure response, boolean isNewer, boolean isInError) { StringBuilder b = new StringBuilder(); b.append("check status failed for channel:"); b.append(" address=").append(channel.getAddress()); if (isNewer) { b.append(" prevServiceStartedTime="); b.append(channel.getLastServiceStartedTime()); b.append(" newServiceStartedTime="); b.append(response.getServiceStartedTime()); } ErrorCondition error = response.getErrorCondition(); if (isInError && error != null) { ClientSupport.appendError(error.getServiceNotAvailableError(), b); ClientSupport.appendError(error.getOtherError(), b); if (error.getDescription() != null && error.getDescription().getValue() != null) b.append(" errorDescription=" + error.getDescription().getValue()); } _log.warn(b.toString()); }
public <T> T asAdmin(AdminClientCall<T> call) { return client.asUser("admin", getAdminPassword(), call); }
public <T> T anonymous(PropertyClientCall<T> call) { return client.anonymous(call); }
public <T> T anonymous(ManageClientCall<T> call) { return client.anonymous(call); }