link start!
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.sys.BFrozenEnum
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.sys.BFrozenEnum;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public final class BOverwritePolicy
|
||||
extends BFrozenEnum {
|
||||
public static final int ALL = 0;
|
||||
public static final int DIFFERENT = 1;
|
||||
public static final int NONE = 2;
|
||||
public static final BOverwritePolicy all = new BOverwritePolicy(0);
|
||||
public static final BOverwritePolicy different = new BOverwritePolicy(1);
|
||||
public static final BOverwritePolicy none = new BOverwritePolicy(2);
|
||||
public static final Type TYPE;
|
||||
public static final BOverwritePolicy DEFAULT;
|
||||
static /* synthetic */ Class class$javax$baja$platform$BOverwritePolicy;
|
||||
|
||||
public final Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static final BOverwritePolicy make(int n) {
|
||||
return (BOverwritePolicy)all.getRange().get(n, false);
|
||||
}
|
||||
|
||||
public static final BOverwritePolicy make(String string) {
|
||||
return (BOverwritePolicy)all.getRange().get(string);
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
private BOverwritePolicy(int n) {
|
||||
super(n);
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$javax$baja$platform$BOverwritePolicy;
|
||||
if (clazz == null) {
|
||||
clazz = class$javax$baja$platform$BOverwritePolicy = BOverwritePolicy.class("[Ljavax.baja.platform.BOverwritePolicy;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
DEFAULT = all;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.sys.BFrozenEnum
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.sys.BFrozenEnum;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public final class BStationStatus
|
||||
extends BFrozenEnum {
|
||||
public static final int IDLE = 0;
|
||||
public static final int STARTING = 1;
|
||||
public static final int RUNNING = 2;
|
||||
public static final int STOPPING = 3;
|
||||
public static final int FAILED = 4;
|
||||
public static final int UNKNOWN = 5;
|
||||
public static final int HALTED = 6;
|
||||
public static final BStationStatus idle = new BStationStatus(0);
|
||||
public static final BStationStatus starting = new BStationStatus(1);
|
||||
public static final BStationStatus running = new BStationStatus(2);
|
||||
public static final BStationStatus stopping = new BStationStatus(3);
|
||||
public static final BStationStatus failed = new BStationStatus(4);
|
||||
public static final BStationStatus unknown = new BStationStatus(5);
|
||||
public static final BStationStatus halted = new BStationStatus(6);
|
||||
public static final Type TYPE;
|
||||
public static final BStationStatus DEFAULT;
|
||||
static /* synthetic */ Class class$javax$baja$platform$BStationStatus;
|
||||
|
||||
public final Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static final BStationStatus make(int n) {
|
||||
return (BStationStatus)idle.getRange().get(n, false);
|
||||
}
|
||||
|
||||
public static final BStationStatus make(String string) {
|
||||
return (BStationStatus)idle.getRange().get(string);
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
private BStationStatus(int n) {
|
||||
super(n);
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$javax$baja$platform$BStationStatus;
|
||||
if (clazz == null) {
|
||||
clazz = class$javax$baja$platform$BStationStatus = BStationStatus.class("[Ljavax.baja.platform.BStationStatus;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
DEFAULT = idle;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BIFile
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
import javax.baja.platform.IPlatformOperationListener;
|
||||
|
||||
public interface BackupManager {
|
||||
public void backup(BIFile var1, IPlatformOperationListener var2) throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
public interface DaemonSecurityManager {
|
||||
public void useSingleAdminAccount(String var1, String var2) throws Exception;
|
||||
|
||||
public void useOsGroups(String var1, String var2) throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BFileSpace
|
||||
* javax.baja.security.AuthenticationException
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ConnectException;
|
||||
import javax.baja.file.BFileSpace;
|
||||
import javax.baja.platform.FileTransferOperation;
|
||||
import javax.baja.platform.IPlatformOperationListener;
|
||||
import javax.baja.security.AuthenticationException;
|
||||
|
||||
public interface FileManager {
|
||||
public BFileSpace getFileSpace() throws ConnectException, AuthenticationException;
|
||||
|
||||
public void transfer(FileTransferOperation var1, IPlatformOperationListener var2) throws ConnectException, AuthenticationException, IOException;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.FilePath
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.file.FilePath;
|
||||
import javax.baja.platform.BOverwritePolicy;
|
||||
|
||||
public class FileTransferOperation {
|
||||
public static final int FILE_TRANSFER_OPER_GET = 0;
|
||||
public static final int FILE_TRANSFER_OPER_PUT = 1;
|
||||
public static final int FILE_TRANSFER_OPER_DELETE = 2;
|
||||
public static final int FILE_TRANSFER_OPER_RENAME = 3;
|
||||
public int operation;
|
||||
public FilePath[] source;
|
||||
public FilePath destinationDir;
|
||||
public boolean recurseDirs;
|
||||
public BOverwritePolicy overwritePolicy;
|
||||
|
||||
public static FileTransferOperation makeRename(FilePath filePath, String string) {
|
||||
return new FileTransferOperation(3, new FilePath[]{filePath}, filePath.getParent().merge(string), false, null);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makeGet(FilePath filePath, FilePath filePath2) {
|
||||
return FileTransferOperation.makeGet(new FilePath[]{filePath}, filePath2);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makeGet(FilePath[] filePathArray, FilePath filePath) {
|
||||
return FileTransferOperation.makeGet(filePathArray, filePath, true, BOverwritePolicy.none);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makeGet(FilePath filePath, FilePath filePath2, boolean bl, BOverwritePolicy bOverwritePolicy) {
|
||||
return FileTransferOperation.makeGet(new FilePath[]{filePath}, filePath2, bl, bOverwritePolicy);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makeGet(FilePath[] filePathArray, FilePath filePath, boolean bl, BOverwritePolicy bOverwritePolicy) {
|
||||
return new FileTransferOperation(0, filePathArray, filePath, bl, bOverwritePolicy);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makePut(FilePath filePath, FilePath filePath2) {
|
||||
return FileTransferOperation.makePut(new FilePath[]{filePath}, filePath2);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makePut(FilePath[] filePathArray, FilePath filePath) {
|
||||
return FileTransferOperation.makePut(filePathArray, filePath, true, BOverwritePolicy.none);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makePut(FilePath filePath, FilePath filePath2, boolean bl, BOverwritePolicy bOverwritePolicy) {
|
||||
return FileTransferOperation.makePut(new FilePath[]{filePath}, filePath2, bl, bOverwritePolicy);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makePut(FilePath[] filePathArray, FilePath filePath, boolean bl, BOverwritePolicy bOverwritePolicy) {
|
||||
return new FileTransferOperation(1, filePathArray, filePath, bl, bOverwritePolicy);
|
||||
}
|
||||
|
||||
public static FileTransferOperation makeDelete(FilePath[] filePathArray) {
|
||||
return new FileTransferOperation(2, filePathArray, null, true, null);
|
||||
}
|
||||
|
||||
private FileTransferOperation(int n, FilePath[] filePathArray, FilePath filePath, boolean bl, BOverwritePolicy bOverwritePolicy) {
|
||||
this.operation = n;
|
||||
this.source = filePathArray;
|
||||
this.destinationDir = filePath;
|
||||
this.recurseDirs = bl;
|
||||
this.overwritePolicy = bOverwritePolicy;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.sys.LocalizableRuntimeException
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.sys.LocalizableRuntimeException;
|
||||
|
||||
public interface ICancelHint {
|
||||
public boolean isCanceled();
|
||||
|
||||
public static class CanceledException
|
||||
extends LocalizableRuntimeException {
|
||||
public CanceledException() {
|
||||
super("platform", "CanceledException");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.platform.ICancelHint;
|
||||
|
||||
public interface IPlatformOperationListener
|
||||
extends ICancelHint {
|
||||
public boolean isCanceled();
|
||||
|
||||
public void notifyStatus(String var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BIFile
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
import javax.baja.platform.IPlatformOperationListener;
|
||||
import javax.baja.platform.InstallOperation;
|
||||
import javax.baja.platform.install.InstallationSummary;
|
||||
import javax.baja.platform.install.PlatformPart;
|
||||
|
||||
public interface InstallManager {
|
||||
public void install(InstallOperation var1, IPlatformOperationListener var2) throws Exception;
|
||||
|
||||
public InstallationSummary checkInstall(InstallOperation var1, IPlatformOperationListener var2) throws Exception;
|
||||
|
||||
public PlatformPart[] getPlatformParts(IPlatformOperationListener var1) throws Exception;
|
||||
|
||||
public void registerInstallableFile(BIFile var1, IPlatformOperationListener var2) throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BIFile
|
||||
* javax.baja.util.Version
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import com.tridium.platform.daemon.PlatformInstallOperation;
|
||||
import javax.baja.file.BIFile;
|
||||
import javax.baja.util.Version;
|
||||
|
||||
public abstract class InstallOperation {
|
||||
public static InstallOperation make() {
|
||||
return new PlatformInstallOperation();
|
||||
}
|
||||
|
||||
public abstract void setIgnoreTcpIpChanges(boolean var1);
|
||||
|
||||
public abstract void setIgnoreAuthChanges(boolean var1);
|
||||
|
||||
public abstract void installModule(String var1, Version var2);
|
||||
|
||||
public abstract void installDistribution(BIFile var1) throws Exception;
|
||||
|
||||
public abstract void installDistribution(String var1, Version var2);
|
||||
|
||||
public abstract void uninstallModule(String var1);
|
||||
|
||||
protected InstallOperation() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import com.tridium.platform.NiagaraLocalPlatform;
|
||||
import javax.baja.platform.tcpip.TcpIpManager;
|
||||
import javax.baja.platform.time.TimeManager;
|
||||
|
||||
public abstract class LocalPlatform {
|
||||
public static LocalPlatform make() {
|
||||
return NiagaraLocalPlatform.make();
|
||||
}
|
||||
|
||||
public abstract TcpIpManager getTcpIpManager();
|
||||
|
||||
public abstract TimeManager getTimeManager();
|
||||
|
||||
public abstract void restartNiagaraEnvironment();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.naming.BHost
|
||||
* javax.baja.naming.BOrd
|
||||
* javax.baja.security.BUsernameAndPassword
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import com.tridium.platform.daemon.NiagaraPlatformDaemon;
|
||||
import javax.baja.naming.BHost;
|
||||
import javax.baja.naming.BOrd;
|
||||
import javax.baja.platform.BackupManager;
|
||||
import javax.baja.platform.DaemonSecurityManager;
|
||||
import javax.baja.platform.FileManager;
|
||||
import javax.baja.platform.InstallManager;
|
||||
import javax.baja.platform.PlatformLicenseManager;
|
||||
import javax.baja.platform.StationManager;
|
||||
import javax.baja.security.BUsernameAndPassword;
|
||||
|
||||
public abstract class PlatformDaemon {
|
||||
public static PlatformDaemon make(String string, int n, String string2, String string3) throws Exception {
|
||||
return PlatformDaemon.make((BHost)BOrd.make((String)("ip:" + string)).get(), n, new BUsernameAndPassword(string2, string3));
|
||||
}
|
||||
|
||||
public static PlatformDaemon make(String string, int n, String string2, String string3, String string4) throws Exception {
|
||||
String[] stringArray = null;
|
||||
if (string2 != null) {
|
||||
stringArray = new String[]{string2};
|
||||
}
|
||||
return PlatformDaemon.make((BHost)BOrd.make((String)("ip:" + string)).get(), n, stringArray, new BUsernameAndPassword(string3, string4));
|
||||
}
|
||||
|
||||
public static PlatformDaemon make(BHost bHost, int n, BUsernameAndPassword bUsernameAndPassword) throws Exception {
|
||||
return NiagaraPlatformDaemon.make(bHost, n, bUsernameAndPassword);
|
||||
}
|
||||
|
||||
public static PlatformDaemon make(BHost bHost, int n, String string, BUsernameAndPassword bUsernameAndPassword) throws Exception {
|
||||
String[] stringArray = null;
|
||||
if (string != null) {
|
||||
stringArray = new String[]{string};
|
||||
}
|
||||
return PlatformDaemon.make(bHost, n, stringArray, bUsernameAndPassword);
|
||||
}
|
||||
|
||||
public static PlatformDaemon make(BHost bHost, int n, String[] stringArray, BUsernameAndPassword bUsernameAndPassword) throws Exception {
|
||||
return NiagaraPlatformDaemon.make(bHost, n, stringArray, bUsernameAndPassword);
|
||||
}
|
||||
|
||||
public abstract StationManager getStationManager();
|
||||
|
||||
public abstract FileManager getFileManager();
|
||||
|
||||
public abstract InstallManager getInstallManager();
|
||||
|
||||
public abstract DaemonSecurityManager getSecurityManager();
|
||||
|
||||
public abstract BackupManager getOfflineBackupManager() throws Exception;
|
||||
|
||||
public abstract PlatformLicenseManager getLicenseManager() throws Exception;
|
||||
|
||||
public abstract void close() throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BIFile
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
import javax.baja.platform.IPlatformOperationListener;
|
||||
|
||||
public interface PlatformLicenseManager {
|
||||
public String getHostId() throws Exception;
|
||||
|
||||
public BIFile[] getLicenses() throws Exception;
|
||||
|
||||
public void installLicenses(BIFile[] var1, IPlatformOperationListener var2) throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BDirectory
|
||||
* javax.baja.naming.BOrd
|
||||
* javax.baja.security.AuthenticationException
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import java.net.ConnectException;
|
||||
import javax.baja.file.BDirectory;
|
||||
import javax.baja.naming.BOrd;
|
||||
import javax.baja.platform.BStationStatus;
|
||||
import javax.baja.platform.IPlatformOperationListener;
|
||||
import javax.baja.security.AuthenticationException;
|
||||
|
||||
public interface RemoteStation {
|
||||
public BStationStatus getStatus();
|
||||
|
||||
public String getName();
|
||||
|
||||
public BOrd getFoxOrd();
|
||||
|
||||
public void poll() throws Exception;
|
||||
|
||||
public boolean canStart() throws Exception;
|
||||
|
||||
public void start(IPlatformOperationListener var1) throws Exception;
|
||||
|
||||
public void startAsync() throws Exception;
|
||||
|
||||
public void saveAsync() throws ConnectException, AuthenticationException;
|
||||
|
||||
public void save(IPlatformOperationListener var1) throws ConnectException, AuthenticationException;
|
||||
|
||||
public void stopAsync() throws ConnectException, AuthenticationException;
|
||||
|
||||
public void stop(IPlatformOperationListener var1) throws ConnectException, AuthenticationException;
|
||||
|
||||
public boolean canRestart() throws Exception;
|
||||
|
||||
public void restartAsync() throws Exception;
|
||||
|
||||
public void killAsync() throws ConnectException, AuthenticationException;
|
||||
|
||||
public void delete(IPlatformOperationListener var1) throws ConnectException, AuthenticationException;
|
||||
|
||||
public void rename(String var1, IPlatformOperationListener var2) throws Exception;
|
||||
|
||||
public void makeLocalCopy(BDirectory var1, IPlatformOperationListener var2) throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BDirectory
|
||||
* javax.baja.security.AuthenticationException
|
||||
*/
|
||||
package javax.baja.platform;
|
||||
|
||||
import java.net.ConnectException;
|
||||
import javax.baja.file.BDirectory;
|
||||
import javax.baja.platform.IPlatformOperationListener;
|
||||
import javax.baja.platform.RemoteStation;
|
||||
import javax.baja.security.AuthenticationException;
|
||||
|
||||
public interface StationManager {
|
||||
public RemoteStation createStation(BDirectory var1, String var2, IPlatformOperationListener var3) throws Exception;
|
||||
|
||||
public RemoteStation[] getAllStations() throws Exception;
|
||||
|
||||
public RemoteStation getStation(String var1) throws Exception;
|
||||
|
||||
public RemoteStation[] stopAllStations(IPlatformOperationListener var1) throws Exception;
|
||||
|
||||
public void rebootAsync() throws ConnectException, AuthenticationException;
|
||||
|
||||
public void rebootSync(IPlatformOperationListener var1) throws Exception;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BIFile
|
||||
* javax.baja.sys.BSingleton
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import java.io.InputStream;
|
||||
import javax.baja.file.BIFile;
|
||||
import javax.baja.sys.BSingleton;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public abstract class BFileReconciler
|
||||
extends BSingleton {
|
||||
public static final Type TYPE;
|
||||
public static final ReconciliationResults NO_RECONCILIATION;
|
||||
static /* synthetic */ Class class$javax$baja$platform$install$BFileReconciler;
|
||||
|
||||
public Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public abstract ReconciliationResults reconcile(BIFile var1, BIFile var2) throws Exception;
|
||||
|
||||
public final ReconciliationResults reconcile(BIFile bIFile, long l, BIFile bIFile2, long l2) throws Exception {
|
||||
if (bIFile == null || l == l2 && l != (long)-1) {
|
||||
return NO_RECONCILIATION;
|
||||
}
|
||||
if (bIFile2 == null) {
|
||||
return new FileReconciliationResults(bIFile);
|
||||
}
|
||||
return new LazyReconciliationResults(bIFile, bIFile2);
|
||||
}
|
||||
|
||||
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$javax$baja$platform$install$BFileReconciler;
|
||||
if (clazz == null) {
|
||||
clazz = class$javax$baja$platform$install$BFileReconciler = BFileReconciler.class("[Ljavax.baja.platform.install.BFileReconciler;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
NO_RECONCILIATION = new ReconciliationResults(){
|
||||
|
||||
public final InputStream getInputStream() throws Exception {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
public final long getSize() throws Exception {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
public final boolean shouldReplaceContents() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static class FileReconciliationResults
|
||||
implements ReconciliationResults {
|
||||
private BIFile file;
|
||||
|
||||
public InputStream getInputStream() throws Exception {
|
||||
return this.file.getInputStream();
|
||||
}
|
||||
|
||||
public long getSize() throws Exception {
|
||||
return this.file.getSize();
|
||||
}
|
||||
|
||||
public boolean shouldReplaceContents() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public FileReconciliationResults(BIFile bIFile) {
|
||||
this.file = bIFile;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
protected class LazyReconciliationResults
|
||||
implements ReconciliationResults {
|
||||
private ReconciliationResults results;
|
||||
private BIFile newContents;
|
||||
private BIFile existingContents;
|
||||
|
||||
public InputStream getInputStream() throws Exception {
|
||||
return this.results().getInputStream();
|
||||
}
|
||||
|
||||
public long getSize() throws Exception {
|
||||
return this.results().getSize();
|
||||
}
|
||||
|
||||
public boolean shouldReplaceContents() throws Exception {
|
||||
return this.results().shouldReplaceContents();
|
||||
}
|
||||
|
||||
private final ReconciliationResults results() throws Exception {
|
||||
if (this.results == null) {
|
||||
this.results = BFileReconciler.this.reconcile(this.newContents, this.existingContents);
|
||||
}
|
||||
return this.results;
|
||||
}
|
||||
|
||||
private final /* synthetic */ void this() {
|
||||
this.results = null;
|
||||
}
|
||||
|
||||
public LazyReconciliationResults(BIFile bIFile, BIFile bIFile2) {
|
||||
this.this();
|
||||
this.newContents = bIFile;
|
||||
this.existingContents = bIFile2;
|
||||
}
|
||||
}
|
||||
|
||||
public static interface ReconciliationResults {
|
||||
public InputStream getInputStream() throws Exception;
|
||||
|
||||
public long getSize() throws Exception;
|
||||
|
||||
public boolean shouldReplaceContents() throws Exception;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.sys.BFrozenEnum
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import javax.baja.sys.BFrozenEnum;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public final class BPlatformPartType
|
||||
extends BFrozenEnum {
|
||||
public static final int ARCH = 0;
|
||||
public static final int BRAND = 1;
|
||||
public static final int MODEL = 2;
|
||||
public static final int MODULE = 3;
|
||||
public static final int NRE = 4;
|
||||
public static final int OS = 5;
|
||||
public static final int VM = 6;
|
||||
public static final int OTHER = 7;
|
||||
public static final BPlatformPartType arch = new BPlatformPartType(0);
|
||||
public static final BPlatformPartType brand = new BPlatformPartType(1);
|
||||
public static final BPlatformPartType model = new BPlatformPartType(2);
|
||||
public static final BPlatformPartType module = new BPlatformPartType(3);
|
||||
public static final BPlatformPartType nre = new BPlatformPartType(4);
|
||||
public static final BPlatformPartType os = new BPlatformPartType(5);
|
||||
public static final BPlatformPartType vm = new BPlatformPartType(6);
|
||||
public static final BPlatformPartType other = new BPlatformPartType(7);
|
||||
public static final Type TYPE;
|
||||
public static final BPlatformPartType DEFAULT;
|
||||
static /* synthetic */ Class class$javax$baja$platform$install$BPlatformPartType;
|
||||
|
||||
public final Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static final BPlatformPartType make(int n) {
|
||||
return (BPlatformPartType)arch.getRange().get(n, false);
|
||||
}
|
||||
|
||||
public static final BPlatformPartType make(String string) {
|
||||
return (BPlatformPartType)arch.getRange().get(string);
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
private BPlatformPartType(int n) {
|
||||
super(n);
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$javax$baja$platform$install$BPlatformPartType;
|
||||
if (clazz == null) {
|
||||
clazz = class$javax$baja$platform$install$BPlatformPartType = BPlatformPartType.class("[Ljavax.baja.platform.install.BPlatformPartType;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
DEFAULT = arch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.data.BIDataValue
|
||||
* javax.baja.sys.BFrozenEnum
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
*/
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import javax.baja.data.BIDataValue;
|
||||
import javax.baja.sys.BFrozenEnum;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public final class BVersionRelation
|
||||
extends BFrozenEnum
|
||||
implements BIDataValue {
|
||||
public static final int MINIMUM = 0;
|
||||
public static final int EXACT = 1;
|
||||
public static final int MAXIMUM = 2;
|
||||
public static final BVersionRelation minimum = new BVersionRelation(0);
|
||||
public static final BVersionRelation exact = new BVersionRelation(1);
|
||||
public static final BVersionRelation maximum = new BVersionRelation(2);
|
||||
public static final Type TYPE;
|
||||
public static final BVersionRelation DEFAULT;
|
||||
static /* synthetic */ Class class$javax$baja$platform$install$BVersionRelation;
|
||||
|
||||
public final Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static final BVersionRelation make(int n) {
|
||||
return (BVersionRelation)minimum.getRange().get(n, false);
|
||||
}
|
||||
|
||||
public static final BVersionRelation make(String string) {
|
||||
return (BVersionRelation)minimum.getRange().get(string);
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
private BVersionRelation(int n) {
|
||||
super(n);
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$javax$baja$platform$install$BVersionRelation;
|
||||
if (clazz == null) {
|
||||
clazz = class$javax$baja$platform$install$BVersionRelation = BVersionRelation.class("[Ljavax.baja.platform.install.BVersionRelation;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
DEFAULT = minimum;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.file.BIFile
|
||||
*/
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
import javax.baja.platform.install.PlatformDependency;
|
||||
|
||||
public interface InstallationSummary {
|
||||
public boolean canInstall();
|
||||
|
||||
public BIFile[] getFilesToInstall();
|
||||
|
||||
public String[] getModulesToUninstall();
|
||||
|
||||
public PlatformDependency[] getUnmetDependencies();
|
||||
|
||||
public BIFile[] getExcludedFiles();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import javax.baja.platform.install.BVersionRelation;
|
||||
import javax.baja.platform.install.PlatformPart;
|
||||
|
||||
public interface PlatformDependency {
|
||||
public PlatformPart getPartPrototype();
|
||||
|
||||
public BVersionRelation getVersionRelation();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.util.Version
|
||||
*/
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import javax.baja.platform.install.BPlatformPartType;
|
||||
import javax.baja.util.Version;
|
||||
|
||||
public interface PlatformPart {
|
||||
public String getPartName();
|
||||
|
||||
public BPlatformPartType getPartType();
|
||||
|
||||
public Version getPartVersion();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package javax.baja.platform.tcpip;
|
||||
|
||||
public interface TcpIpManager {
|
||||
public String[] getAdapterIds();
|
||||
|
||||
public String getDefaultGateway(String var1);
|
||||
|
||||
public void setDefaultGateway(String var1, String var2) throws IllegalStateException;
|
||||
|
||||
public boolean isDhcpEnabled(String var1);
|
||||
|
||||
public void enableDhcp(String var1, boolean var2);
|
||||
|
||||
public int getDnsServerLimit(String var1);
|
||||
|
||||
public String[] getDnsServers(String var1);
|
||||
|
||||
public void setDnsServers(String var1, String[] var2);
|
||||
|
||||
public String getDomain(String var1);
|
||||
|
||||
public void setDomain(String var1, String var2);
|
||||
|
||||
public String getHostName();
|
||||
|
||||
public void setHostName(String var1);
|
||||
|
||||
public String getIpAddress(String var1);
|
||||
|
||||
public void setIpAddress(String var1, String var2);
|
||||
|
||||
public String getSubnetMask(String var1);
|
||||
|
||||
public void setSubnetMask(String var1, String var2);
|
||||
|
||||
public String getMediaAccessControlAddress(String var1);
|
||||
|
||||
public void saveProperties();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package javax.baja.platform.time;
|
||||
|
||||
public interface TimeManager {
|
||||
public boolean isTimeZoneSupported(String var1);
|
||||
|
||||
public boolean setTimeZone(String var1);
|
||||
|
||||
public boolean setTimeZone(String var1, boolean var2);
|
||||
|
||||
public String getLocale();
|
||||
|
||||
public boolean setLocale(String var1);
|
||||
|
||||
public void saveProperties();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user