Tabnine Logo
Serialized
Code IndexAdd Tabnine to your IDE (free)

How to use
Serialized
in
ca.eandb.util.rmi

Best Java code snippets using ca.eandb.util.rmi.Serialized (Showing top 4 results out of 315)

origin: ca.eandb.jdcp/jdcp-core

/**
 * Initializes the task description.
 * @param jobId The <code>UUID</code> of the job that the task is for.
 * @param taskId The ID of the task to be performed.
 * @param task An <code>Object</code> describing the task to be performed.
 *     This should be passed to <code>TaskWorker.performTask</code>.
 * @see TaskWorker#performTask(Object, ca.eandb.util.progress.ProgressMonitor)
 */
public TaskDescription(UUID jobId, int taskId, Object task) {
 this.jobId = jobId;
 this.taskId = taskId;
 this.task = new Serialized<Object>(task);
}
origin: ca.eandb.util/eandb-util

/**
 * Returns the deserialized object.
 * @param deserialize A value indicating whether the object should be
 *     deserialized if it is not already.
 * @return The deserialized object.
 * @throws ClassNotFoundException If a required class could not be found
 *     during deserialization.
 * @throws IllegalStateException If the object has not been deserialized
 *     and <code>deserialize</code> is false.
 */
public T get(boolean deserialize) throws ClassNotFoundException {
 if (!isDeserialized()) {
  if (deserialize) {
   deserialize();
  } else {
   throw new IllegalStateException("Object not deserialized.");
  }
 }
 return object;
}
origin: ca.eandb.util/eandb-util

/**
 * Returns the deserialized object.
 * @return The deserialized object.
 * @throws IllegalStateException If the object has not been deserialized.
 */
public T get() {
 if (!isDeserialized()) {
  throw new IllegalStateException("Object not deserialized.");
 }
 return object;
}
origin: ca.eandb.jdcp/jdcp-core

/**
 * Submits a job to a server for processing.
 * @param job The <code>ParallelizableJob</code> to be processed.
 * @param description A description of the job.
 * @param host The host name of the server to send the job to.
 * @param username The user name to use to authenticate with the server.
 * @param password The password to use to authenticate with the server.
 * @return The <code>UUID</code> assigned to the job.
 * @throws SecurityException If the user does not have access to perform
 *     the requested action on the server.
 * @throws RemoteException If a failure occurs in attempting to communicate
 *     with the server.
 * @throws ClassNotFoundException If deserialization of the job at the
 *     server requires a class that could not be found on the server.
 * @throws JobExecutionException If the submitted job threw an exception at
 *     the server during initialization.
 * @throws LoginException If the login attempt fails.
 * @throws NotBoundException If the <code>AuthenticationService</code>
 *     could not be found at the server.
 * @throws ProtocolVersionException If this client is incompatible with the
 *     server.
 */
public static UUID submitJob(ParallelizableJob job, String description,
  String host, String username, String password)
  throws SecurityException, RemoteException, ClassNotFoundException,
  JobExecutionException, LoginException, NotBoundException, ProtocolVersionException {
 Serialized<ParallelizableJob> payload = new Serialized<ParallelizableJob>(job);
 JobService service = connect(host, username, password);
 return service.submitJob(payload, description);
}
ca.eandb.util.rmiSerialized

Javadoc

Represents an object that is serialized. When constructed using the constructor, the object remains deserialized. However, when constructed by deserialization, it remains in a serialized state until explicitly asked to deserialize (via the #deserialize() method).

Most used methods

  • <init>
    Initializes the Serialized object.
  • deserialize
    Deserializes the serialized object, using the specifiedClassLoader to load classes as necessary.
  • isDeserialized
    Determines if the object has been deserialized.

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Best IntelliJ 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