27 |
import org.jsampler.CC; |
import org.jsampler.CC; |
28 |
import org.jsampler.HF; |
import org.jsampler.HF; |
29 |
|
|
|
import net.sf.juife.AbstractTask; |
|
|
|
|
30 |
import org.linuxsampler.lscp.ServerInfo; |
import org.linuxsampler.lscp.ServerInfo; |
31 |
|
|
32 |
import static org.jsampler.JSI18n.i18n; |
import static org.jsampler.JSI18n.i18n; |
36 |
* |
* |
37 |
* @author Grigor Iliev |
* @author Grigor Iliev |
38 |
*/ |
*/ |
39 |
public class GetServerInfo extends AbstractTask<ServerInfo> { |
public class GetServerInfo extends EnhancedTask<ServerInfo> { |
40 |
public |
public |
41 |
GetServerInfo() { |
GetServerInfo() { |
42 |
setTitle("GetServerInfo_task"); |
setTitle("GetServerInfo_task"); |
44 |
} |
} |
45 |
|
|
46 |
public void |
public void |
|
stop() { CC.cleanExit(); } |
|
|
|
|
|
public void |
|
47 |
run() { |
run() { |
48 |
try { setResult(CC.getClient().getServerInfo()); } |
try { setResult(CC.getClient().getServerInfo()); } |
49 |
catch(Exception x) { |
catch(Exception x) { |