-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from FlowCI/develop
Develop
- Loading branch information
Showing
150 changed files
with
3,233 additions
and
1,460 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
81 changes: 0 additions & 81 deletions
81
core/src/main/java/com/flowci/core/agent/config/AgentConfig.java
This file was deleted.
Oops, something went wrong.
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
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
47 changes: 0 additions & 47 deletions
47
core/src/main/java/com/flowci/core/agent/dao/AgentIndexInitializer.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
core/src/main/java/com/flowci/core/agent/dao/CustomAgentDao.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,8 @@ | ||
package com.flowci.core.agent.dao; | ||
|
||
import com.flowci.core.agent.domain.Agent; | ||
|
||
public interface CustomAgentDao { | ||
|
||
long updateAllStatus(Agent.Status status); | ||
} |
20 changes: 20 additions & 0 deletions
20
core/src/main/java/com/flowci/core/agent/dao/CustomAgentDaoImpl.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,20 @@ | ||
package com.flowci.core.agent.dao; | ||
|
||
import com.flowci.core.agent.domain.Agent; | ||
import com.mongodb.client.result.UpdateResult; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.data.mongodb.core.MongoOperations; | ||
import org.springframework.data.mongodb.core.query.Query; | ||
import org.springframework.data.mongodb.core.query.Update; | ||
|
||
public class CustomAgentDaoImpl implements CustomAgentDao { | ||
|
||
@Autowired | ||
private MongoOperations operations; | ||
|
||
@Override | ||
public long updateAllStatus(Agent.Status status) { | ||
UpdateResult r = operations.updateMulti(new Query(), new Update().set("status", status), Agent.class); | ||
return r.getModifiedCount(); | ||
} | ||
} |
Oops, something went wrong.