Tabnine Logo
IdGenerator.generateId
Code IndexAdd Tabnine to your IDE (free)

How to use
generateId
method
in
org.apache.servicemix.id.IdGenerator

Best Java code snippets using org.apache.servicemix.id.IdGenerator.generateId (Showing top 7 results out of 315)

origin: org.apache.servicemix/servicemix-core

/**
 * Factory method to create a new component ID if none is specified
 *
 * @return uniqueId
 */
protected String createComponentID() {
  return idGenerator.generateId();
}
origin: org.apache.servicemix/servicemix-core

protected String getExchangeId() {
  return idGenerator.generateId();
}
origin: org.apache.servicemix/servicemix-services

/**
 * Generate a unique ID - that is friendly for a URL or file system
 * 
 * @return a unique id
 */
public String generateSanitizedId() {
  String result = generateId();
  result = result.replace(':', '-');
  result = result.replace('_', '-');
  result = result.replace('.', '-');
  return result;
}
origin: org.apache.servicemix/servicemix-services

public String store(Object data) throws IOException {
  String id = idGenerator.generateId();
  store(id, data);
  return id;
}
origin: org.apache.servicemix/servicemix-services

public String store(Object data) throws IOException {
  String id = factory.getIdGenerator().generateId();
  store(id, data);
  return id;
}
origin: org.apache.servicemix/servicemix-camel

public CamelConsumerEndpoint(JbiBinding binding, JbiEndpoint jbiEndpoint) {
  setService(SERVICE_NAME);
  setEndpoint(new IdGenerator().generateId());
  this.binding = binding;
  this.jbiEndpoint = jbiEndpoint;
}
origin: org.apache.servicemix/servicemix-core

public void resendExchange(MessageExchange exchange) throws JBIException {
  if (!(exchange instanceof MessageExchangeImpl)) {
    throw new IllegalArgumentException("exchange should be a MessageExchangeImpl");
  }
  MessageExchangeImpl me = (MessageExchangeImpl) exchange;
  me.getPacket().setExchangeId(new IdGenerator().generateId());
  me.getPacket().setOut(null);
  me.getPacket().setFault(null);
  me.getPacket().setError(null);
  me.getPacket().setStatus(ExchangeStatus.ACTIVE);
  me.getPacket().setProperty(JbiConstants.DATESTAMP_PROPERTY_NAME, Calendar.getInstance());
  ExchangeListener[] l = (ExchangeListener[]) listeners.getListeners(ExchangeListener.class);
  ExchangeEvent event = new ExchangeEvent(me, ExchangeEvent.EXCHANGE_SENT);
  for (int i = 0; i < l.length; i++) {
    try {
      l[i].exchangeSent(event);
    } catch (Exception e) {
      LOGGER.warn("Error calling listener: {}", e.getMessage(), e);
    }
  }
  me.handleSend(false);
  sendExchange(me.getMirror());
}
org.apache.servicemix.idIdGeneratorgenerateId

Javadoc

Generate a unqiue id

Popular methods of IdGenerator

  • <init>
    Construct an IdGenerator
  • generateSanitizedId
    Generate a unique ID - that is friendly for a URL or file system

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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