Retrieve a single slave by ID

@param slaveId
The slave ID to search for
@return
A {@link SingularitySlave}
194865
public Optional<SingularitySlave> getSlave(String slaveId) {
    final Function<String, String> requestUri = (host) -> String.format(SLAVE_DETAIL_FORMAT, getApiBase(host), slaveId);

    return getSingle(requestUri, "slave", slaveId, SingularitySlave.class);
  }
1271489
@Deprecated
    public Slave getSlave(String name) {
        Node n = getNode(name);
        if (n instanceof Slave)
            return (Slave)n;
        return null;
    }
74297
def write_single_coil(slave_id, address, value):
    
    function = WriteSingleCoil()
    function.address = address
    function.value = value

    return _create_request_adu(slave_id, function.request_pdu)
971253
public ServerMember getRemoteMember(int id) {
    MemberState member = membersMap.get(id);
    return member != null ? member.getMember() : null;
  }
717214
public Optional<LinkedResource> getById(String id)
  {
    return Optional.fromNullable(resourcesById.get(id));
  }
1122599
public Optional<DTO> get(String id) {
        return Optional.ofNullable(db.findOneById(new ObjectId(id)));
    }
72808
private synchronized VortexFutureDelegate fetchDelegate(final List<Integer> taskletIds) {
    VortexFutureDelegate delegate = null;
    for (final int taskletId : taskletIds) {
      final VortexFutureDelegate currDelegate = taskletFutureMap.remove(taskletId);
      if (currDelegate == null) {
        // TODO[JIRA REEF-500]: Consider duplicate tasklets.
        throw new RuntimeException("Tasklet should only be removed once.");
      }

      if (delegate == null) {
        delegate = currDelegate;
      } else {
        assert delegate == currDelegate;
      }
    }

    return delegate;
  }
1160130
private function querySlaveTable($slaveTable, $slaveColumnId, $value)
    {
        return $this->db->select('*')
                        ->from($slaveTable)
                        ->whereEquals($slaveColumnId, $value)
                        ->getStmt()
                        ->fetchAll();
    }
750175
public static CmsRole valueOfId(CmsUUID roleId) {

        Iterator<CmsRole> it = SYSTEM_ROLES.iterator();
        while (it.hasNext()) {
            CmsRole role = it.next();
            if (roleId.equals(role.getId())) {
                return role;
            }
        }
        return null;
    }
894521
def slaveof(self, host=None, port=None):
        
        if host is None and port is None:
            return self.execute_command('SLAVEOF', Token.get_token('NO'),
                                        Token.get_token('ONE'))
        return self.execute_command('SLAVEOF', host, port)
1180606
public Resource<?> getObject(final int id) {
        return ObjectCache.from(WaylandServerCore.INSTANCE()
                                                 .wl_client_get_object(this.pointer,
                                                                       id));
    }
223405
public Optional<SingularityRequestWithState> getSingularityRequestSimple(String requestId) {
    final Function<String, String> singularityApiRequestUri = (host) -> String.format(REQUEST_GET_SIMPLE_FORMAT, getApiBase(host), requestId);

    return getSingle(singularityApiRequestUri, "request-simple", requestId, SingularityRequestWithState.class);
  }
796173
public Optional<SingularityTaskState> getTaskState(String taskId) {
    final Function<String, String> requestUri = (host) -> String.format(TRACK_BY_TASK_ID_FORMAT, getApiBase(host), taskId);
    return getSingle(requestUri, "track by task id", taskId, SingularityTaskState.class);
  }
265334
def with_slave(uid, &block)
      slave = get_slave(uid, @io)
      slave.debug = debug
      slave.raise_exception_on_mismatch = raise_exception_on_mismatch
      slave.read_retries = read_retries
      slave.read_retry_timeout = read_retry_timeout
      if block_given?
        yield slave
      else
        slave
      end
    end
1126730
@Nullable
  public ISessionScope getSessionScopeOfID (@Nullable final String sScopeID)
  {
    if (StringHelper.hasNoText (sScopeID))
      return null;

    return m_aRWLock.readLocked ( () -> m_aSessionScopes.get (sScopeID));
  }
1257002
public CMASpace fetchOne(String spaceId) {
    assertNotNull(spaceId, "spaceId");
    return service.fetchOne(spaceId).blockingFirst();
  }
1037372
public static vrid6 get(nitro_service service, Long id) throws Exception{
		vrid6 obj = new vrid6();
		obj.set_id(id);
		vrid6 response = (vrid6) obj.get_resource(service);
		return response;
	}