001: /*
002: * Generated by Cougaar QoS FrameGen
003: * from c:\marla\mmon\cougaar\HEAD\qos\src\org\cougaar\core\qos\frame\topology\cougaar-topology-protos.xml
004: * at Mar 14, 2007 4:18:10 PM
005: *
006: * Copyright BBN Technologies 2006
007: *
008: */
009: package org.cougaar.core.qos.frame.topology;
010:
011: import org.cougaar.core.qos.frame.DataFrame;
012: import org.cougaar.core.qos.frame.FrameSet;
013: import org.cougaar.core.qos.frame.SlotDescription;
014: import org.cougaar.core.qos.metrics.Metric;
015: import org.cougaar.core.util.UID;
016:
017: public class Agent extends Thing {
018: static {
019: org.cougaar.core.qos.frame.FrameMaker __fm = new org.cougaar.core.qos.frame.FrameMaker() {
020: public DataFrame makeFrame(FrameSet frameSet, UID uid) {
021: return new Agent(frameSet, uid);
022: }
023: };
024: DataFrame.registerFrameMaker(
025: "org.cougaar.core.qos.frame.topology", "agent", __fm);
026: }
027: private transient Metric bytesIn;
028: private transient Metric cpuLoadAverage;
029: private transient Metric persistSizeLast;
030: private transient Metric msgIn;
031: private String status;
032: private transient Metric heardFrom;
033: private transient Metric cpuLoadMJips;
034: private transient Metric bytesOut;
035: private transient Metric msgOut;
036:
037: public Agent(UID uid) {
038: this (null, uid);
039: }
040:
041: public Agent(FrameSet frameSet, UID uid) {
042: super (frameSet, uid);
043: initializeStatus("unknown");
044: }
045:
046: public String getKind() {
047: return "agent";
048: }
049:
050: protected void collectSlotValues(java.util.Properties __props) {
051: super .collectSlotValues(__props);
052: Object __value;
053: __value = getBytesIn__AsObject();
054: __props.put("bytesIn", __value != null ? __value : NIL);
055: __value = getCpuLoadAverage__AsObject();
056: __props.put("cpuLoadAverage", __value != null ? __value : NIL);
057: __value = getPersistSizeLast__AsObject();
058: __props.put("persistSizeLast", __value != null ? __value : NIL);
059: __value = getMsgIn__AsObject();
060: __props.put("msgIn", __value != null ? __value : NIL);
061: __value = getStatus__AsObject();
062: __props.put("status", __value != null ? __value : NIL);
063: __value = getHeardFrom__AsObject();
064: __props.put("heardFrom", __value != null ? __value : NIL);
065: __value = getCpuLoadMJips__AsObject();
066: __props.put("cpuLoadMJips", __value != null ? __value : NIL);
067: __value = getBytesOut__AsObject();
068: __props.put("bytesOut", __value != null ? __value : NIL);
069: __value = getMsgOut__AsObject();
070: __props.put("msgOut", __value != null ? __value : NIL);
071: }
072:
073: protected void collectContainerSlotValues(
074: java.util.Properties __props) {
075: super .collectContainerSlotValues(__props);
076: Object __value;
077: __value = getLoadAverage__AsObject();
078: __props.put("loadAverage", __value != null ? __value : NIL);
079: __value = getJips__AsObject();
080: __props.put("jips", __value != null ? __value : NIL);
081: __value = getEffectiveMJips__AsObject();
082: __props.put("effectiveMJips", __value != null ? __value : NIL);
083: __value = getCount__AsObject();
084: __props.put("count", __value != null ? __value : NIL);
085: __value = getVmSize__AsObject();
086: __props.put("vmSize", __value != null ? __value : NIL);
087: }
088:
089: public Metric getBytesIn() {
090: return bytesIn;
091: }
092:
093: Metric getBytesIn__NoWarn() {
094: return bytesIn;
095: }
096:
097: Object getBytesIn__AsObject() {
098: return bytesIn;
099: }
100:
101: protected void initializeBytesIn(Metric new_value) {
102: this .bytesIn = new_value;
103: slotInitialized("bytesIn", new_value);
104: }
105:
106: void initializeBytesIn__AsObject(Object new_value) {
107: this .bytesIn = force_Metric(new_value);
108: slotInitialized("bytesIn", new_value);
109: }
110:
111: public Metric getCpuLoadAverage() {
112: return cpuLoadAverage;
113: }
114:
115: Metric getCpuLoadAverage__NoWarn() {
116: return cpuLoadAverage;
117: }
118:
119: Object getCpuLoadAverage__AsObject() {
120: return cpuLoadAverage;
121: }
122:
123: protected void initializeCpuLoadAverage(Metric new_value) {
124: this .cpuLoadAverage = new_value;
125: slotInitialized("cpuLoadAverage", new_value);
126: }
127:
128: void initializeCpuLoadAverage__AsObject(Object new_value) {
129: this .cpuLoadAverage = force_Metric(new_value);
130: slotInitialized("cpuLoadAverage", new_value);
131: }
132:
133: public Metric getPersistSizeLast() {
134: return persistSizeLast;
135: }
136:
137: Metric getPersistSizeLast__NoWarn() {
138: return persistSizeLast;
139: }
140:
141: Object getPersistSizeLast__AsObject() {
142: return persistSizeLast;
143: }
144:
145: protected void initializePersistSizeLast(Metric new_value) {
146: this .persistSizeLast = new_value;
147: slotInitialized("persistSizeLast", new_value);
148: }
149:
150: void initializePersistSizeLast__AsObject(Object new_value) {
151: this .persistSizeLast = force_Metric(new_value);
152: slotInitialized("persistSizeLast", new_value);
153: }
154:
155: public Metric getMsgIn() {
156: return msgIn;
157: }
158:
159: Metric getMsgIn__NoWarn() {
160: return msgIn;
161: }
162:
163: Object getMsgIn__AsObject() {
164: return msgIn;
165: }
166:
167: protected void initializeMsgIn(Metric new_value) {
168: this .msgIn = new_value;
169: slotInitialized("msgIn", new_value);
170: }
171:
172: void initializeMsgIn__AsObject(Object new_value) {
173: this .msgIn = force_Metric(new_value);
174: slotInitialized("msgIn", new_value);
175: }
176:
177: public String getStatus() {
178: return status;
179: }
180:
181: String getStatus__NoWarn() {
182: return status;
183: }
184:
185: Object getStatus__AsObject() {
186: return status;
187: }
188:
189: public void setStatus(String __new_value) {
190: String __old_value = status;
191: this .status = __new_value;
192: slotModified("status", __old_value, __new_value, true, true);
193: }
194:
195: public void setStatus__AsObject(Object __new_value) {
196: Object __old_value = getStatus__AsObject();
197: this .status = force_String(__new_value);
198: slotModified("status", __old_value, __new_value, true, true);
199: }
200:
201: protected void initializeStatus(String new_value) {
202: this .status = new_value;
203: slotInitialized("status", new_value);
204: }
205:
206: void initializeStatus__AsObject(Object new_value) {
207: this .status = force_String(new_value);
208: slotInitialized("status", new_value);
209: }
210:
211: public Metric getHeardFrom() {
212: return heardFrom;
213: }
214:
215: Metric getHeardFrom__NoWarn() {
216: return heardFrom;
217: }
218:
219: Object getHeardFrom__AsObject() {
220: return heardFrom;
221: }
222:
223: protected void initializeHeardFrom(Metric new_value) {
224: this .heardFrom = new_value;
225: slotInitialized("heardFrom", new_value);
226: }
227:
228: void initializeHeardFrom__AsObject(Object new_value) {
229: this .heardFrom = force_Metric(new_value);
230: slotInitialized("heardFrom", new_value);
231: }
232:
233: public Metric getCpuLoadMJips() {
234: return cpuLoadMJips;
235: }
236:
237: Metric getCpuLoadMJips__NoWarn() {
238: return cpuLoadMJips;
239: }
240:
241: Object getCpuLoadMJips__AsObject() {
242: return cpuLoadMJips;
243: }
244:
245: protected void initializeCpuLoadMJips(Metric new_value) {
246: this .cpuLoadMJips = new_value;
247: slotInitialized("cpuLoadMJips", new_value);
248: }
249:
250: void initializeCpuLoadMJips__AsObject(Object new_value) {
251: this .cpuLoadMJips = force_Metric(new_value);
252: slotInitialized("cpuLoadMJips", new_value);
253: }
254:
255: public Metric getBytesOut() {
256: return bytesOut;
257: }
258:
259: Metric getBytesOut__NoWarn() {
260: return bytesOut;
261: }
262:
263: Object getBytesOut__AsObject() {
264: return bytesOut;
265: }
266:
267: protected void initializeBytesOut(Metric new_value) {
268: this .bytesOut = new_value;
269: slotInitialized("bytesOut", new_value);
270: }
271:
272: void initializeBytesOut__AsObject(Object new_value) {
273: this .bytesOut = force_Metric(new_value);
274: slotInitialized("bytesOut", new_value);
275: }
276:
277: public Metric getMsgOut() {
278: return msgOut;
279: }
280:
281: Metric getMsgOut__NoWarn() {
282: return msgOut;
283: }
284:
285: Object getMsgOut__AsObject() {
286: return msgOut;
287: }
288:
289: protected void initializeMsgOut(Metric new_value) {
290: this .msgOut = new_value;
291: slotInitialized("msgOut", new_value);
292: }
293:
294: void initializeMsgOut__AsObject(Object new_value) {
295: this .msgOut = force_Metric(new_value);
296: slotInitialized("msgOut", new_value);
297: }
298:
299: public Metric getLoadAverage() {
300: Object __raw_container = containerFrame();
301: if (__raw_container == null)
302: return null;
303: if (!(__raw_container instanceof Node))
304: throw new RuntimeException("Bogus container!");
305: Node __container = (Node) __raw_container;
306: return __container.getLoadAverage();
307: }
308:
309: Object getLoadAverage__AsObject() {
310: Object __raw_container = containerFrame();
311: if (__raw_container == null)
312: return null;
313: if (!(__raw_container instanceof Node)) {
314: getLogger().warn(
315: "Container of " + this + " is not a Node: "
316: + __raw_container);
317: return null;
318: }
319: Node __container = (Node) __raw_container;
320: return __container.getLoadAverage__AsObject();
321: }
322:
323: public Metric getJips() {
324: Object __raw_container = containerFrame();
325: if (__raw_container == null)
326: return null;
327: if (!(__raw_container instanceof Node))
328: throw new RuntimeException("Bogus container!");
329: Node __container = (Node) __raw_container;
330: return __container.getJips();
331: }
332:
333: Object getJips__AsObject() {
334: Object __raw_container = containerFrame();
335: if (__raw_container == null)
336: return null;
337: if (!(__raw_container instanceof Node)) {
338: getLogger().warn(
339: "Container of " + this + " is not a Node: "
340: + __raw_container);
341: return null;
342: }
343: Node __container = (Node) __raw_container;
344: return __container.getJips__AsObject();
345: }
346:
347: public Metric getEffectiveMJips() {
348: Object __raw_container = containerFrame();
349: if (__raw_container == null)
350: return null;
351: if (!(__raw_container instanceof Node))
352: throw new RuntimeException("Bogus container!");
353: Node __container = (Node) __raw_container;
354: return __container.getEffectiveMJips();
355: }
356:
357: Object getEffectiveMJips__AsObject() {
358: Object __raw_container = containerFrame();
359: if (__raw_container == null)
360: return null;
361: if (!(__raw_container instanceof Node)) {
362: getLogger().warn(
363: "Container of " + this + " is not a Node: "
364: + __raw_container);
365: return null;
366: }
367: Node __container = (Node) __raw_container;
368: return __container.getEffectiveMJips__AsObject();
369: }
370:
371: public Metric getCount() {
372: Object __raw_container = containerFrame();
373: if (__raw_container == null)
374: return null;
375: if (!(__raw_container instanceof Node))
376: throw new RuntimeException("Bogus container!");
377: Node __container = (Node) __raw_container;
378: return __container.getCount();
379: }
380:
381: Object getCount__AsObject() {
382: Object __raw_container = containerFrame();
383: if (__raw_container == null)
384: return null;
385: if (!(__raw_container instanceof Node)) {
386: getLogger().warn(
387: "Container of " + this + " is not a Node: "
388: + __raw_container);
389: return null;
390: }
391: Node __container = (Node) __raw_container;
392: return __container.getCount__AsObject();
393: }
394:
395: public Metric getVmSize() {
396: Object __raw_container = containerFrame();
397: if (__raw_container == null)
398: return null;
399: if (!(__raw_container instanceof Node))
400: throw new RuntimeException("Bogus container!");
401: Node __container = (Node) __raw_container;
402: return __container.getVmSize();
403: }
404:
405: Object getVmSize__AsObject() {
406: Object __raw_container = containerFrame();
407: if (__raw_container == null)
408: return null;
409: if (!(__raw_container instanceof Node)) {
410: getLogger().warn(
411: "Container of " + this + " is not a Node: "
412: + __raw_container);
413: return null;
414: }
415: Node __container = (Node) __raw_container;
416: return __container.getVmSize__AsObject();
417: }
418:
419: protected void fireContainerChanges(DataFrame __raw_old,
420: DataFrame __raw_new) {
421: if (!(__raw_old instanceof Node)) {
422: getLogger().warn(
423: "Container of " + this + " is not a Node: "
424: + __raw_old);
425: return;
426: }
427: if (!(__raw_new instanceof Node)) {
428: getLogger().warn(
429: "Container of " + this + " is not a Node: "
430: + __raw_new);
431: return;
432: }
433: Node __old_frame = (Node) __raw_old;
434: Node __new_frame = (Node) __raw_new;
435: Object __old;
436: Object __new;
437: __old = __old_frame.getLoadAverage__AsObject();
438: __new = __new_frame.getLoadAverage__AsObject();
439: if (__new != null) {
440: if (__old == null || !__old.equals(__new)) {
441: fireChange("loadAverage", __old, __new);
442: }
443: }
444: __old = __old_frame.getJips__AsObject();
445: __new = __new_frame.getJips__AsObject();
446: if (__new != null) {
447: if (__old == null || !__old.equals(__new)) {
448: fireChange("jips", __old, __new);
449: }
450: }
451: __old = __old_frame.getEffectiveMJips__AsObject();
452: __new = __new_frame.getEffectiveMJips__AsObject();
453: if (__new != null) {
454: if (__old == null || !__old.equals(__new)) {
455: fireChange("effectiveMJips", __old, __new);
456: }
457: }
458: __old = __old_frame.getCount__AsObject();
459: __new = __new_frame.getCount__AsObject();
460: if (__new != null) {
461: if (__old == null || !__old.equals(__new)) {
462: fireChange("count", __old, __new);
463: }
464: }
465: __old = __old_frame.getVmSize__AsObject();
466: __new = __new_frame.getVmSize__AsObject();
467: if (__new != null) {
468: if (__old == null || !__old.equals(__new)) {
469: fireChange("vmSize", __old, __new);
470: }
471: }
472: }
473:
474: protected void fireContainerChanges(DataFrame __raw) {
475: if (!(__raw instanceof Node)) {
476: getLogger()
477: .warn(
478: "Container of " + this + " is not a Node: "
479: + __raw);
480: return;
481: }
482: Node __new_frame = (Node) __raw;
483: Object __new;
484: __new = __new_frame.getLoadAverage__AsObject();
485: if (__new != null) {
486: fireChange("loadAverage", null, __new);
487: }
488: __new = __new_frame.getJips__AsObject();
489: if (__new != null) {
490: fireChange("jips", null, __new);
491: }
492: __new = __new_frame.getEffectiveMJips__AsObject();
493: if (__new != null) {
494: fireChange("effectiveMJips", null, __new);
495: }
496: __new = __new_frame.getCount__AsObject();
497: if (__new != null) {
498: fireChange("count", null, __new);
499: }
500: __new = __new_frame.getVmSize__AsObject();
501: if (__new != null) {
502: fireChange("vmSize", null, __new);
503: }
504: }
505:
506: protected Object getLocalValue(String __slot) {
507: String __key = __slot.intern();
508: if ("bytesIn" == __key)
509: return getBytesIn__AsObject();
510: else if ("jips" == __key)
511: return getJips__AsObject();
512: else if ("persistSizeLast" == __key)
513: return getPersistSizeLast__AsObject();
514: else if ("status" == __key)
515: return getStatus__AsObject();
516: else if ("heardFrom" == __key)
517: return getHeardFrom__AsObject();
518: else if ("cpuLoadMJips" == __key)
519: return getCpuLoadMJips__AsObject();
520: else if ("loadAverage" == __key)
521: return getLoadAverage__AsObject();
522: else if ("cpuLoadAverage" == __key)
523: return getCpuLoadAverage__AsObject();
524: else if ("msgIn" == __key)
525: return getMsgIn__AsObject();
526: else if ("effectiveMJips" == __key)
527: return getEffectiveMJips__AsObject();
528: else if ("bytesOut" == __key)
529: return getBytesOut__AsObject();
530: else if ("name" == __key)
531: return getName__AsObject();
532: else if ("count" == __key)
533: return getCount__AsObject();
534: else if ("vmSize" == __key)
535: return getVmSize__AsObject();
536: else if ("msgOut" == __key)
537: return getMsgOut__AsObject();
538: else
539: return super .getLocalValue(__slot);
540: }
541:
542: protected void setLocalValue(String __slot, Object __value) {
543: String __key = __slot.intern();
544: if ("status" == __key)
545: setStatus__AsObject(__value);
546: else
547: super .setLocalValue(__slot, __value);
548: }
549:
550: protected void initializeLocalValue(String __slot, Object __value) {
551: String __key = __slot.intern();
552: if ("bytesIn" == __key)
553: initializeBytesIn__AsObject(__value);
554: else if ("cpuLoadAverage" == __key)
555: initializeCpuLoadAverage__AsObject(__value);
556: else if ("persistSizeLast" == __key)
557: initializePersistSizeLast__AsObject(__value);
558: else if ("msgIn" == __key)
559: initializeMsgIn__AsObject(__value);
560: else if ("status" == __key)
561: initializeStatus__AsObject(__value);
562: else if ("heardFrom" == __key)
563: initializeHeardFrom__AsObject(__value);
564: else if ("cpuLoadMJips" == __key)
565: initializeCpuLoadMJips__AsObject(__value);
566: else if ("bytesOut" == __key)
567: initializeBytesOut__AsObject(__value);
568: else if ("msgOut" == __key)
569: initializeMsgOut__AsObject(__value);
570: else
571: super .initializeLocalValue(__slot, __value);
572: }
573:
574: protected void postInitialize() {
575: super .postInitialize();
576: java.util.Observer __observer;
577: __observer = new java.util.Observer() {
578: public void update(java.util.Observable __xxx, Object __new) {
579: Object __old = bytesIn;
580: bytesIn = (Metric) __new;
581: slotModified("bytesIn", __old, __new, true, true);
582: }
583: };
584: bytesIn = getFrameSet().getMetricValue(this ,
585: "Agent($(name)):BytesIn(10)");
586: getFrameSet().subscribeToMetric(this , __observer,
587: "Agent($(name)):BytesIn(10)");
588: __observer = new java.util.Observer() {
589: public void update(java.util.Observable __xxx, Object __new) {
590: Object __old = cpuLoadAverage;
591: cpuLoadAverage = (Metric) __new;
592: slotModified("cpuLoadAverage", __old, __new, true, true);
593: }
594: };
595: cpuLoadAverage = getFrameSet().getMetricValue(this ,
596: "Agent($(name)):CPULoadAvg(10)");
597: getFrameSet().subscribeToMetric(this , __observer,
598: "Agent($(name)):CPULoadAvg(10)");
599: __observer = new java.util.Observer() {
600: public void update(java.util.Observable __xxx, Object __new) {
601: Object __old = persistSizeLast;
602: persistSizeLast = (Metric) __new;
603: slotModified("persistSizeLast", __old, __new, true,
604: true);
605: }
606: };
607: persistSizeLast = getFrameSet().getMetricValue(this ,
608: "Agent($(name)):PersistSizeLast()");
609: getFrameSet().subscribeToMetric(this , __observer,
610: "Agent($(name)):PersistSizeLast()");
611: __observer = new java.util.Observer() {
612: public void update(java.util.Observable __xxx, Object __new) {
613: Object __old = msgIn;
614: msgIn = (Metric) __new;
615: slotModified("msgIn", __old, __new, true, true);
616: }
617: };
618: msgIn = getFrameSet().getMetricValue(this ,
619: "Agent($(name)):MsgIn(10)");
620: getFrameSet().subscribeToMetric(this , __observer,
621: "Agent($(name)):MsgIn(10)");
622: __observer = new java.util.Observer() {
623: public void update(java.util.Observable __xxx, Object __new) {
624: Object __old = heardFrom;
625: heardFrom = (Metric) __new;
626: slotModified("heardFrom", __old, __new, true, true);
627: }
628: };
629: heardFrom = getFrameSet().getMetricValue(this ,
630: "Agent($(name)):LastHeard()");
631: getFrameSet().subscribeToMetric(this , __observer,
632: "Agent($(name)):LastHeard()");
633: __observer = new java.util.Observer() {
634: public void update(java.util.Observable __xxx, Object __new) {
635: Object __old = cpuLoadMJips;
636: cpuLoadMJips = (Metric) __new;
637: slotModified("cpuLoadMJips", __old, __new, true, true);
638: }
639: };
640: cpuLoadMJips = getFrameSet().getMetricValue(this ,
641: "Agent($(name)):CPULoadMJips(10)");
642: getFrameSet().subscribeToMetric(this , __observer,
643: "Agent($(name)):CPULoadMJips(10)");
644: __observer = new java.util.Observer() {
645: public void update(java.util.Observable __xxx, Object __new) {
646: Object __old = bytesOut;
647: bytesOut = (Metric) __new;
648: slotModified("bytesOut", __old, __new, true, true);
649: }
650: };
651: bytesOut = getFrameSet().getMetricValue(this ,
652: "Agent($(name)):BytesOut(10)");
653: getFrameSet().subscribeToMetric(this , __observer,
654: "Agent($(name)):BytesOut(10)");
655: __observer = new java.util.Observer() {
656: public void update(java.util.Observable __xxx, Object __new) {
657: Object __old = msgOut;
658: msgOut = (Metric) __new;
659: slotModified("msgOut", __old, __new, true, true);
660: }
661: };
662: msgOut = getFrameSet().getMetricValue(this ,
663: "Agent($(name)):MsgOut(10)");
664: getFrameSet().subscribeToMetric(this , __observer,
665: "Agent($(name)):MsgOut(10)");
666: }
667:
668: protected void collectSlotNames(java.util.Set<String> slots) {
669: super .collectSlotNames(slots);
670: slots.add("bytesIn");
671: slots.add("cpuLoadAverage");
672: slots.add("persistSizeLast");
673: slots.add("msgIn");
674: slots.add("status");
675: slots.add("heardFrom");
676: slots.add("cpuLoadMJips");
677: slots.add("bytesOut");
678: slots.add("msgOut");
679: slots.add("loadAverage");
680: slots.add("jips");
681: slots.add("effectiveMJips");
682: slots.add("count");
683: slots.add("vmSize");
684: }
685:
686: public SlotDescription slotMetaData__BytesIn() {
687: SlotDescription __desc = new SlotDescription();
688: __desc.name = "bytesIn";
689: __desc.prototype = "agent";
690: __desc.is_writable = false;
691: Object __value;
692: __value = bytesIn;
693: if (__value != null) {
694: __desc.is_overridden = true;
695: __desc.value = __value;
696: } else {
697: __desc.is_overridden = false;
698: }
699: return __desc;
700: }
701:
702: public SlotDescription slotMetaData__CpuLoadAverage() {
703: SlotDescription __desc = new SlotDescription();
704: __desc.name = "cpuLoadAverage";
705: __desc.prototype = "agent";
706: __desc.is_writable = false;
707: Object __value;
708: __value = cpuLoadAverage;
709: if (__value != null) {
710: __desc.is_overridden = true;
711: __desc.value = __value;
712: } else {
713: __desc.is_overridden = false;
714: }
715: return __desc;
716: }
717:
718: public SlotDescription slotMetaData__PersistSizeLast() {
719: SlotDescription __desc = new SlotDescription();
720: __desc.name = "persistSizeLast";
721: __desc.prototype = "agent";
722: __desc.is_writable = false;
723: Object __value;
724: __value = persistSizeLast;
725: if (__value != null) {
726: __desc.is_overridden = true;
727: __desc.value = __value;
728: } else {
729: __desc.is_overridden = false;
730: }
731: return __desc;
732: }
733:
734: public SlotDescription slotMetaData__MsgIn() {
735: SlotDescription __desc = new SlotDescription();
736: __desc.name = "msgIn";
737: __desc.prototype = "agent";
738: __desc.is_writable = false;
739: Object __value;
740: __value = msgIn;
741: if (__value != null) {
742: __desc.is_overridden = true;
743: __desc.value = __value;
744: } else {
745: __desc.is_overridden = false;
746: }
747: return __desc;
748: }
749:
750: public SlotDescription slotMetaData__Status() {
751: SlotDescription __desc = new SlotDescription();
752: __desc.name = "status";
753: __desc.prototype = "agent";
754: __desc.is_writable = true;
755: Object __value;
756: __value = status;
757: if (__value != null) {
758: __desc.is_overridden = true;
759: __desc.value = __value;
760: } else {
761: __desc.is_overridden = false;
762: __desc.value = "unknown";
763: }
764: return __desc;
765: }
766:
767: public SlotDescription slotMetaData__HeardFrom() {
768: SlotDescription __desc = new SlotDescription();
769: __desc.name = "heardFrom";
770: __desc.prototype = "agent";
771: __desc.is_writable = false;
772: Object __value;
773: __value = heardFrom;
774: if (__value != null) {
775: __desc.is_overridden = true;
776: __desc.value = __value;
777: } else {
778: __desc.is_overridden = false;
779: }
780: return __desc;
781: }
782:
783: public SlotDescription slotMetaData__CpuLoadMJips() {
784: SlotDescription __desc = new SlotDescription();
785: __desc.name = "cpuLoadMJips";
786: __desc.prototype = "agent";
787: __desc.is_writable = false;
788: Object __value;
789: __value = cpuLoadMJips;
790: if (__value != null) {
791: __desc.is_overridden = true;
792: __desc.value = __value;
793: } else {
794: __desc.is_overridden = false;
795: }
796: return __desc;
797: }
798:
799: public SlotDescription slotMetaData__BytesOut() {
800: SlotDescription __desc = new SlotDescription();
801: __desc.name = "bytesOut";
802: __desc.prototype = "agent";
803: __desc.is_writable = false;
804: Object __value;
805: __value = bytesOut;
806: if (__value != null) {
807: __desc.is_overridden = true;
808: __desc.value = __value;
809: } else {
810: __desc.is_overridden = false;
811: }
812: return __desc;
813: }
814:
815: public SlotDescription slotMetaData__MsgOut() {
816: SlotDescription __desc = new SlotDescription();
817: __desc.name = "msgOut";
818: __desc.prototype = "agent";
819: __desc.is_writable = false;
820: Object __value;
821: __value = msgOut;
822: if (__value != null) {
823: __desc.is_overridden = true;
824: __desc.value = __value;
825: } else {
826: __desc.is_overridden = false;
827: }
828: return __desc;
829: }
830:
831: public SlotDescription slotMetaData__LoadAverage() {
832: SlotDescription __desc = new SlotDescription();
833: __desc.name = "loadAverage";
834: __desc.prototype = "host";
835: __desc.value = getLoadAverage__AsObject();
836: __desc.is_overridden = false;
837: __desc.is_writable = false;
838: return __desc;
839: }
840:
841: public SlotDescription slotMetaData__Jips() {
842: SlotDescription __desc = new SlotDescription();
843: __desc.name = "jips";
844: __desc.prototype = "host";
845: __desc.value = getJips__AsObject();
846: __desc.is_overridden = false;
847: __desc.is_writable = false;
848: return __desc;
849: }
850:
851: public SlotDescription slotMetaData__EffectiveMJips() {
852: SlotDescription __desc = new SlotDescription();
853: __desc.name = "effectiveMJips";
854: __desc.prototype = "host";
855: __desc.value = getEffectiveMJips__AsObject();
856: __desc.is_overridden = false;
857: __desc.is_writable = false;
858: return __desc;
859: }
860:
861: public SlotDescription slotMetaData__Count() {
862: SlotDescription __desc = new SlotDescription();
863: __desc.name = "count";
864: __desc.prototype = "host";
865: __desc.value = getCount__AsObject();
866: __desc.is_overridden = false;
867: __desc.is_writable = false;
868: return __desc;
869: }
870:
871: public SlotDescription slotMetaData__VmSize() {
872: SlotDescription __desc = new SlotDescription();
873: __desc.name = "vmSize";
874: __desc.prototype = "node";
875: __desc.value = getVmSize__AsObject();
876: __desc.is_overridden = false;
877: __desc.is_writable = false;
878: return __desc;
879: }
880:
881: protected void collectSlotDescriptions(
882: java.util.Map<String, SlotDescription> map) {
883: super .collectSlotDescriptions(map);
884: map.put("bytesIn", slotMetaData__BytesIn());
885: map.put("cpuLoadAverage", slotMetaData__CpuLoadAverage());
886: map.put("persistSizeLast", slotMetaData__PersistSizeLast());
887: map.put("msgIn", slotMetaData__MsgIn());
888: map.put("status", slotMetaData__Status());
889: map.put("heardFrom", slotMetaData__HeardFrom());
890: map.put("cpuLoadMJips", slotMetaData__CpuLoadMJips());
891: map.put("bytesOut", slotMetaData__BytesOut());
892: map.put("msgOut", slotMetaData__MsgOut());
893: map.put("loadAverage", slotMetaData__LoadAverage());
894: map.put("jips", slotMetaData__Jips());
895: map.put("effectiveMJips", slotMetaData__EffectiveMJips());
896: map.put("count", slotMetaData__Count());
897: map.put("vmSize", slotMetaData__VmSize());
898: }
899: }
|