Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose Data and DataEvent creation from DataService
- Loading branch information
Showing
7 changed files
with
154 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
symmetric/src/main/java/org/jumpmind/symmetric/model/DataEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package org.jumpmind.symmetric.model; | ||
|
||
public class DataEvent { | ||
|
||
private long dataId; | ||
|
||
private String nodeId; | ||
|
||
private Long batchId; | ||
|
||
public DataEvent() { | ||
} | ||
|
||
public DataEvent(long dataId, String nodeId) { | ||
this.dataId = dataId; | ||
this.nodeId = nodeId; | ||
} | ||
|
||
public Long getBatchId() { | ||
return batchId; | ||
} | ||
|
||
public void setBatchId(Long batchId) { | ||
this.batchId = batchId; | ||
} | ||
|
||
public long getDataId() { | ||
return dataId; | ||
} | ||
|
||
public void setDataId(long dataId) { | ||
this.dataId = dataId; | ||
} | ||
|
||
public String getNodeId() { | ||
return nodeId; | ||
} | ||
|
||
public void setNodeId(String nodeId) { | ||
this.nodeId = nodeId; | ||
} | ||
|
||
} |
10 changes: 9 additions & 1 deletion
10
symmetric/src/main/java/org/jumpmind/symmetric/service/IDataService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
package org.jumpmind.symmetric.service; | ||
|
||
import org.jumpmind.symmetric.model.Data; | ||
import org.jumpmind.symmetric.model.DataEvent; | ||
import org.jumpmind.symmetric.model.Node; | ||
import org.jumpmind.symmetric.model.Trigger; | ||
|
||
public interface IDataService { | ||
|
||
public void reloadNode(String nodeId); | ||
public String reloadNode(String nodeId); | ||
|
||
public void createReloadEvent(final Node targetNode, final Trigger trigger); | ||
|
||
public void createHeartbeatEvent(Node node); | ||
|
||
public long createData(final Data data); | ||
|
||
public void createDataEvent(DataEvent dataEvent); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.