-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
94 additions
and
2 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
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
55 changes: 55 additions & 0 deletions
55
src/main/java/io/seqera/tower/agent/exchange/InfoMessage.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,55 @@ | ||
/* | ||
* Copyright (c) 2021, Seqera Labs. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* This Source Code Form is "Incompatible With Secondary Licenses", as | ||
* defined by the Mozilla Public License, v. 2.0. | ||
*/ | ||
|
||
package io.seqera.tower.agent.exchange; | ||
|
||
import io.micronaut.core.annotation.ReflectiveAccess; | ||
|
||
/** | ||
* @author Jordi Deu-Pons <jordi@seqera.io> | ||
*/ | ||
@ReflectiveAccess | ||
public class InfoMessage extends AgentMessage { | ||
|
||
private String userName; | ||
private String workDir; | ||
private String agentVersion; | ||
|
||
public InfoMessage() { | ||
} | ||
|
||
public InfoMessage(String userName, String workDir, String agentVersion) { | ||
this.userName = userName; | ||
this.workDir = workDir; | ||
this.agentVersion = agentVersion; | ||
} | ||
|
||
public String getUserName() { | ||
return userName; | ||
} | ||
|
||
public String getWorkDir() { | ||
return workDir; | ||
} | ||
|
||
public String getAgentVersion() { | ||
return agentVersion; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "InfoMessage[" + | ||
"userName='" + userName + '\'' + | ||
"; workDir='" + workDir + '\'' + | ||
"; agentVersion='" + agentVersion + '\'' + | ||
']'; | ||
} | ||
} |