io.cattle.platform.eventing.annotation.EventHandler.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中io.cattle.platform.eventing.annotation.EventHandler.<init>()方法的一些代码示例,展示了EventHandler.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EventHandler.<init>()方法的具体详情如下:
包路径:io.cattle.platform.eventing.annotation.EventHandler
类名称:EventHandler
方法名:<init>

EventHandler.<init>介绍

暂无

代码示例

代码示例来源:origin: rancher/cattle

@EventHandler
public void stateChange(Event event);

代码示例来源:origin: rancher/cattle

@EventHandler
void pingReply(Ping ping);

代码示例来源:origin: rancher/cattle

@EventHandler
  void apiChange(Event event);
}

代码示例来源:origin: rancher/cattle

@EventHandler
void serviceUpdate(ConfigUpdate update);

代码示例来源:origin: rancher/cattle

@EventHandler
void serviceUpdate(ConfigUpdate update);

代码示例来源:origin: rancher/cattle

@EventHandler
void hostEndpointsUpdate(ConfigUpdate update);

代码示例来源:origin: rancher/cattle

@EventHandler
public void resourceProgress(Event event);

代码示例来源:origin: rancher/cattle

@EventHandler
void computeInstanceActivateReply(Event event);

代码示例来源:origin: rancher/cattle

@EventHandler
public void serviceEvent(Event event);

代码示例来源:origin: rancher/cattle

@EventHandler(name = EngineEvents.PROCESS_EXECUTE)
void processExecute(Event event);

代码示例来源:origin: rancher/cattle

@EventHandler
void executeTask(ExecuteTask event);

代码示例来源:origin: rancher/cattle

@EventHandler
public void apiChange(Event event);

代码示例来源:origin: rancher/cattle

@EventHandler
public void pingReply(Ping ping) {
  processPingReply(ping);
}

代码示例来源:origin: rancher/cattle

@EventHandler(name=IaasEvents.CLEAR_CACHE)
public void clearCache(Event event) {
  clear();
}

代码示例来源:origin: rancher/cattle

@EventHandler
public void stateChanged(Event event) {
  resourceChange(event);
}

代码示例来源:origin: rancher/cattle

@Override
@EventHandler(name=IaasEvents.INVALIDATE_INSTANCE_DATA_CACHE)
public void clearCacheInstanceData(Event event) {
  try {
    instanceData.invalidate(Long.parseLong(event.getResourceId()));
  } catch (NumberFormatException e) {
    log.error("Problem parsing instance id [{}]", event.getResourceId(), e);
  }
}

代码示例来源:origin: rancher/cattle

@EventHandler
public void resourceChange(Event event) {
  String key = key(event.getResourceType(), event.getResourceId());
  Object wait = waiters.get(key);
  if (wait != null) {
    synchronized (wait) {
      wait.notifyAll();
    }
  }
}

代码示例来源:origin: rancher/cattle

@EventHandler(lock = EventLock.class)
public void stackUpdate(ConfigUpdate update) {
  if (update.getResourceId() == null) {
    return;
  }
  final Client client = new Client(Stack.class, new Long(update.getResourceId()));
  reconcileForClient(update, client, new Callable<Boolean>() {
    @Override
    public Boolean call() throws IOException {
      return process(client.getResourceId());
    }
  });
}

代码示例来源:origin: rancher/cattle

@EventHandler
public void configUpdated(ConfigUpdated update) {
  if (update.getData() == null) {
    return;
  }
  Client client = new Client(update.getData().getClazz(), update.getData().getResourceId());
  String type = objectManager.getType(client.getResourceType());
  WorkItem item = new WorkItem(client, true, type, Long.toString(client.getResourceId()));
  requests.add(item);
}

代码示例来源:origin: rancher/cattle

@EventHandler
public void agentRequest(SimulatorRequest agentRequest) {
  Simulator simulator = cache.getUnchecked(agentRequest.getResourceId());
  Event event = agentRequest.getData();
  Event resp = simulator.execute(event);
  if (resp == null) {
    return;
  }
  EventVO<?> reply = EventVO.reply(agentRequest).withData(resp);
  EventUtils.copyTransitioning(resp, reply);
  if (reply.getName() == null) {
    return;
  }
  eventService.publish(reply);
}

相关文章

EventHandler类方法