mirror of
https://github.com/Maschell/JWUPClient.git
synced 2024-06-28 04:06:07 +02:00
8e6187ab0f
Added: repeatwrite dump_syslog
32 lines
904 B
Java
32 lines
904 B
Java
package de.mas.wupclient.client.operations;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import de.mas.wupclient.client.WUPClient;
|
|
|
|
public class MCPOperations extends Operations {
|
|
private static Map<WUPClient,DownloadUploadOperations> instances = new HashMap<>();
|
|
public static DownloadUploadOperations DownloadUploadOperationsFactory(WUPClient client){
|
|
if(!instances.containsKey(client)){
|
|
instances.put(client, new DownloadUploadOperations(client));
|
|
}
|
|
return instances.get(client);
|
|
}
|
|
|
|
SystemOperations system = null;
|
|
|
|
public MCPOperations(WUPClient client) {
|
|
super(client);
|
|
setSystem(SystemOperations.SystemOperationsFactory(client));
|
|
}
|
|
|
|
public SystemOperations getSystem() {
|
|
return system;
|
|
}
|
|
|
|
public void setSystem(SystemOperations system) {
|
|
this.system = system;
|
|
}
|
|
}
|