/* * Decompiled with CFR 0.152. * * Could not load the following classes: * javax.baja.nav.BINavNode * javax.baja.nre.util.Array * javax.baja.sys.Action * javax.baja.sys.BComponent * javax.baja.sys.BFacets * javax.baja.sys.BIService * javax.baja.sys.BIcon * javax.baja.sys.BString * javax.baja.sys.BValue * javax.baja.sys.Sys * javax.baja.sys.Type * javax.baja.util.BServiceContainer */ package com.tridium.platform; import com.tridium.platform.BPlatformService; import com.tridium.platform.BSystemPlatformService; import javax.baja.nav.BINavNode; import javax.baja.nre.util.Array; import javax.baja.sys.Action; import javax.baja.sys.BComponent; import javax.baja.sys.BFacets; import javax.baja.sys.BIService; import javax.baja.sys.BIcon; import javax.baja.sys.BString; import javax.baja.sys.BValue; import javax.baja.sys.Sys; import javax.baja.sys.Type; import javax.baja.util.BServiceContainer; /* * Illegal identifiers - consider using --renameillegalidents true */ public class BPlatformServiceContainer extends BComponent implements BIService { public static final Action sendThreadDumpToConsole = BPlatformServiceContainer.newAction((int)0, null); public static final Action requestGarbageCollection = BPlatformServiceContainer.newAction((int)0, null); public static final Action restartStation = BPlatformServiceContainer.newAction((int)128, null); public static final Action renameAndRestartStation = BPlatformServiceContainer.newAction((int)132, (BValue)BString.make((String)"newStationName"), (BFacets)BFacets.make((String)"validator", (String)"baja:StationNameValidator")); public static final Type TYPE; private static final BIcon icon; static /* synthetic */ Class class$com$tridium$platform$BPlatformServiceContainer; static /* synthetic */ Class class$javax$baja$nav$BINavNode; public void sendThreadDumpToConsole() { this.invoke(sendThreadDumpToConsole, null, null); } public void requestGarbageCollection() { this.invoke(requestGarbageCollection, null, null); } public void restartStation() { this.invoke(restartStation, null, null); } public void renameAndRestartStation(BString bString) { this.invoke(renameAndRestartStation, (BValue)bString, null); } public Type getType() { return TYPE; } public Type[] getServiceTypes() { return new Type[]{TYPE}; } public void serviceStarted() throws Exception { } public void serviceStopped() throws Exception { } public boolean isParentLegal(BComponent bComponent) { return bComponent instanceof BServiceContainer; } public boolean isChildLegal(BComponent bComponent) { return bComponent instanceof BPlatformService; } public void doSendThreadDumpToConsole() throws Exception { BSystemPlatformService bSystemPlatformService = (BSystemPlatformService)Sys.getService((Type)BSystemPlatformService.TYPE); bSystemPlatformService.sendThreadDumpToConsole(); } public void doRequestGarbageCollection() throws Exception { BSystemPlatformService bSystemPlatformService = (BSystemPlatformService)Sys.getService((Type)BSystemPlatformService.TYPE); bSystemPlatformService.requestGarbageCollection(); } public void doRestartStation() throws Exception { BSystemPlatformService bSystemPlatformService = (BSystemPlatformService)Sys.getService((Type)BSystemPlatformService.TYPE); bSystemPlatformService.restartStation(); } public void doRenameAndRestartStation(BString bString) { BSystemPlatformService bSystemPlatformService = (BSystemPlatformService)Sys.getService((Type)BSystemPlatformService.TYPE); bSystemPlatformService.renameAndRestartStation(bString); } public BINavNode[] getNavChildren() { Class clazz = class$javax$baja$nav$BINavNode; if (clazz == null) { clazz = class$javax$baja$nav$BINavNode = BPlatformServiceContainer.class("[Ljavax.baja.nav.BINavNode;", false); } Array array = new Array(clazz); BINavNode[] bINavNodeArray = super.getNavChildren(); int n = 0; while (n < bINavNodeArray.length) { if (!(bINavNodeArray[n] instanceof BSystemPlatformService)) { array.add((Object)bINavNodeArray[n]); } ++n; } return (BINavNode[])array.trim(); } public BIcon getIcon() { return icon; } static /* synthetic */ Class class(String string, boolean bl) { try { Class clazz = Class.forName(string); if (!bl) { clazz = clazz.getComponentType(); } return clazz; } catch (ClassNotFoundException classNotFoundException) { throw new NoClassDefFoundError(classNotFoundException.getMessage()); } } static { Class clazz = class$com$tridium$platform$BPlatformServiceContainer; if (clazz == null) { clazz = class$com$tridium$platform$BPlatformServiceContainer = BPlatformServiceContainer.class("[Lcom.tridium.platform.BPlatformServiceContainer;", false); } TYPE = Sys.loadType((Class)clazz); icon = BIcon.std((String)"platform.png"); } }