int column = 0;
Function1 function = new Function1() {
@Override
public Object apply(Object element) {
ComputeMetadata value = JClouds.asComputeMetadata(element);
if (value != null) {
return value.getId();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Id");
function = new Function1() {
@Override
public Object apply(Object element) {
ComputeMetadata value = JClouds.asComputeMetadata(element);
if (value != null) {
return value.getName();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Name");
function = new Function1() {
@Override
public Object apply(Object element) {
NodeMetadata value = JClouds.asNodeMetadata(element);
if (value != null) {
return value.getStatus();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "State");
function = new Function1() {
@Override
public Object apply(Object element) {
NodeMetadata value = JClouds.asNodeMetadata(element);
if (value != null) {
Hardware hardware = value.getHardware();
if (hardware != null) {
return JClouds.text(hardware);
}
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Hardware");
function = new Function1() {
@Override
public Object apply(Object element) {
NodeMetadata value = JClouds.asNodeMetadata(element);
if (value != null) {
return value.getImageId();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Image");
function = new Function1() {
@Override
public Object apply(Object element) {
NodeMetadata value = JClouds.asNodeMetadata(element);
if (value != null) {
OperatingSystem operatingSystem = value.getOperatingSystem();
if (operatingSystem != null) {
return JClouds.text(operatingSystem);
}
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "OS");
function = new Function1() {
@Override
public Object apply(Object element) {
NodeMetadata value = JClouds.asNodeMetadata(element);
if (value != null) {
return value.getGroup();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Group");
function = new Function1() {
@Override
public Object apply(Object element) {
NodeMetadata value = JClouds.asNodeMetadata(element);
if (value != null) {
return joinSpaces(value.getPublicAddresses());
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Public IPs");
function = new Function1() {
@Override
public Object apply(Object element) {
NodeMetadata value = JClouds.asNodeMetadata(element);
if (value != null) {
return joinSpaces(value.getPrivateAddresses());
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Private IPs");
function = new Function1() {
@Override
public Object apply(Object element) {
Location value = JClouds.asLocation(element);
if (value != null) {
return value.getDescription();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Location");
function = new Function1() {
@Override
public Object apply(Object element) {
ComputeMetadata value = JClouds.asComputeMetadata(element);
if (value != null) {
return value.getUri();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "URI");
function = new Function1() {
@Override
public Object apply(Object element) {
ComputeMetadata value = JClouds.asComputeMetadata(element);
if (value != null) {
return joinSpaces(value.getTags());
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Tags");