My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package org.nees.rbnb;

/**
* Orb2RbnbTTask.java
*
* @author Lawrence Miller, NEESit SDSC
* @since 8/1/05.
*/

import java.util.TimerTask;
import com.brtt.antelope.OrbPacket;
import org.nees.rbnb.Orb2Rbnb;

public class Orb2RbnbTTask extends TimerTask {

private Orb2Rbnb myCaller;
/** A constructor that gathers a reference to the @see Orb2Rbnb instance that
spawned this thread in order to communicate gathered information. */
public Orb2RbnbTTask(Orb2Rbnb maker) {
super();
this.myCaller = maker;
}

public void run() {
OrbPacket orbPacket = null;

try {
if(this.myCaller.getOrb () != null) {
orbPacket = this.myCaller.getOrb().reap(true);
//this.myCaller.checkOrb();
}
} catch(Exception e) {
System.out.println("$$$ " + Orb2Rbnb.formatDate(System.currentTimeMillis() / 1000.0) + " Problem reaping an orb packet.\n" + e);
e.printStackTrace();
}

try {
if (orbPacket != null || this.myCaller.hasFakeOrb()) {
this.myCaller.putOrbData2RBNB(orbPacket);
} else if (!this.myCaller.hasFakeOrb() && this.myCaller.isDebugging) {
//System.out.println("$$$ NULL orb packet. $$$\n");
}
} catch (Exception e) {
System.out.println("$$$ " + Orb2Rbnb.formatDate(System.currentTimeMillis() / 1000.0) + " Problem putting orb to rbnb.\n" + e);
e.printStackTrace();
}
} // run ()
} // class

Change log

r36 by ljmiller.ucsd on Apr 15, 2008   Diff
keywords
start osdt refactor - still won't build
Go to: 
Project members, sign in to write a code review

Older revisions

r1 by phubbard on Mar 10, 2008   Diff
Initial import of reorganized and
cleaned up codebase.

All revisions of this file

File info

Size: 1454 bytes, 48 lines

File properties

svn:keywords
LastChangedRevision LastChangedDate H...gedBy Id
Powered by Google Project Hosting