~elambert/gearmanij/gearman_java_library

« back to all changes in this revision

Viewing changes to test/org/gearman/common/ThrowingConnection.java

  • Committer: Eric Lambert
  • Date: 2009-07-10 03:56:00 UTC
  • Revision ID: eric.d.lambert@gmail.com-20090710035600-fy5ghxevm51b5lvm
started refactoring unused classes and tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2009 by Eric Herman <eric@freesa.org>
3
 
 * Use and distribution licensed under the 
4
 
 * GNU Lesser General Public License (LGPL) version 2.1.
5
 
 * See the COPYING file in the parent directory for full text.
6
 
 */
7
 
package org.gearman.common;
8
 
 
9
 
import java.util.Arrays;
10
 
import java.util.List;
11
 
 
12
 
import org.gearman.util.NotImplementedException;
13
 
 
14
 
public class ThrowingConnection implements PacketConnection, TextConnection {
15
 
 
16
 
    public void open() {
17
 
        throw new NotImplementedException();
18
 
    }
19
 
 
20
 
    public void close() {
21
 
        throw new NotImplementedException();
22
 
    }
23
 
 
24
 
    public GearmanPacket read() {
25
 
        throw new NotImplementedException();
26
 
    }
27
 
 
28
 
    public void write(GearmanPacket request) {
29
 
        throw new NotImplementedException("" + request);
30
 
    }
31
 
 
32
 
    public List<String> getTextModeListResult(String command) {
33
 
        throw new NotImplementedException(command);
34
 
    }
35
 
 
36
 
    public String getTextModeResult(String command, Object[] params) {
37
 
        String msg = command;
38
 
        if (params != null) {
39
 
            msg = command + " " + Arrays.asList(params);
40
 
        }
41
 
        throw new NotImplementedException(msg);
42
 
    }
43
 
 
44
 
}