Class FederatedData
java.lang.Object
org.apache.sysds.runtime.controlprogram.federated.FederatedData
- Direct Known Subclasses:
FederatedLocalData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionFederatedData(Types.DataType dataType, InetSocketAddress address, String filepath) FederatedData(Types.DataType dataType, InetSocketAddress address, String filepath, long varID) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidcopyWithNewID(long varID) Make a copy of theFederatedDatametadata, but use another varID (refer to another object on worker)static voidstatic Future<FederatedResponse>executeFederatedOperation(InetSocketAddress address, int retry, FederatedRequest... request) Executes an federated operation on a federated worker.static Future<FederatedResponse>executeFederatedOperation(InetSocketAddress address, FederatedRequest... request) Executes an federated operation on a federated worker.executeFederatedOperation(FederatedRequest... request) longgetVarID()initFederatedData(long id) initFederatedData(long id, MetaData mtd) initFederatedDataFromLocal(long id, CacheBlock<?> block) booleanRequests privacy constraints from the federated workerstatic voidvoidsetVarID(long varID) toString()
-
Constructor Details
-
FederatedData
-
FederatedData
public FederatedData(Types.DataType dataType, InetSocketAddress address, String filepath, long varID)
-
-
Method Details
-
getAddress
-
setVarID
public void setVarID(long varID) -
getVarID
public long getVarID() -
getFilepath
-
getDataType
-
isInitialized
public boolean isInitialized() -
copyWithNewID
Make a copy of theFederatedDatametadata, but use another varID (refer to another object on worker)- Parameters:
varID- the varID of the variable we refer to- Returns:
- new
FederatedDatawith different varID set
-
initFederatedData
-
initFederatedData
-
initFederatedDataFromLocal
-
executeFederatedOperation
-
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() -
toString
-
requestPrivacyConstraints
Requests privacy constraints from the federated worker- Returns:
- Future containing the federated response with privacy constraints
-