congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IdGenerator.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.servicemix.id.IdGenerator
constructor

Best Java code snippets using org.apache.servicemix.id.IdGenerator.<init> (Showing top 5 results out of 315)

origin: org.apache.servicemix/servicemix-camel

protected String createEndpointName() {
  if (idGenerator == null) {
    idGenerator = new IdGenerator("camel");
  }
  return idGenerator.generateSanitizedId();
}
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

/**
 * Create a RemoteServiceMixClient
 * @param uri 
 * @param activationSpec 
 */
public RemoteServiceMixClient(String uri, ActivationSpec activationSpec) {
  container = new JBIContainer();
  container.setEmbedded(true);
  container.setUseMBeanServer(false);
  container.setName(new IdGenerator().generateSanitizedId());
  this.uri = uri;
  this.activationSpec = activationSpec;
}
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());
}
origin: org.apache.servicemix/servicemix-cxf-se

cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId());
if (isUseJBIWrapper()) {
  cf.setBindingId(org.apache.servicemix.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
org.apache.servicemix.idIdGenerator<init>

Javadoc

Construct an IdGenerator

Popular methods of IdGenerator

  • generateId
    Generate a unqiue id
  • generateSanitizedId
    Generate a unique ID - that is friendly for a URL or file system

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JTable (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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