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/UDPReader.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/UDPReader.java (file contents):
Revision 1.10 by ajm, Wed Dec 13 13:36:46 2000 UTC vs.
Revision 1.11 by ajm, Wed Dec 13 21:11:26 2000 UTC

# Line 24 | Line 24 | public class UDPReader extends Thread{
24       * The current CVS revision of this class
25       */
26      public final String REVISION = "$Revision$";
27 +
28 +    /**
29 +     * The maximum size of a packet
30 +     */
31 +    private final int packetSizeLimit = 8192;  
32      
33   //---STATIC METHODS---
34  
# Line 83 | Line 88 | public class UDPReader extends Thread{
88       * Overrides the {@link java.lang.Object#toString() Object.toString()}
89       * method to provide clean logging (every class should have this).
90       *
91 +     * This uses the uk.ac.ukc.iscream.util.NameFormat class
92 +     * to format the toString()
93 +     *
94       * @return the name of this class and its CVS revision
95       */
96      public String toString() {
97 <        return this.getClass().getName() + "(" + REVISION.substring(11, REVISION.length() - 2) + ")";
97 >        return FormatName.getName(
98 >            _name,
99 >            getClass().getName(),
100 >            REVISION);
101      }
102  
103   //---PRIVATE METHODS---
# Line 95 | Line 106 | public class UDPReader extends Thread{
106  
107   //---ATTRIBUTES---
108  
109 <    Logger _logger = ReferenceManager.getInstance().getLogger();
109 >    /**
110 >     * This is the friendly identifier of the
111 >     * component this class is running in.
112 >     * eg, a Filter may be called "filter1",
113 >     * If this class does not have an owning
114 >     * component,  a name from the configuration
115 >     * can be placed here.  This name could also
116 >     * be changed to null for utility classes.
117 >     */
118 >    private String _name = FilterMain.NAME;
119 >
120 >    /**
121 >     * This holds a reference to the
122 >     * system logger that is being used.
123 >     */
124 >    private Logger _logger = ReferenceManager.getInstance().getLogger();
125 >    
126 >    /**
127 >     * The port that this reader is using
128 >     */
129      int _port;
130 +    
131 +    /**
132 +     * The parent of this filter
133 +     */
134      Filter _parent;    
101
102    final int packetSizeLimit = 8192;
135  
136   //---STATIC ATTRIBUTES---
137  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines