try {
Instance.getTraceHandler().trace("Getting remote lib status...");
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
try {
final Image[] result = new Image[1];
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
Object rep = sendCmd(this,
final Image[] result = new Image[1];
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
- Object rep = sendCmd(this,
- new Object[] { "GET_CUSTOM_COVER", type, source });
+ Object rep = sendCmd(this, new Object[] {
+ "GET_CUSTOM_COVER", type, source });
result[0] = (Image) rep;
}
final Story[] result = new Story[1];
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
Progress pg = pgF;
}
List<Object> list = new ArrayList<Object>();
- for (Object obj = send(null); obj != null; obj = send(
- null)) {
+ for (Object obj = send(null); obj != null; obj = send(null)) {
list.add(obj);
pg.add(1);
}
final Progress pgF = pgSave;
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
Progress pg = pgF;
@Override
public synchronized void delete(final String luid) throws IOException {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
sendCmd(this, new Object[] { "DELETE_STORY", luid });
private void setCover(final String value, final String luid,
final String type) {
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
sendCmd(this,
final String[] luid = new String[1];
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
Progress pg = pgF;
final Progress pgF = pg == null ? new Progress() : pg;
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
Progress pg = pgF;
*/
public void exit() {
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
sendCmd(this, new Object[] { "EXIT" });
final List<MetaData> metas = new ArrayList<MetaData>();
try {
- new ConnectActionClientObject(host, port, false) {
+ new ConnectActionClientObject(host, port, key) {
@Override
public void action(Version serverVersion) throws Exception {
Progress pg = pgF;
pg = new Progress();
}
-
- Object rep = sendCmd(this,
- new Object[] { "GET_METADATA", luid });
+ Object rep = sendCmd(this, new Object[] { "GET_METADATA",
+ luid });
while (true) {
if (!RemoteLibraryServer.updateProgress(pg, rep)) {
Object rep = action.send(params);
String hash = hashKey(key, "" + rep);
- rep = action.send(hash);
- if (rep == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
return action.send(hash);
}