10 |
|
import java.io.IOException; |
11 |
|
import java.net.InetAddress; |
12 |
|
import java.net.UnknownHostException; |
13 |
– |
import org.omg.CORBA.*; |
14 |
– |
import org.omg.CosNaming.*; |
13 |
|
import uk.ac.ukc.iscream.util.*; |
14 |
|
|
15 |
|
/** |
111 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
112 |
|
* method to provide clean logging (every class should have this). |
113 |
|
* |
114 |
+ |
* This uses the uk.ac.ukc.iscream.util.NameFormat class |
115 |
+ |
* to format the toString() |
116 |
+ |
* |
117 |
|
* @return the name of this class and its CVS revision |
118 |
|
*/ |
119 |
|
public String toString() { |
120 |
< |
return this.getClass().getName() + "(" + REVISION.substring(11, REVISION.length() - 2) + ")"; |
120 |
> |
return FormatName.getName( |
121 |
> |
_name, |
122 |
> |
getClass().getName(), |
123 |
> |
REVISION); |
124 |
|
} |
125 |
|
|
126 |
|
//---PRIVATE METHODS--- |
130 |
|
//---ATTRIBUTES--- |
131 |
|
|
132 |
|
/** |
133 |
< |
* A reference to the logger the system is using |
133 |
> |
* This is the friendly identifier of the |
134 |
> |
* component this class is running in. |
135 |
> |
* eg, a Filter may be called "filter1", |
136 |
> |
* If this class does not have an owning |
137 |
> |
* component, a name from the configuration |
138 |
> |
* can be placed here. This name could also |
139 |
> |
* be changed to null for utility classes. |
140 |
|
*/ |
141 |
< |
Logger _logger = ReferenceManager.getInstance().getLogger(); |
141 |
> |
private String _name = FilterMain.NAME; |
142 |
> |
|
143 |
> |
/** |
144 |
> |
* This holds a reference to the |
145 |
> |
* system logger that is being used. |
146 |
> |
*/ |
147 |
> |
private Logger _logger = ReferenceManager.getInstance().getLogger(); |
148 |
|
|
149 |
|
/** |
150 |
|
* The port on which the server should listen. |