Skip to content

Comsat testing#15

Closed
ekrylovich wants to merge 12 commits intodevelopfrom
comsat_testing
Closed

Comsat testing#15
ekrylovich wants to merge 12 commits intodevelopfrom
comsat_testing

Conversation

@ekrylovich
Copy link
Copy Markdown
Contributor

No description provided.


private boolean comparePortMapping(List<PortMapping> elementPorts, Map<ExposedPort, Ports.Binding[]> portBindings) {
private boolean isPortMappingListsEqual(List<PortMapping> elementPorts, List<PortMapping> containerPorts) {
return elementPorts.size() == containerPorts.size()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

equal?

}
ElementStatus status = docker.getElementStatus(container.getId());
if (status.getStatus() == ElementState.REMOVED) {
latestElements.remove(element);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverse engineering

if (containerState != null) {
if (containerState.getStartedAt() != null) {
result.setStartTime(getStartedTime(containerState.getStartedAt()));
ContainerState status = inspectInfo.getState();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe rename to containerState

* @param containerId - id of {@link Element}
* @return boolean true if exists and false in other case
*/
public boolean hasContainerWithContainerId(String containerId) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it still used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems yes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look it more deeply

long containerStartedAt = docker.getContainerStartedAt(container.getId());
if (!running || elementLastModified > containerStartedAt || !docker.isElementAndContainerEquals(container.getId(), element)) {
addTask(new ContainerTask(UPDATE, element.getElementId()));
if (status.getStatus() != ElementState.REMOVED) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status.getStatus

};

private boolean shouldContainerBeUpdated(ElementStatus status, String containerId, Element element) {
boolean isNotRunning = !(ElementState.RUNNING == status.getStatus());
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status

@epankou epankou closed this Apr 20, 2018
@epankou epankou deleted the comsat_testing branch April 27, 2018 11:25
dbusel pushed a commit that referenced this pull request May 8, 2018
send system info from HAL to Controller
emirhandurmus added a commit to Datasance/iofog-agent that referenced this pull request Mar 24, 2026
agent directory and file permissions fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants