Tabnine Logo
StateMachine$FsmImpl.getFsmId
Code IndexAdd Tabnine to your IDE (free)

How to use
getFsmId
method
in
org.apache.statemachine.StateMachine$FsmImpl

Best Java code snippets using org.apache.statemachine.StateMachine$FsmImpl.getFsmId (Showing top 8 results out of 315)

origin: org.apache.omid/omid-statemachine

@Override
public void deferEvent(DeferrableEvent e) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: deferred {}@{}",
         getFsmId(), e.getClass().getSimpleName(), System.identityHashCode(e));
  }
  deferred.add(e);
}
origin: org.apache.omid/statemachine

@Override
public void deferEvent(DeferrableEvent e) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: deferred {}@{}",
         getFsmId(), e.getClass().getSimpleName(), System.identityHashCode(e));
  }
  deferred.add(e);
}
origin: org.apache.omid/statemachine

  @Override
  protected void finalize() throws Throwable {
    super.finalize();
    LOG.debug("FSM-{}: Finalizing", getFsmId());
  }
}
origin: org.apache.omid/statemachine

boolean processEvent(Event e) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: Received event {}@{} in state {}@{}",
         getFsmId(), e.getClass().getSimpleName(),
         System.identityHashCode(e),
         state.getClass().getSimpleName(),
         System.identityHashCode(state));
  }
  try {
    State newState = state.dispatch(e);
    if (newState != state) {
      setState(state, newState);
      return true;
    }
  } catch (Throwable t) {
    LOG.error("Caught throwable while handling event", t);
    errorDeferredEvents(t);
  }
  return false;
}
origin: org.apache.omid/omid-statemachine

boolean processEvent(Event e) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: Received event {}@{} in state {}@{}",
         getFsmId(), e.getClass().getSimpleName(),
         System.identityHashCode(e),
         state.getClass().getSimpleName(),
         System.identityHashCode(state));
  }
  try {
    State newState = state.dispatch(e);
    if (newState != state) {
      setState(state, newState);
      return true;
    }
  } catch (Throwable t) {
    LOG.error("Caught throwable while handling event", t);
    errorDeferredEvents(t);
  }
  return false;
}
origin: org.apache.omid/statemachine

void setState(final State curState, final State newState) {
  if (curState != state) {
    LOG.error("FSM-{}: Tried to transition from {} to {}, but current state is {}",
         getFsmId(), state, newState, curState);
    throw new IllegalArgumentException();
  }
  state = newState;
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: State transition {} -> {}", getFsmId(), curState, newState);
  }
}
origin: org.apache.omid/omid-statemachine

void setState(final State curState, final State newState) {
  if (curState != state) {
    LOG.error("FSM-{}: Tried to transition from {} to {}, but current state is {}",
         getFsmId(), state, newState, curState);
    throw new IllegalArgumentException();
  }
  state = newState;
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: State transition {} -> {}", getFsmId(), curState, newState);
  }
}
origin: org.apache.omid/omid-statemachine

  @Override
  protected void finalize() throws Throwable {
    super.finalize();
    LOG.debug("FSM-{}: Finalizing", getFsmId());
  }
}
org.apache.statemachineStateMachine$FsmImplgetFsmId

Popular methods of StateMachine$FsmImpl

  • <init>
  • errorDeferredEvents
  • processEvent
  • setState

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • String (java.lang)
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now