KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmfClientComponents > ManagedObjectClientComposition > ManagedObjectClientHomeImpl


1 /*====================================================================
2
3 This file was produced by the OpenCCM CIF_JIMPL generator.
4
5 OpenCCM: The Open CORBA Component Model Platform
6 Copyright (C) 2000-2003 INRIA - USTL - LIFL - GOAL
7 Contact: openccm@objectweb.org
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 USA
23
24 Initial developer(s): Christophe Demarey.
25 Contributor(s): ______________________________________.
26
27 ====================================================================*/

28
29 package ist.coach.coachEmfClientComponents.ManagedObjectClientComposition;
30
31 import ist.coach.coachEmfCommon.ManagedObjectValueTypeFactory;
32 import ist.coach.coachEmfCommon.ManagedElementValueTypeFactory;
33 import ist.coach.coachEmfCommon.ApplicationErrorInfoTypeFactory;
34 import ist.coach.coachEmfCommon.CreateErrorInfoTypeFactory;
35 import ist.coach.coachEmfCommon.DeleteErrorInfoTypeFactory;
36 import ist.coach.coachEmfCommon.LogNewRecordFactory;
37 import ist.coach.coachEmsCommon.*;
38
39 import ist.coach.coachEmfCommon.ObjectCreationFactory;
40 import ist.coach.coachEmfCommon.ObjectDeletionFactory;
41 import ist.coach.coachEmfCommon.OperationalViolationFactory;
42 import ist.coach.coachEmfCommon.StateChangedEventFactory;
43 import ist.coach.coachEmfCommon.ChannelChangeEventFactory;
44 import ist.coach.coachEmfCommon.HeartbeatFactory;
45 /**
46  * This is the CIDL-based implementation of
47  * OMG IDL3 IDL:coach.ist/coachEmfClientComponents/ManagedObjectClientHome:1.0 home type.
48  *
49  * This class inherits from the generated home executor skeleton class
50  * defined by OMG CIDL ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.ManagedObjectClientHome_impl
51  *
52  * @author OpenCCM CIF_Jimpl Compiler.
53  */

54 public class ManagedObjectClientHomeImpl
55      extends ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.ManagedObjectClientHome_impl
56 {
57     // ==================================================================
58
//
59
// Internal states.
60
//
61
// ==================================================================
62

63     // ==================================================================
64
//
65
// Constructors.
66
//
67
// ==================================================================
68

69     public ManagedObjectClientHomeImpl()
70     {
71     }
72
73     // ==================================================================
74
//
75
// Methods.
76
//
77
// ==================================================================
78

79     /**
80      * Method for the org.objectweb.ccm.runtime.cif.api.SegmentHome interface.
81      *
82      * Create an executor segment from its identifier.
83      *
84      * @param segid - The executor segment identifier.
85      *
86      * @return - The executor segment created.
87      */

88     public org.omg.Components.ExecutorSegmentBase
89     create_executor_segment(int segid)
90     {
91         switch (segid)
92         {
93             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.objectCreationSegImpl._segment_id_value :
94                 return new objectCreationSegImpl();
95             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.objectDeletionSegImpl._segment_id_value :
96                 return new objectDeletionSegImpl();
97             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.operationalViolationSegImpl._segment_id_value :
98                 return new operationalViolationSegImpl();
99             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.stateChangeSegImpl._segment_id_value :
100                 return new stateChangeSegImpl();
101             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.heartbeatSegImpl._segment_id_value :
102                 return new heartbeatSegImpl();
103             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.logAttributeValueChangeSegImpl._segment_id_value :
104                 return new logAttributeValueChangeSegImpl();
105             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.logThresholdSegImpl._segment_id_value :
106                 return new logThresholdSegImpl();
107             case ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.logNewRecordSegImpl._segment_id_value :
108                 return new logNewRecordSegImpl();
109             default :
110                 return new ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.ManagedObjectClientImpl();
111         }
112     }
113
114     /**
115      * This method is called by the OpenCCM Component Server
116      * to create a home instance.
117      *
118      * @return - The created home.
119      */

120     public static org.omg.Components.HomeExecutorBase
121     create_home()
122     {
123             return new ist.coach.coachEmfClientComponents.ManagedObjectClientComposition.ManagedObjectClientHomeImpl();
124     }
125
126     static
127     {
128
129         // Required to register the ManagedObjectValueTypeFactory to the ORB.
130
ManagedObjectValueTypeFactory.register();
131         ManagedElementValueTypeFactory.register();
132         IpNodeValueTypeFactory.register();
133         LogicalInterfaceValueTypeFactory.register();
134         IpProtocolMonitorValueTypeFactory.register();
135         SnmpProtocolMonitorValueTypeFactory.register();
136         IpAddressDataValueTypeFactory.register();
137         IpRoutingEntryValueTypeFactory.register();
138         IpToMACAddressValueTypeFactory.register();
139
140        ApplicationErrorInfoTypeFactory.register();
141        CreateErrorInfoTypeFactory.register();
142        DeleteErrorInfoTypeFactory.register();
143
144        ObjectCreationFactory.register();
145        ObjectDeletionFactory.register();
146        OperationalViolationFactory.register();
147        StateChangedEventFactory.register();
148        ChannelChangeEventFactory.register();
149        HeartbeatFactory.register();
150        LogNewRecordFactory.register();
151
152     }
153
154 }
155
Popular Tags