link start!
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
|
||||
public interface BackupManager {
|
||||
void backup(BIFile bIFile, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package javax.baja.platform;
|
||||
|
||||
public interface DaemonSecurityManager {
|
||||
void useOsGroups(String str, String str2) throws Exception;
|
||||
|
||||
void useSingleAdminAccount(String str, String str2) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package javax.baja.platform;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ConnectException;
|
||||
import javax.baja.file.BFileSpace;
|
||||
import javax.baja.security.AuthenticationException;
|
||||
|
||||
public interface FileManager {
|
||||
BFileSpace getFileSpace() throws ConnectException, AuthenticationException;
|
||||
|
||||
void transfer(FileTransferOperation fileTransferOperation, IPlatformOperationListener iPlatformOperationListener) throws ConnectException, AuthenticationException, IOException;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
import javax.baja.platform.install.InstallationSummary;
|
||||
import javax.baja.platform.install.PlatformPart;
|
||||
|
||||
public interface InstallManager {
|
||||
InstallationSummary checkInstall(InstallOperation installOperation, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
PlatformPart[] getPlatformParts(IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
void install(InstallOperation installOperation, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
void registerInstallableFile(BIFile bIFile, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package javax.baja.platform;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
|
||||
public interface PlatformLicenseManager {
|
||||
String getHostId() throws Exception;
|
||||
|
||||
BIFile[] getLicenses() throws Exception;
|
||||
|
||||
void installLicenses(BIFile[] bIFileArr, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package javax.baja.platform;
|
||||
|
||||
import java.net.ConnectException;
|
||||
import javax.baja.file.BDirectory;
|
||||
import javax.baja.naming.BOrd;
|
||||
import javax.baja.security.AuthenticationException;
|
||||
|
||||
public interface RemoteStation {
|
||||
boolean canRestart() throws Exception;
|
||||
|
||||
boolean canStart() throws Exception;
|
||||
|
||||
void delete(IPlatformOperationListener iPlatformOperationListener) throws ConnectException, AuthenticationException;
|
||||
|
||||
BOrd getFoxOrd();
|
||||
|
||||
String getName();
|
||||
|
||||
BStationStatus getStatus();
|
||||
|
||||
void killAsync() throws ConnectException, AuthenticationException;
|
||||
|
||||
void makeLocalCopy(BDirectory bDirectory, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
void poll() throws Exception;
|
||||
|
||||
void rename(String str, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
void restartAsync() throws Exception;
|
||||
|
||||
void save(IPlatformOperationListener iPlatformOperationListener) throws ConnectException, AuthenticationException;
|
||||
|
||||
void saveAsync() throws ConnectException, AuthenticationException;
|
||||
|
||||
void start(IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
void startAsync() throws Exception;
|
||||
|
||||
void stop(IPlatformOperationListener iPlatformOperationListener) throws ConnectException, AuthenticationException;
|
||||
|
||||
void stopAsync() throws ConnectException, AuthenticationException;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package javax.baja.platform;
|
||||
|
||||
import java.net.ConnectException;
|
||||
import javax.baja.file.BDirectory;
|
||||
import javax.baja.security.AuthenticationException;
|
||||
|
||||
public interface StationManager {
|
||||
RemoteStation createStation(BDirectory bDirectory, String str, IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
RemoteStation[] getAllStations() throws Exception;
|
||||
|
||||
RemoteStation getStation(String str) throws Exception;
|
||||
|
||||
void rebootAsync() throws ConnectException, AuthenticationException;
|
||||
|
||||
void rebootSync(IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
|
||||
RemoteStation[] stopAllStations(IPlatformOperationListener iPlatformOperationListener) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import javax.baja.file.BIFile;
|
||||
|
||||
public interface InstallationSummary {
|
||||
boolean canInstall();
|
||||
|
||||
BIFile[] getExcludedFiles();
|
||||
|
||||
BIFile[] getFilesToInstall();
|
||||
|
||||
String[] getModulesToUninstall();
|
||||
|
||||
PlatformDependency[] getUnmetDependencies();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package javax.baja.platform.install;
|
||||
|
||||
public interface PlatformDependency {
|
||||
PlatformPart getPartPrototype();
|
||||
|
||||
BVersionRelation getVersionRelation();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package javax.baja.platform.install;
|
||||
|
||||
import javax.baja.util.Version;
|
||||
|
||||
public interface PlatformPart {
|
||||
String getPartName();
|
||||
|
||||
BPlatformPartType getPartType();
|
||||
|
||||
Version getPartVersion();
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package javax.baja.platform.tcpip;
|
||||
|
||||
public interface TcpIpManager {
|
||||
void enableDhcp(String str, boolean z);
|
||||
|
||||
String[] getAdapterIds();
|
||||
|
||||
String getDefaultGateway(String str);
|
||||
|
||||
int getDnsServerLimit(String str);
|
||||
|
||||
String[] getDnsServers(String str);
|
||||
|
||||
String getDomain(String str);
|
||||
|
||||
String getHostName();
|
||||
|
||||
String getIpAddress(String str);
|
||||
|
||||
String getMediaAccessControlAddress(String str);
|
||||
|
||||
String getSubnetMask(String str);
|
||||
|
||||
boolean isDhcpEnabled(String str);
|
||||
|
||||
void saveProperties();
|
||||
|
||||
void setDefaultGateway(String str, String str2) throws IllegalStateException;
|
||||
|
||||
void setDnsServers(String str, String[] strArr);
|
||||
|
||||
void setDomain(String str, String str2);
|
||||
|
||||
void setHostName(String str);
|
||||
|
||||
void setIpAddress(String str, String str2);
|
||||
|
||||
void setSubnetMask(String str, String str2);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package javax.baja.platform.time;
|
||||
|
||||
public interface TimeManager {
|
||||
String getLocale();
|
||||
|
||||
boolean isTimeZoneSupported(String str);
|
||||
|
||||
void saveProperties();
|
||||
|
||||
boolean setLocale(String str);
|
||||
|
||||
boolean setTimeZone(String str);
|
||||
|
||||
boolean setTimeZone(String str, boolean z);
|
||||
}
|
||||
Reference in New Issue
Block a user