SPI
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.github.ltsopensource.core.spi.SPI(Showing top 15 results out of 315)

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 3/9/16.
 */
@SPI(key = ExtConfig.ACCESS_DB, dftValue = "mysql")
public interface MonitorAccessFactory {

  JobTrackerMAccess getJobTrackerMAccess(Config config);

  TaskTrackerMAccess getTaskTrackerMAccess(Config config);

  JVMGCAccess getJVMGCAccess(Config config);

  JVMMemoryAccess getJVMMemoryAccess(Config config);

  JVMThreadAccess getJVMThreadAccess(Config config);

  JobClientMAccess getJobClientMAccess(Config config);
}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 10/24/14.
 */
@SPI(key = ExtConfig.JDBC_DATASOURCE_PROVIDER, dftValue = "mysql")
public interface DataSourceProvider {

  DataSource getDataSource(Config config);

}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 10/24/14.
 */
@SPI(key = ExtConfig.JDBC_DATASOURCE_PROVIDER, dftValue = "mysql")
public interface DataSourceProvider {

  DataSource getDataSource(Config config);

}

origin: ltsopensource/light-task-scheduler

/**
 * Robert HG (254963746@qq.com) on 3/25/15.
 */
@SPI(key = ExtConfig.LOADBALANCE, dftValue = "random")
public interface LoadBalance {

  public <S> S select(List<S> shards, String seed);

}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 5/19/15.
 */
@SPI(key = ExtConfig.JOB_LOGGER, dftValue = "mysql")
public interface JobLoggerFactory {

  JobLogger getJobLogger(Config config);

}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 11/6/15.
 */
@SPI(key = ExtConfig.REMOTING, dftValue = "netty")
public interface RemotingTransporter {

  RemotingServer getRemotingServer(AppContext appContext, RemotingServerConfig remotingServerConfig);

  RemotingClient getRemotingClient(AppContext appContext, RemotingClientConfig remotingClientConfig);

}

origin: ltsopensource/light-task-scheduler

/**
 * Robert HG (254963746@qq.com) on 5/21/15.
 */
@SPI(key = ExtConfig.FAIL_STORE, dftValue = "leveldb")
public interface FailStoreFactory {

  public FailStore getFailStore(Config config, String storePath);

}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 5/19/15.
 */
@SPI(key = ExtConfig.JOB_LOGGER, dftValue = "mysql")
public interface JobLoggerFactory {

  JobLogger getJobLogger(Config config);

}

origin: ltsopensource/light-task-scheduler

/**
 * Robert HG (254963746@qq.com) on 5/21/15.
 */
@SPI(key = ExtConfig.FAIL_STORE, dftValue = "leveldb")
public interface FailStoreFactory {

  public FailStore getFailStore(Config config, String storePath);

}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 11/6/15.
 */
@SPI(key = ExtConfig.REMOTING_SERIALIZABLE_DFT, dftValue = "fastjson")
public interface RemotingSerializable {

  int getId();

  byte[] serialize(final Object obj) throws Exception;

  <T> T deserialize(final byte[] data, Class<T> clazz) throws Exception;
}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 11/6/15.
 */
@SPI(key = ExtConfig.REMOTING_SERIALIZABLE_DFT, dftValue = "fastjson")
public interface RemotingSerializable {

  int getId();

  byte[] serialize(final Object obj) throws Exception;

  <T> T deserialize(final byte[] data, Class<T> clazz) throws Exception;
}

origin: ltsopensource/light-task-scheduler

/**
 * Robert HG (254963746@qq.com) on 3/25/15.
 */
@SPI(key = ExtConfig.LOADBALANCE, dftValue = "random")
public interface LoadBalance {

  public <S> S select(List<S> shards, String seed);

}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 3/9/16.
 */
@SPI(key = ExtConfig.ACCESS_DB, dftValue = "mysql")
public interface MonitorAccessFactory {

  JobTrackerMAccess getJobTrackerMAccess(Config config);

  TaskTrackerMAccess getTaskTrackerMAccess(Config config);

  JVMGCAccess getJVMGCAccess(Config config);

  JVMMemoryAccess getJVMMemoryAccess(Config config);

  JVMThreadAccess getJVMThreadAccess(Config config);

  JobClientMAccess getJobClientMAccess(Config config);
}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 11/6/15.
 */
@SPI(key = ExtConfig.REMOTING, dftValue = "netty")
public interface RemotingTransporter {

  RemotingServer getRemotingServer(AppContext appContext, RemotingServerConfig remotingServerConfig);

  RemotingClient getRemotingClient(AppContext appContext, RemotingClientConfig remotingClientConfig);

}

origin: ltsopensource/light-task-scheduler

/**
 * @author Robert HG (254963746@qq.com) on 3/9/16.
 */
@SPI(key = ExtConfig.ACCESS_DB, dftValue = "mysql")
public interface BackendAccessFactory {

  BackendJobTrackerMAccess getJobTrackerMAccess(Config config);

  BackendJobClientMAccess getBackendJobClientMAccess(Config config);

  BackendJVMGCAccess getBackendJVMGCAccess(Config config);

  BackendJVMMemoryAccess getBackendJVMMemoryAccess(Config config);

  BackendJVMThreadAccess getBackendJVMThreadAccess(Config config);

  BackendNodeOnOfflineLogAccess getBackendNodeOnOfflineLogAccess(Config config);

  BackendTaskTrackerMAccess getBackendTaskTrackerMAccess(Config config);
}

com.github.ltsopensource.core.spiSPI

Most used methods

  • <init>
  • dftValue
  • key

Popular classes and methods

  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JFrame (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)