1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
22 |
|
|
23 |
package org.jsampler.task; |
package org.jsampler.task; |
24 |
|
|
|
import java.util.logging.Level; |
|
|
|
|
25 |
import org.jsampler.CC; |
import org.jsampler.CC; |
|
import org.jsampler.HF; |
|
26 |
|
|
27 |
|
|
28 |
/** |
/** |
44 |
*/ |
*/ |
45 |
public |
public |
46 |
SetServerAddress(String address, int port) { |
SetServerAddress(String address, int port) { |
47 |
|
setSilent(true); |
48 |
setTitle(""); |
setTitle(""); |
49 |
setDescription(""); |
setDescription(""); |
50 |
this.address = address; |
this.address = address; |
52 |
} |
} |
53 |
|
|
54 |
/** The entry point of the task. */ |
/** The entry point of the task. */ |
55 |
|
@Override |
56 |
public void |
public void |
57 |
run() { |
exec() throws Exception { |
58 |
try { |
CC.getClient().setServerAddress(address); |
59 |
CC.getClient().setServerAddress(address); |
CC.getClient().setServerPort(port); |
|
CC.getClient().setServerPort(port); |
|
|
} catch(Exception x) { |
|
|
CC.getLogger().log(Level.FINE, HF.getErrorMessage(x), x); |
|
|
} |
|
60 |
} |
} |
61 |
} |
} |