Skip to content

Commit

Permalink
0002330 - Compilation fixes for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicks, Josh committed Jan 4, 2016
1 parent d74c121 commit d35512a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Expand Up @@ -45,6 +45,7 @@
import org.jumpmind.symmetric.route.DataGapRouteReader;
import org.jumpmind.symmetric.route.IDataToRouteReader;
import org.jumpmind.symmetric.service.IClusterService;
import org.jumpmind.symmetric.service.IConfigurationService;
import org.jumpmind.symmetric.service.IExtensionService;
import org.jumpmind.symmetric.service.INodeCommunicationService;
import org.jumpmind.symmetric.service.INodeService;
Expand Down Expand Up @@ -159,20 +160,21 @@ protected IDataToRouteReader startReading(ChannelRouterContext context) {

@Override
protected INodeCommunicationService buildNodeCommunicationService(IClusterService clusterService, INodeService nodeService,
IParameterService parameterService, ISymmetricDialect symmetricDialect) {
return new AndroidNodeCommunicationService(clusterService, nodeService, parameterService, symmetricDialect);
IParameterService parameterService, IConfigurationService configurationService, ISymmetricDialect symmetricDialect) {
return new AndroidNodeCommunicationService(clusterService, nodeService, parameterService, configurationService, symmetricDialect);
}

class AndroidNodeCommunicationService extends NodeCommunicationService {

public AndroidNodeCommunicationService(IClusterService clusterService, INodeService nodeService,
IParameterService parameterService, ISymmetricDialect symmetricDialect) {
super(clusterService, nodeService, parameterService, symmetricDialect);
IParameterService parameterService, IConfigurationService configurationService, ISymmetricDialect symmetricDialect) {
super(clusterService, nodeService, parameterService, configurationService, symmetricDialect);
}

@Override
public boolean execute(NodeCommunication nodeCommunication, RemoteNodeStatuses statuses,
INodeCommunicationExecutor executor) {

final RemoteNodeStatus status = statuses.add(nodeCommunication.getNodeId());
long ts = System.currentTimeMillis();
boolean failed = false;
Expand Down
Expand Up @@ -76,6 +76,15 @@ public RemoteNodeStatus add(String nodeId, String channelId) {
}
return status;
}

public RemoteNodeStatus add(String nodeId) {
RemoteNodeStatus status = null;
if (nodeId != null) {
status = new RemoteNodeStatus(nodeId, null, channels);
add(status);
}
return status;
}

public boolean isComplete() {
boolean complete = false;
Expand Down
Expand Up @@ -552,7 +552,8 @@ protected void testSimple(String dmlType, String[] values, String[] expectedValu
protected void load(ByteArrayOutputStream out) throws Exception {
ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
getTransportManager().setIncomingTransport(new InternalIncomingTransport(in));
getDataLoaderService().loadDataFromPull(client);
String channelId = null;
getDataLoaderService().loadDataFromPull(client, channelId);
}

protected IncomingBatch.Status findIncomingBatchStatus(int batchId, String nodeId) {
Expand Down

0 comments on commit d35512a

Please sign in to comment.