blob: 79d0b4e384ce04e1cd31373e8c3ea1721d0bfe59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************
package Ice;
public abstract class Object
{
public
Object()
{
}
public final int
ice_hash()
{
// TODO: replace with hashCode? Call hashCode?
return 0;
}
public boolean
ice_isA(String s)
{
return s.equals("::Ice::Object");
}
public void
ice_ping()
{
// Nothing to do
}
public final IceInternal.DispatchStatus
___ice_isA(IceInternal.Incoming __in)
{
Stream __is = __in.is();
Stream __os = __in.os();
String s = __is.readString();
boolean __ret = ice_isA(s);
__os.writeBoolean(__ret);
return IceInternal.DispatchStatus.DispatchOK;
}
public final IceInternal.DispatchStatus
___ice_ping(IceInternal.Incoming __in)
{
ice_ping();
return IceInternal.DispatchStatus.DispatchOK;
}
public abstract String[]
__getClassIds();
public static String[] __all =
{
"ice_isA",
"ice_ping"
};
public IceInternal.DispatchStatus
__dispatch(IceInternal.Incoming in, String s)
{
int pos = java.util.Arrays.binarySearch(__all, s);
if (pos < 0)
{
return IceInternal.DispatchStatus.DispatchOperationNotExist;
}
switch (pos)
{
case 0:
{
return ___ice_isA(in);
}
case 1:
{
return ___ice_ping(in);
}
}
assert(false);
return IceInternal.DispatchStatus.DispatchOperationNotExist;
}
public boolean
__isMutating(String s)
{
//
// None of the Ice::Object operations accessible via __dispatch()
// is mutating.
//
return false;
}
public void
__write(Stream __os)
{
synchronized(_activeFacetMapMutex)
{
final int sz = _activeFacetMap.size();
__os.writeInt(sz);
java.util.Set set = _activeFacetMap.keySet();
String[] keys = new String[sz];
set.toArray(keys);
for (int i = 0; i < sz; i++)
{
__os.writeString(keys[i]);
__os.writeObject((Object)_activeFacetMap.get(keys[i]));
}
}
}
public void
__read(Stream __is)
{
synchronized(_activeFacetMapMutex)
{
int sz = __is.readInt();
_activeFacetMap.clear();
while (sz-- > 0)
{
String key = __is.readString();
Object value = __is.readObject("");
_activeFacetMap.put(key, value);
}
}
}
public final void
ice_addFacet(Object facet, String name)
{
synchronized(_activeFacetMapMutex)
{
_activeFacetMap.put(name, facet);
}
}
public final void
ice_removeFacet(String name)
{
synchronized(_activeFacetMapMutex)
{
_activeFacetMap.remove(name);
}
}
public final void
ice_removeAllFacets()
{
synchronized(_activeFacetMapMutex)
{
_activeFacetMap.clear();
}
}
public final Object
ice_findFacet(String name)
{
synchronized(_activeFacetMapMutex)
{
return (Object)_activeFacetMap.get(name);
}
}
private java.util.HashMap _activeFacetMap = new java.util.HashMap();
private java.lang.Object _activeFacetMapMutex = new java.lang.Object();
}
|