All pastes #190681 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-10-04 07:33 UTC
rendered paste body
	public String startNewMobilet(Mobilet m) {
		updateMobiletLocation(m.getID(), getContextURL());

		MobiletThread mt = new MobiletThread(this, m);
		Thread t = new Thread(mt);
		t.start();
		synchronized (htMobilet) {
			synchronized (htThread) {
				htMobilet.put(m.getID(), m);
				htThread.put(m.getID(), t);
				// setMobiletClassLoader(m, null);
			}
		}

		return m.getID();

	}

smc.startNewMobilet("edu.nthucs.inetlab.sensor.agent.DataQuery");