com.sun.electric.tool
Class Job.Key

java.lang.Object
  extended by com.sun.electric.tool.Job.Key
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Job

public static class Job.Key
extends java.lang.Object
implements java.io.Serializable

Identifies a Job in a given Electric client/server session. Job obtains its Key in startJob method. Also can identify Jobless context (for example Client's Gui)

See Also:
Serialized Form

Field Summary
 int clientId
          Client which launched the Job
 boolean doItOnServer
           
 int jobId
          Job id.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static Job.Key read(IdReader reader)
           
 void write(IdWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientId

public final int clientId
Client which launched the Job


jobId

public final int jobId
Job id. 0 - Jobless context positive - Job started from server side negative - Job started from client side


doItOnServer

public final boolean doItOnServer
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

write

public void write(IdWriter writer)
           throws java.io.IOException
Throws:
java.io.IOException

read

public static Job.Key read(IdReader reader)
                    throws java.io.IOException
Throws:
java.io.IOException