Tabnine Logo
DiscoveryException.errorSendingAnnouncement
Code IndexAdd Tabnine to your IDE (free)

How to use
errorSendingAnnouncement
method
in
org.eclipse.persistence.exceptions.DiscoveryException

Best Java code snippets using org.eclipse.persistence.exceptions.DiscoveryException.errorSendingAnnouncement (Showing top 3 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Send out an announcement that we are here.
 */
public void announceSession() {
  rcm.logDebug("sending_announcement", (Object[])null);
  ServiceAnnouncement outMsg = new ServiceAnnouncement(rcm.getServiceId());
  byte[] outBytes = outMsg.toBytes();
  try {
    // Create a packet to send and send it out to everyone listening
    DatagramPacket sendPacket = new DatagramPacket(outBytes, outBytes.length, InetAddress.getByName(multicastGroupAddress), multicastPort);
    getCommunicationSocket().send(sendPacket);
    Object[] args = null;
    rcm.logInfo("announcement_sent", args);
  } catch (Exception ex) {
    // We got an exception. Map it to an RCM exception and call the handler
    DiscoveryException discoveryEx = DiscoveryException.errorSendingAnnouncement(ex);
    rcm.handleException(discoveryEx);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Send out an announcement that we are here.
 */
public void announceSession() {
  rcm.logDebug("sending_announcement", (Object[])null);
  ServiceAnnouncement outMsg = new ServiceAnnouncement(rcm.getServiceId());
  byte[] outBytes = outMsg.toBytes();
  try {
    // Create a packet to send and send it out to everyone listening
    DatagramPacket sendPacket = new DatagramPacket(outBytes, outBytes.length, InetAddress.getByName(multicastGroupAddress), multicastPort);
    getCommunicationSocket().send(sendPacket);
    Object[] args = null;
    rcm.logInfo("announcement_sent", args);
  } catch (Exception ex) {
    // We got an exception. Map it to an RCM exception and call the handler
    DiscoveryException discoveryEx = DiscoveryException.errorSendingAnnouncement(ex);
    rcm.handleException(discoveryEx);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Send out an announcement that we are here.
 */
public void announceSession() {
  rcm.logDebug("sending_announcement", (Object[])null);
  ServiceAnnouncement outMsg = new ServiceAnnouncement(rcm.getServiceId());
  byte[] outBytes = outMsg.toBytes();
  try {
    // Create a packet to send and send it out to everyone listening
    DatagramPacket sendPacket = new DatagramPacket(outBytes, outBytes.length, InetAddress.getByName(multicastGroupAddress), multicastPort);
    getCommunicationSocket().send(sendPacket);
    Object[] args = null;
    rcm.logInfo("announcement_sent", args);
  } catch (Exception ex) {
    // We got an exception. Map it to an RCM exception and call the handler
    DiscoveryException discoveryEx = DiscoveryException.errorSendingAnnouncement(ex);
    rcm.handleException(discoveryEx);
  }
}
org.eclipse.persistence.exceptionsDiscoveryExceptionerrorSendingAnnouncement

Popular methods of DiscoveryException

  • <init>
  • errorJoiningMulticastGroup
  • errorReceivingAnnouncement
  • setErrorCode
  • setInternalException

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top PhpStorm 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