org.apache.mesos.Protos.SlaveInfo Java Examples

The following examples show how to use org.apache.mesos.Protos.SlaveInfo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: REEFExecutor.java    From reef with Apache License 2.0 5 votes vote down vote up
@Override
public void registered(final ExecutorDriver driver,
                       final ExecutorInfo executorInfo,
                       final FrameworkInfo frameworkInfo,
                       final SlaveInfo slaveInfo) {
  LOG.log(Level.FINEST, "Executor registered. driver: {0} executorInfo: {1} frameworkInfo: {2} slaveInfo {3}",
      new Object[]{driver, executorInfo, frameworkInfo, slaveInfo});
}
 
Example #2
Source File: MesosSupervisor.java    From storm with Apache License 2.0 5 votes vote down vote up
@Override
public void registered(ExecutorDriver driver, ExecutorInfo executorInfo, FrameworkInfo frameworkInfo, SlaveInfo slaveInfo) {
  LOG.info("Received executor data <{}>", executorInfo.getData().toStringUtf8());
  Map ids = (Map) JSONValue.parse(executorInfo.getData().toStringUtf8());
  _executorId = executorInfo.getExecutorId().getValue();
  _supervisorId = (String) ids.get(MesosCommon.SUPERVISOR_ID);
  _assignmentId = (String) ids.get(MesosCommon.ASSIGNMENT_ID);
  LOG.info("Registered supervisor with Mesos: {}, {} ", _supervisorId, _assignmentId);

  // Completed registration, let anything waiting for us to do so continue
  _registeredLatch.countDown();
}
 
Example #3
Source File: ResourceExecutor.java    From oodt with Apache License 2.0 5 votes vote down vote up
@Override
public void registered(ExecutorDriver arg0, ExecutorInfo arg1,
        FrameworkInfo arg2, SlaveInfo arg3) {
    System.out.println("Do-Wah-Do-Wah");
    str.println(id+"Registered, Huzzah!");

}
 
Example #4
Source File: MesosExecutorCallbackHandler.java    From mantis with Apache License 2.0 4 votes vote down vote up
@Override
public void registered(ExecutorDriver arg0, ExecutorInfo arg1,
                       FrameworkInfo arg2, SlaveInfo arg3) {
    // TODO Auto-generated method stub

}
 
Example #5
Source File: MesosExecutorCallbackHandler.java    From mantis with Apache License 2.0 4 votes vote down vote up
@Override
public void reregistered(ExecutorDriver arg0, SlaveInfo arg1) {
    // TODO Auto-generated method stub

}
 
Example #6
Source File: MyriadExecutor.java    From incubator-myriad with Apache License 2.0 4 votes vote down vote up
@Override
public void registered(ExecutorDriver driver, ExecutorInfo executorInfo, FrameworkInfo frameworkInfo, SlaveInfo slaveInfo) {
  LOGGER.debug("Registered ", executorInfo, " for framework ", frameworkInfo, " on mesos slave ", slaveInfo);
}
 
Example #7
Source File: MyriadExecutor.java    From incubator-myriad with Apache License 2.0 4 votes vote down vote up
@Override
public void reregistered(ExecutorDriver driver, SlaveInfo slaveInfo) {
  LOGGER.debug("ReRegistered");
}
 
Example #8
Source File: REEFExecutor.java    From reef with Apache License 2.0 4 votes vote down vote up
@Override
public void reregistered(final ExecutorDriver driver, final SlaveInfo slaveInfo) {
  LOG.log(Level.FINEST, "Executor reregistered. driver: {0}", driver);
}
 
Example #9
Source File: MesosSupervisor.java    From storm with Apache License 2.0 4 votes vote down vote up
@Override
public void reregistered(ExecutorDriver driver, SlaveInfo slaveInfo) {
  LOG.info("executor has reregistered with the mesos-slave");
}
 
Example #10
Source File: ResourceExecutor.java    From oodt with Apache License 2.0 4 votes vote down vote up
@Override
public void reregistered(ExecutorDriver arg0, SlaveInfo arg1) {
    System.out.println("Do-Wah-Do-Wah GO GO GO!!!!");
    str.println(id+"Re-regged");
}
 
Example #11
Source File: BdsMesosExecutor.java    From BigDataScript with Apache License 2.0 4 votes vote down vote up
/**
 * Invoked when the executor re-registers with a restarted slave.
 */
@Override
public void reregistered(ExecutorDriver driver, SlaveInfo slaveInfo) {
	if (debug) Gpr.debug("Executor: Re-Registered on " + slaveInfo.getHostname());
}
 
Example #12
Source File: BdsMesosExecutor.java    From BigDataScript with Apache License 2.0 2 votes vote down vote up
/**
 * Invoked once the executor driver has been able to successfully
 * connect with Mesos. In particular, a scheduler can pass some
 * data to it's executors through the FrameworkInfo.ExecutorInfo's
 * data field.
 */
@Override
public void registered(ExecutorDriver driver, ExecutorInfo executorInfo, FrameworkInfo frameworkInfo, SlaveInfo slaveInfo) {
	if (debug) Gpr.debug("Executor: Registered on " + slaveInfo.getHostname());
}