ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/TCPReader.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/TCPReader.java (file contents):
Revision 1.4 by ajm, Thu Nov 30 02:38:09 2000 UTC vs.
Revision 1.5 by ajm, Wed Dec 13 13:36:46 2000 UTC

# Line 10 | Line 10 | import java.io.OutputStream;
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   /**
# Line 113 | Line 111 | class TCPReader extends Thread {
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---
# Line 126 | Line 130 | class TCPReader extends Thread {
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.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines