NormalDataCollector.java revision 608:7e06bf1dcb09
1226031Sstas/*
2226031Sstas * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
3226031Sstas * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4226031Sstas *
5226031Sstas * This code is free software; you can redistribute it and/or modify it
6226031Sstas * under the terms of the GNU General Public License version 2 only, as
7226031Sstas * published by the Free Software Foundation.  Oracle designates this
8226031Sstas * particular file as subject to the "Classpath" exception as provided
9226031Sstas * by Oracle in the LICENSE file that accompanied this code.
10226031Sstas *
11226031Sstas * This code is distributed in the hope that it will be useful, but WITHOUT
12226031Sstas * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13226031Sstas * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14226031Sstas * version 2 for more details (a copy is included in the LICENSE file that
15226031Sstas * accompanied this code).
16226031Sstas *
17226031Sstas * You should have received a copy of the GNU General Public License version
18226031Sstas * 2 along with this work; if not, write to the Free Software Foundation,
19226031Sstas * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20226031Sstas *
21226031Sstas * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22226031Sstas * or visit www.oracle.com if you need additional information or have any
23226031Sstas * questions.
24226031Sstas */
25226031Sstas
26226031Sstaspackage com.sun.corba.se.impl.orb ;
27226031Sstas
28226031Sstasimport java.net.InetAddress ;
29226031Sstas
30226031Sstasimport java.util.Properties ;
31226031Sstas
32226031Sstasimport org.omg.CORBA.INTERNAL ;
33226031Sstasimport org.omg.CORBA.CompletionStatus ;
34226031Sstas
35226031Sstaspublic class NormalDataCollector extends DataCollectorBase {
36226031Sstas    private String[] args ;
37226031Sstas
38226031Sstas    public NormalDataCollector( String[] args, Properties props,
39226031Sstas        String localHostName, String configurationHostName )
40226031Sstas    {
41226031Sstas        super( props, localHostName, configurationHostName ) ;
42226031Sstas        this.args = args ;
43226031Sstas    }
44226031Sstas
45226031Sstas    public boolean isApplet()
46226031Sstas    {
47226031Sstas        return false ;
48226031Sstas    }
49226031Sstas
50226031Sstas    protected void collect()
51226031Sstas    {
52226031Sstas        checkPropertyDefaults() ;
53226031Sstas
54226031Sstas        findPropertiesFromFile() ;
55226031Sstas        findPropertiesFromSystem() ;
56226031Sstas        findPropertiesFromProperties() ;
57226031Sstas        findPropertiesFromArgs( args ) ;
58226031Sstas    }
59226031Sstas}
60226031Sstas