Examples of ITickManager


Examples of appeng.api.networking.ticking.ITickManager

  public ITickManager getTick() throws GridAccessException
  {
    IGrid grid = getGrid();
    if ( grid == null )
      throw new GridAccessException();
    ITickManager pg = grid.getCache( ITickManager.class );
    if ( pg == null )
      throw new GridAccessException();
    return pg;
  }
View Full Code Here

Examples of appeng.api.networking.ticking.ITickManager

  }

  @MENetworkEventSubscribe
  public void bootComplete(MENetworkBootingStatusChange bootStatus)
  {
    ITickManager tm = myGrid.getCache( ITickManager.class );
    for (PartP2PTunnel me : inputs.values())
    {
      if ( me instanceof PartP2PTunnelME )
        tm.wakeDevice( me.getGridNode() );
    }
  }
View Full Code Here

Examples of appeng.api.networking.ticking.ITickManager

  }

  @MENetworkEventSubscribe
  public void bootComplete(MENetworkPowerStatusChange power)
  {
    ITickManager tm = myGrid.getCache( ITickManager.class );
    for (PartP2PTunnel me : inputs.values())
    {
      if ( me instanceof PartP2PTunnelME )
        tm.wakeDevice( me.getGridNode() );
    }
  }
View Full Code Here

Examples of appeng.api.networking.ticking.ITickManager

    // update sleep state...
    if ( wasSleeping != (monitor == null) )
    {
      try
      {
        ITickManager tm = proxy.getTick();
        if ( monitor == null )
          tm.sleepDevice( proxy.getNode() );
        else
          tm.wakeDevice( proxy.getNode() );
      }
      catch (GridAccessException e)
      {
        // :(
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.