summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/entity/proxy/MemberControl.java
blob: 5f483ae9f3c6e070b5544cdfb009ffaf28ca80fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.c2kernel.entity.proxy;

import com.c2kernel.entity.C2KLocalObject;


/**
 * @version $Revision: 1.2 $ $Date: 2004/02/04 11:02:44 $
 * @author  $Author: abranson $
 */

public class MemberControl implements C2KLocalObject {

    public static final int ERROR = -1;
    public static final int END = -2;
    public static MemberControl theEND = new MemberControl(END, null);
    private int id;
    private String name;

    public MemberControl(int code, String msg) {
        this.setID(code);
        switch (code) {
        case MemberControl.ERROR:
            this.setName("ERROR: The path "+msg+" was not found.");
            break;
        case MemberControl.END:
            this.setName("END: End of preload");
            break;
        default:
            this.setName("Unsupported control message code: "+code);
        }
    }

    public String toString() {
        return "MemberControl: "+this.getName();
    }

    public int getID() { return id; }
    public void setID(int id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
	public String getClusterType() { return null; }
	
}