66 lines
2.5 KiB
Java
66 lines
2.5 KiB
Java
/*
|
|
* 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;
|
|
}
|
|
|