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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilterServant.java (file contents):
Revision 1.10 by ajm, Mon Dec 4 18:12:13 2000 UTC vs.
Revision 1.11 by ajm, Tue Dec 12 19:54:55 2000 UTC

# Line 8 | Line 8 | import uk.ac.ukc.iscream.clientinterface.*;
8   import uk.ac.ukc.iscream.util.*;
9  
10   /**
11 < * A test RootFilterServant, just prints it out.
11 > * A root filter servant has an array
12 > * of client interfaces where data should be
13 > * piped.
14   *
15   * @author  $Author$
16   * @version $Id$
# Line 33 | Line 35 | class RootFilterServant extends FilterPOA {
35       */
36      public RootFilterServant(ClientInterface[] clientInterfaces) {
37          _clientInterfaces = clientInterfaces;
38 <        _logger.write(this.toString(), Logger.SYSINIT, "created");
38 >        _logger.write(toString(), Logger.SYSINIT, "created");
39      }
40  
41   //---PUBLIC METHODS---
# Line 50 | Line 52 | class RootFilterServant extends FilterPOA {
52          }
53      }
54      
53    public String getUDPPort() {
54        return null;
55    }
56    
57    public String getTCPPort() {
58        return null;
59    }
60    
61    public String getHostName() {
62        return null;
63    }
64    
55      /**
56       * Overrides the {@link java.lang.Object#toString() Object.toString()}
57       * method to provide clean logging (every class should have this).
58       *
59 +     * This uses the uk.ac.ukc.iscream.util.NameFormat class
60 +     * to format the toString()
61 +     *
62       * @return the name of this class and its CVS revision
63       */
64      public String toString() {
65 <        return this.getClass().getName() + "{" + _name + "}(" + REVISION.substring(11, REVISION.length() - 2) + ")";
65 >        return FormatName.getName(
66 >            _name,
67 >            getClass().getName(),
68 >            REVISION);
69      }
70  
71   //---PRIVATE METHODS---
72  
73   //---ACCESSOR/MUTATOR METHODS---
74  
75 +    public String getUDPPort() {
76 +        return null;
77 +    }
78 +    
79 +    public String getTCPPort() {
80 +        return null;
81 +    }
82 +    
83 +    public String getHostName() {
84 +        return null;
85 +    }
86 +
87   //---ATTRIBUTES---
88  
89      /**
90 <     * Reference to a Logger
90 >     * This is the friendly identifier of the
91 >     * component this class is running in.
92 >     * eg, a Filter may be called "filter1",
93 >     * If this class does not have an owning
94 >     * component,  a name from the configuration
95 >     * can be placed here.  This name could also
96 >     * be changed to null for utility classes.
97       */
98 <    private Logger _logger = ReferenceManager.getInstance().getLogger();
99 <    
98 >    private String _name = RootFilter.NAME;
99 >
100      /**
101 <     * Our name
101 >     * This holds a reference to the
102 >     * system logger that is being used.
103       */
104 <    private String _name = ReferenceManager.getInstance().getName();
104 >    private Logger _logger = ReferenceManager.getInstance().getLogger();
105      
106 +    /**
107 +     * An array of client interface that incoming
108 +     * data should be passed to
109 +     */  
110      private ClientInterface[] _clientInterfaces;
111      
112   //---STATIC ATTRIBUTES---

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines