Sha256: a59297e904408996a5f0e52193c1795e9bb4a09c4a84831c96afb527b650944a

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

package org.embulk.executor.remoteserver;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.net.InetSocketAddress;

class Host {
    private String name;
    private int port;

    @JsonCreator
    Host(@JsonProperty("name") String name,
         @JsonProperty("port") int port) {
        this.name = name;
        this.port = port;
    }

    @JsonProperty
    String getName() {
        return name;
    }

    @JsonProperty
    int getPort() {
        return port;
    }

    InetSocketAddress toAddress() {
        return new InetSocketAddress(name, port);
    }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embulk-executor-remoteserver-0.1.1 src/main/java/org/embulk/executor/remoteserver/Host.java
embulk-executor-remoteserver-0.1.0 src/main/java/org/embulk/executor/remoteserver/Host.java