Lines Matching refs:state
157 private State state = State.INIT;
177 // this consumer is running (to ensure valid state).
199 // 5. The worker thread updates the state member to STOPPED and
202 // state has been updated to STOPPED and that listeners have
204 // to ensure valid state and in case the caller of stop() is
290 if (state == State.CLOSED) {
293 if (state != State.INIT) {
307 state = State.OPEN;
322 switch (state) {
374 state = State.COMPILED;
414 state = State.COMPILED;
440 switch (state) {
464 // the enabled state.
475 if (state == State.CLOSED) {
483 assert ((state != State.INIT) && (state != State.OPEN));
520 switch (state) {
545 switch (state) {
568 return ((state != State.INIT) && (state != State.CLOSED));
574 if (state != State.COMPILED) {
584 return (state == State.STARTED);
590 return (state == State.CLOSED);
604 if (state != State.GO) {
612 state = State.STARTED;
638 if (state == State.STOPPED || state == State.CLOSED) {
647 // state to STOPPED.
650 state = State.STOPPED;
734 switch (state) {
754 throw new IllegalArgumentException("unknown state: " + state);
761 state = State.GO;
780 switch (state) {
791 state = State.STOPPED;
826 throw new IllegalArgumentException("unknown state: " +
827 state);
872 if ((state != State.INIT) && (state != State.CLOSED)) {
889 if ((state == State.INIT) || (state == State.CLOSED)) {
890 state = State.CLOSED;
898 // ignore (we don't have synchronized state access because
904 if (state != State.CLOSED) {
909 state = State.CLOSED;
995 switch (state) {
1013 switch (state) {