use of org.apache.commons.lang.builder.ToStringBuilder in project accumulo by apache.
the class HostRegexTableLoadBalancer method toString.
@Override
public String toString() {
ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
buf.append("\nTablet Out Of Bounds Check Interval", this.oobCheckMillis);
buf.append("\nMax Tablet Server Migrations", this.maxTServerMigrations);
buf.append("\nRegular Expressions use IPs", this.isIpBasedRegex);
buf.append("\nPools", this.poolNameToRegexPattern);
return buf.toString();
}
use of org.apache.commons.lang.builder.ToStringBuilder in project motech by motech.
the class ReflectionsUtil method getAnnotationValue.
/**
* Retrieves a value of the specified property from the given annotation.
*
* @param annotation an annotation to look for the property in
* @param property a property to retrieve value for
* @param defaultValues default values to return, in case the property is not set
* @return value of the property from the annotation, or default values
*/
public static String getAnnotationValue(Annotation annotation, String property, String... defaultValues) {
Object value = getValue(annotation, property);
String valueAsString = null;
if (null != value) {
valueAsString = new ToStringBuilder(value, ToStringStyle.SIMPLE_STYLE).append(value).toString();
}
for (String defaultValue : defaultValues) {
valueAsString = defaultIfBlank(valueAsString, defaultValue);
}
return valueAsString;
}
use of org.apache.commons.lang.builder.ToStringBuilder in project coprhd-controller by CoprHD.
the class FibreChannelHBA method toString.
@Override
public String toString() {
ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
builder.append("nodeWWN", nodeWWN);
builder.append("portWWN", portWWN);
builder.append("instanceName", instanceName);
return builder.toString();
}
use of org.apache.commons.lang.builder.ToStringBuilder in project coprhd-controller by CoprHD.
the class Disk method toString.
@Override
public String toString() {
ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
builder.append("number", number);
builder.append("diskId", diskId);
builder.append("type", type);
builder.append("status", status);
builder.append("path", path);
builder.append("target", target);
builder.append("lunId", lunId);
builder.append("locationPath", locationPath);
builder.append("currentReadOnlyState", currentReadOnlyState);
builder.append("readOnly", readOnly);
builder.append("bootDisk", bootDisk);
builder.append("pageFileDisk", pageFileDisk);
builder.append("hibernationFileDisk", hibernationFileDisk);
builder.append("crashdumpDisk", crashdumpDisk);
builder.append("volumes", volumes);
return builder.toString();
}
use of org.apache.commons.lang.builder.ToStringBuilder in project coprhd-controller by CoprHD.
the class IScsiSession method toString.
@Override
public String toString() {
ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
builder.append("targetAddress", targetAddress);
builder.append("targetPort", targetPort);
builder.append("initiatorName", initiatorName);
builder.append("sessionId", sessionId);
builder.append("targetName", targetName);
builder.append("devices", devices);
return builder.toString();
}
Aggregations