1 23 24 27 28 package com.sun.enterprise.admin.target; 29 30 public final class TargetType 31 { 32 35 public static final TargetType CONFIG = new TargetType(1, "configuration"); 36 40 public static final TargetType SERVER = new TargetType(2, "server instance"); 41 44 public static final TargetType DOMAIN = new TargetType(3, "domain"); 45 48 public static final TargetType CLUSTER = new TargetType(4, "cluster"); 49 52 public static final TargetType NODE_AGENT = new TargetType(5, "node agent"); 53 54 57 public static final TargetType STANDALONE_SERVER = new TargetType(6, "standalone server instance"); 58 59 62 public static final TargetType UNCLUSTERED_SERVER = new TargetType(7, "unclustered server instance"); 63 64 67 public static final TargetType STANDALONE_CLUSTER = new TargetType(8, "standalone cluster"); 68 69 72 public static final TargetType DAS = new TargetType(9, "domain administration server"); 73 74 private int _type; 75 private String _name; 78 79 private TargetType(int type, String name) 80 { 81 _type = type; 82 _name = name; 83 } 84 85 public String getName() { 86 return _name; 87 } 88 89 int getType() { 90 return _type; 91 } 92 93 public boolean equals(Object obj) 94 { 95 if (obj instanceof TargetType) { 96 return ((TargetType)obj).getType() == this.getType() ? true : false; 97 } 98 return false; 99 } 100 } 101 | Popular Tags |