Gets state of DDP connection (including login info which isn't part of DDPClient state)
@return DDP connection state
774139
public DDPSTATE getState() {
        // used by the UI to figure out what the current DDP connection state is
        if (getDDP().getState() == CONNSTATE.Closed) {
            mDDPState = DDPSTATE.Closed;
        }
        return mDDPState;
    }
1305113
public SubscriberState asState() {
        return SubscriberState.builder()
                        .parameterUpdaterStatus(parameterServerListener == null ? Collections.emptyMap()
                                        : parameterServerListener.getUpdater().status())
                        .isMaster(isMaster())
                        .connectionInfo(isMaster() ? masterConnectionInfo().toString()
                                        : slaveConnectionInfo().toString())
                        .isAsync(parameterServerListener.getUpdater().isAsync())
                        .isReady(parameterServerListener.getUpdater().isReady())
                        .totalUpdates(getResponder().getNdArrayHolder().totalUpdates()).streamId(streamId)
                        .serverState(subscriberLaunched() ? ServerState.STARTED.name().toLowerCase()
                                        : ServerState.STOPPED.name().toLowerCase())
                        .build();
    }
926008
def __getJoinerState(self):
        
        maxDuration = 150  # seconds
        t_end = time.time() + maxDuration
        while time.time() < t_end:
            joinerState = self.__stripValue(self.__sendCommand('sudo wpanctl getprop -v NCP:State')[0])
            if joinerState == 'offline:commissioned':
                return True
            elif joinerState == 'associating:credentials-needed':
                return False
            else:
                time.sleep(5)
                continue
        return False
561068
public static State getStateImpl() {
        State s = null;
        try {
             DiscoverClass dc = new DiscoverClass();
             s = (State) dc.newInstance(
             State.class,
             State.DEFAULT_STATE_IMPL);
        } catch (Exception ex) {
             // ignore as default implementation will be used.
        }
        return s;
    }
832567
@Override
    public PowerState getState() {
        if(pin.isState(onState))
            return PowerState.ON;
        else if(pin.isState(offState))
            return PowerState.OFF;
        else
            return PowerState.UNKNOWN;
    }
1130877
public SICoreConnection getSICoreConnection()
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSICoreConnection");
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getSICoreConnection", siCoreConnection);
      return siCoreConnection;
   }
1046260
public String getSQLState()
    {
        String state = null;
        try {
            state = new String(m_sqlState, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
        return state;
    }
464936
def _get_connection(self):
        
        if self._connection is None:
            uri = self.settings.SERVER_URI
            if callable(uri):
                uri = uri()

            self._connection = self.backend.ldap.initialize(uri)

            for opt, value in self.settings.CONNECTION_OPTIONS.items():
                self._connection.set_option(opt, value)

            if self.settings.START_TLS:
                logger.debug("Initiating TLS")
                self._connection.start_tls_s()

        return self._connection
979214
public String getStatusString()
	{
		switch (status) {
		case ErrorCodes.NO_ERROR:
			return "connection state is normal";
		case ErrorCodes.CONNECTION_ID:
			return "server could not find active data connection with specified ID";
		case ErrorCodes.DATA_CONNECTION:
			return "server detected error concerning the data connection";
		case ErrorCodes.KNX_CONNECTION:
			return "server detected error concerning the KNX bus/subsystem connection";
		default:
			return "unknown status";
		}
	}
66616
public function getState()
    {
        $node = $this->response->getFirst('contact:addr/contact:sp', $this->node);
        if ($node === null) {
            return null;
        }

        return $node->nodeValue;
    }
635113
public String getState()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getState");

    //The only valid states in the SourceStream are Uncommitted,
    //Value and Completed so all tick ranges will be in one of
    //these states
    TickRange range = getTickRange();
    
    long firstSendPending = RangeList.INFINITY;
    if(_stream instanceof SourceStream)
      firstSendPending = ((SourceStream)_stream).getFirstMsgOutsideWindow();
  
    //we're actually only interested in Uncommitted and Value
    //Uncommitted maps to COMMITTING
    //Value before the in-doubt cursor are PENDING_ACK
    //Value after the in-doubt cursor are PENDING_SEND
    State state = State.COMPLETE;
    if(range.type == TickRange.Uncommitted)
      state = State.COMMITTING;
    else if(range.type == TickRange.Value && _tick < firstSendPending)
      state = State.PENDING_ACKNOWLEDGEMENT;
    else if(range.type == TickRange.Value && _tick >= firstSendPending)
      state = State.PENDING_SEND;
      
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getState", state);

    return state.toString();
  }
360595
@Nonnull
    public InstallState getInstallState() {
        if (installState != null) {
            installStateName = installState.name();
            installState = null;
        }
        InstallState is = installStateName != null ? InstallState.valueOf(installStateName) : InstallState.UNKNOWN;
        return is != null ? is : InstallState.UNKNOWN;
    }
465163
@Override
    public RelayState getState() {
        if(pin.isState(openState))
            return RelayState.OPEN;
        else
            return RelayState.CLOSED;
    }
1007380
public java.lang.String getState() {
    java.lang.Object ref = state_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        state_ = s;
      }
      return s;
    }
  }
938186
public String getState() throws SIMPException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getState");

    assertValidControllable();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getState", State.AWAITING_DELIVERY);
    return State.AWAITING_DELIVERY;
  }
523842
@Override
    public SICoreConnection getSICoreConnection() throws IllegalStateException {

        if (connectionClosed) {
            throw new IllegalStateException(NLS.getFormattedMessage(
                                                                    ("ILLEGAL_STATE_CWSJR1086"),
                                                                    new Object[] { "getSICoreConnection" }, null));
        }
        return _coreConnection;

    }
383629
public StreamState getStreamState()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getStreamState");
    StreamState returnState = _sourceStream.getStreamState();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getStreamState", returnState);
    return returnState;
  }