Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r2462 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels

Subject: perfsonar development work

List archive

perfsonar: r2462 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r2462 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels
  • Date: Thu, 7 Jun 2007 08:31:14 -0400

Author: nina
Date: 2007-06-07 08:31:12 -0400 (Thu, 07 Jun 2007)
New Revision: 2462

Modified:

branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetaDataTableModel.java
Log:
now can display any IUserdata class

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetaDataTableModel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetaDataTableModel.java
2007-06-07 09:47:26 UTC (rev 2461)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/MetaDataTableModel.java
2007-06-07 12:31:12 UTC (rev 2462)
@@ -73,23 +73,19 @@
}

public Object getValueAt(int arg0, int index) {
- UserData data = (UserData)dataList.get(arg0);
+ IUserData data = dataList.get(arg0);
if (data == null) return "NA";
switch (index) {
case 0:return new Integer(data.getNum());
- case 1: {return
data.getHostname(AbstractUserData.ID_RESPONSE);}
- case 2:{return
data.getifAddress(AbstractUserData.ID_RESPONSE);}
- case 3: {return
data.getIfName(AbstractUserData.ID_RESPONSE);}
- case 4: {return
data.getIfDescr(AbstractUserData.ID_RESPONSE);}
- case 5: {return data.getCapacity();}
- case 6: {return data.getUtilizationIn();}
- case 7: {return data.getUtilizationOut();}
- //case 8: {return new Long(data.getMBitsInInt());}
- //case 9: {return new Long(data.getMBitsOutInt());}

- case 8: {return
data.getResponse(UserData.INDEX_IFBITS_IN);}
- case 9: {return
data.getResponse(UserData.INDEX_IFBITS_OUT);}

- //case 8: {return
Long.toString(data.getServiceTime());}
- //case 9: {return Long.toString(data.getUiTime());}
+ case 1: {return
data.getResponse(UserData.C_HOSTNAME);}
+ case 2:{return
data.getResponse(UserData.C_IFADDRESS);}
+ case 3:{return data.getResponse(UserData.C_IFNAME);}
+ case 4:{return
data.getResponse(UserData.C_IFDESCRIPTION);}
+ case 5:{return data.getResponse(UserData.C_CAPACITY);}
+ case 6: {return
data.getResponse(UserData.names[UserData.INDEX_IFUTILIZATION_IN]);}
+ case 7: {return
data.getResponse(UserData.names[UserData.INDEX_IFUTILIZATION_OUT]);}
+ case 8: {return
data.getResponse(UserData.names[UserData.INDEX_IFBITS_IN]);}
+ case 9: {return
data.getResponse(UserData.names[UserData.INDEX_IFBITS_OUT]);}
case 10: {return data.getEndpoint().getTitle();}
case 11: {
return data.getResponse(IUserData.C_STATUS);



  • perfsonar: r2462 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels, svnlog, 06/07/2007

Archive powered by MHonArc 2.6.16.

Top of Page