Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3622 - branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls

Subject: perfsonar development work

List archive

perfsonar: r3622 - branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3622 - branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls
  • Date: Mon, 7 Apr 2008 18:05:27 -0400

Author: michael.bischoff
Date: 2008-04-07 18:05:26 -0400 (Mon, 07 Apr 2008)
New Revision: 3622

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSQueryTest.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSSupport.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/Test.java
Log:
@override issues with 1.5 <> 1.6

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSQueryTest.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSQueryTest.java
2008-04-07 21:02:42 UTC (rev 3621)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSQueryTest.java
2008-04-07 22:05:26 UTC (rev 3622)
@@ -38,12 +38,10 @@
Service ls = new Service();

ls.setAddress("http://sonar1.amsterdam.surfnet.nl:8080/XML-LS-1.1.2/services/LookupService";);
support.lookup(ls, new ResultListener<Collection<Service>>() {
- @Override
public void result(Collection<Service> metadata) {
done = true;
System.out.println("taskDone");

}
- @Override
public void exception(Exception e) {
e.printStackTrace();
}
@@ -74,13 +72,11 @@
frame.add(component, BorderLayout.CENTER);

final ResultListener<Collection<Service>> listener = new
ResultListener<Collection<Service>>() {
- @Override
public void exception(Exception e) {
e.printStackTrace();
component.setBusy(false);
}

- @Override
public void result(Collection<Service> metadata) {
for(Service datum : metadata) {
model.clear();
@@ -94,7 +90,6 @@
button.addActionListener(new ActionListener() {
private boolean busy = false;

- @Override
public void actionPerformed(ActionEvent e) {
component.setBusy(busy,"Looking up
services.");
support.lookup(ls, listener);

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSSupport.java
===================================================================
--- branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSSupport.java
2008-04-07 21:02:42 UTC (rev 3621)
+++ branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/LSSupport.java
2008-04-07 22:05:26 UTC (rev 3622)
@@ -24,7 +24,6 @@
*/
public Future<Collection<Service>> lookup(final Service ls, final
ResultListener<Collection<Service>> listener) {
return executor.submit(new Callable<Collection<Service>>() {
- @Override
public Collection<Service> call() throws Exception {
Collection<Service> result = null;
try {
@@ -61,7 +60,6 @@
}

return executor.submit(new Callable<String>() {
- @Override
public String call() throws Exception {
MetadataQuery query = new
MetadataQuery(fromLs, forService);
String result = query.execute();

Modified: branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/Test.java
===================================================================
--- branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/Test.java
2008-04-07 21:02:42 UTC (rev 3621)
+++ branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls/Test.java
2008-04-07 22:05:26 UTC (rev 3622)
@@ -35,14 +35,12 @@
frame.add(component, BorderLayout.CENTER);

final ResultListener<Collection<Service>> listener = new
ResultListener<Collection<Service>>() {
- @Override
public void exception(Exception e) {
e.printStackTrace();
component.setBusy(false);
JOptionPane.showMessageDialog(frame, "error
occoured: "+e.getLocalizedMessage());
}

- @Override
public void result(Collection<Service> metadata) {
if(metadata!=null) {
model.clear();
@@ -57,7 +55,6 @@

final JTextField field = new JTextField(ls.getAddress());
field.addCaretListener(new CaretListener() {
- @Override
public void caretUpdate(CaretEvent e) {
ls.setAddress(field.getText());

}
@@ -66,7 +63,6 @@

final JButton button = new JButton("Do lookup.");
button.addActionListener(new ActionListener() {
- @Override
public void actionPerformed(ActionEvent e) {
component.setBusy(true,"Looking up
services.");
support.lookup(ls, listener);



  • perfsonar: r3622 - branches/perfsonarui/src/org/perfsonar/perfsonarui/test/ls, svnlog, 04/07/2008

Archive powered by MHonArc 2.6.16.

Top of Page