Class Gateway

java.lang.Object
com.strongdm.api.Gateway
All Implemented Interfaces:
Node

public class Gateway extends Object implements Node
Gateway represents a StrongDM CLI installation running in gateway mode.
  • Constructor Details

    • Gateway

      public Gateway()
  • Method Details

    • getBindAddress

      public String getBindAddress()
      The hostname/port tuple which the gateway daemon will bind to. If not provided on create, set to "0.0.0.0:listen_address_port".
    • setBindAddress

      public void setBindAddress(String in)
      The hostname/port tuple which the gateway daemon will bind to. If not provided on create, set to "0.0.0.0:listen_address_port".
    • getDevice

      public String getDevice()
      Device is a read only device name uploaded by the gateway process when it comes online.
    • setDevice

      public void setDevice(String in)
      Device is a read only device name uploaded by the gateway process when it comes online.
    • getGatewayFilter

      public String getGatewayFilter()
      GatewayFilter can be used to restrict the peering between relays and gateways. Deprecated.
    • setGatewayFilter

      public void setGatewayFilter(String in)
      GatewayFilter can be used to restrict the peering between relays and gateways. Deprecated.
    • getId

      public String getId()
      Unique identifier of the Gateway.
      Specified by:
      getId in interface Node
    • setId

      public void setId(String in)
      Unique identifier of the Gateway.
    • getListenAddress

      public String getListenAddress()
      The public hostname/port tuple at which the gateway will be accessible to clients.
    • setListenAddress

      public void setListenAddress(String in)
      The public hostname/port tuple at which the gateway will be accessible to clients.
    • getLocation

      public String getLocation()
      Location is a read only network location uploaded by the gateway process when it comes online.
    • setLocation

      public void setLocation(String in)
      Location is a read only network location uploaded by the gateway process when it comes online.
    • getMaintenanceWindows

      public List<NodeMaintenanceWindow> getMaintenanceWindows()
      Maintenance Windows define when this node is allowed to restart. If a node is requested to restart, it will check each window to determine if any of them permit it to restart, and if any do, it will. This check is repeated per window until the restart is successfully completed. If not set here, may be set on the command line or via an environment variable on the process itself; any server setting will take precedence over local settings. This setting is ineffective for nodes below version 38.44.0. If this setting is not applied via this remote configuration or via local configuration, the default setting is used: always allow restarts if serving no connections, and allow a restart even if serving connections between 7-8 UTC, any day.
    • setMaintenanceWindows

      public void setMaintenanceWindows(List<NodeMaintenanceWindow> in)
      Maintenance Windows define when this node is allowed to restart. If a node is requested to restart, it will check each window to determine if any of them permit it to restart, and if any do, it will. This check is repeated per window until the restart is successfully completed. If not set here, may be set on the command line or via an environment variable on the process itself; any server setting will take precedence over local settings. This setting is ineffective for nodes below version 38.44.0. If this setting is not applied via this remote configuration or via local configuration, the default setting is used: always allow restarts if serving no connections, and allow a restart even if serving connections between 7-8 UTC, any day.
    • getName

      public String getName()
      Unique human-readable name of the Gateway. Node names must include only letters, numbers, and hyphens (no spaces, underscores, or other special characters). Generated if not provided on create.
      Specified by:
      getName in interface Node
    • setName

      public void setName(String in)
      Unique human-readable name of the Gateway. Node names must include only letters, numbers, and hyphens (no spaces, underscores, or other special characters). Generated if not provided on create.
      Specified by:
      setName in interface Node
    • getState

      public String getState()
      The current state of the gateway. One of: "new", "verifying_restart", "restarting", "started", "stopped", "dead", "unknown"
    • setState

      public void setState(String in)
      The current state of the gateway. One of: "new", "verifying_restart", "restarting", "started", "stopped", "dead", "unknown"
    • getTags

      public Map<String,String> getTags()
      Tags is a map of key, value pairs.
      Specified by:
      getTags in interface Node
    • setTags

      public void setTags(Map<String,String> in)
      Tags is a map of key, value pairs.
      Specified by:
      setTags in interface Node
    • getVersion

      public String getVersion()
      Version is a read only sdm binary version uploaded by the gateway process when it comes online.
    • setVersion

      public void setVersion(String in)
      Version is a read only sdm binary version uploaded by the gateway process when it comes online.