private String getRightColumnValue(Instance instance) { if (javaOpts) { return instance.getJavaOpts(); } else if (location) { return instance.getLocation(); } else { return instance.getName(); } }
private String getRightColumnValue(Instance instance) { if (javaOpts) { return instance.getJavaOpts(); } else if (location) { return instance.getLocation(); } else { return instance.getName(); } }
String options = opts; if (options == null) { options = child.getJavaOpts();
String options = opts; if (options == null) { options = child.getJavaOpts();
String opts = javaOpts; if (opts == null) { opts = instance.getJavaOpts();
String opts = javaOpts; if (opts == null) { opts = instance.getJavaOpts();
String opts = javaOpts; if (opts == null) { opts = instance.getJavaOpts();
String opts = javaOpts; if (opts == null) { opts = instance.getJavaOpts();
private static CompositeDataSupport mapInstance(Instance instance, CompositeType comp) throws OpenDataException { String state; try { state = instance.getState(); } catch (Exception e) { state = "Error"; } Object[] itemValues = new Object[] {instance.getPid(), instance.getName(), instance.isRoot(), instance.getSshPort(), instance.getSshHost(), instance.getRmiRegistryPort(), instance.getRmiRegistryHost(), instance.getRmiServerPort(), instance.getRmiServerHost(), state, instance.getLocation(), instance.getJavaOpts()}; return new CompositeDataSupport(comp, InstancesMBean.INSTANCE, itemValues); }
private static CompositeDataSupport mapInstance(Instance instance, CompositeType comp) throws OpenDataException { String state; try { state = instance.getState(); } catch (Exception e) { state = "Error"; } Object[] itemValues = new Object[] {instance.getPid(), instance.getName(), instance.isRoot(), instance.getSshPort(), instance.getSshHost(), instance.getRmiRegistryPort(), instance.getRmiRegistryHost(), instance.getRmiServerPort(), instance.getRmiServerHost(), state, instance.getLocation(), instance.getJavaOpts()}; return new CompositeDataSupport(comp, InstancesMBean.INSTANCE, itemValues); }
jw.value(instance.getState()); jw.key("location"); jw.value(instance.getJavaOpts() != null ? instance.getJavaOpts() : ""); jw.key("javaopts"); jw.value(instance.getLocation());