Class FederatedData
- java.lang.Object
-
- org.apache.sysds.runtime.controlprogram.federated.FederatedData
-
- Direct Known Subclasses:
FederatedLocalData
public class FederatedData extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FederatedData.FederatedRequestEncoder
-
Constructor Summary
Constructors Constructor Description FederatedData(Types.DataType dataType, InetSocketAddress address, String filepath)
FederatedData(Types.DataType dataType, InetSocketAddress address, String filepath, long varID)
-
Method Summary
-
-
-
Constructor Detail
-
FederatedData
public FederatedData(Types.DataType dataType, InetSocketAddress address, String filepath)
-
FederatedData
public FederatedData(Types.DataType dataType, InetSocketAddress address, String filepath, long varID)
-
-
Method Detail
-
getAddress
public InetSocketAddress getAddress()
-
setVarID
public void setVarID(long varID)
-
getVarID
public long getVarID()
-
getFilepath
public String getFilepath()
-
getDataType
public Types.DataType getDataType()
-
isInitialized
public boolean isInitialized()
-
copyWithNewID
public FederatedData copyWithNewID(long varID)
Make a copy of theFederatedData
metadata, but use another varID (refer to another object on worker)- Parameters:
varID
- the varID of the variable we refer to- Returns:
- new
FederatedData
with different varID set
-
initFederatedData
public Future<FederatedResponse> initFederatedData(long id)
-
initFederatedData
public Future<FederatedResponse> initFederatedData(long id, MetaData mtd)
-
initFederatedDataFromLocal
public Future<FederatedResponse> initFederatedDataFromLocal(long id, CacheBlock<?> block)
-
executeFederatedOperation
public Future<FederatedResponse> executeFederatedOperation(FederatedRequest... request)
-
executeFederatedOperation
public static Future<FederatedResponse> executeFederatedOperation(InetSocketAddress address, FederatedRequest... request)
Executes an federated operation on a federated worker.- Parameters:
address
- socket address (incl host and port)request
- the requested operation- Returns:
- the response
-
executeFederatedOperation
public static Future<FederatedResponse> executeFederatedOperation(InetSocketAddress address, int retry, FederatedRequest... request)
Executes an federated operation on a federated worker.- Parameters:
address
- socket address (incl host and port)retry
- the retry countrequest
- the requested operation- Returns:
- the response
-
clearFederatedWorkers
public static void clearFederatedWorkers()
-
resetFederatedSites
public static void resetFederatedSites()
-
clearWorkGroup
public static void clearWorkGroup()
-
createWorkGroup
public static void createWorkGroup()
-
-