Note
There is a JDK-internal dependency on the existence of this class and its getClientSocketFactory method in the implementation of javax.management.remote.rmi.RMIConnector.
| Modifier and Type | Field and Description |
|---|---|
| private transient Channel | ch
cached connection service for the object |
| private final Endpoint | ep
wire representation for the object |
| private final ObjID | |
| private final boolean | isLocal
flag to indicate whether this ref specifies a local server or is a ref for a remote object (surrogate) |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | LiveRef(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
Construct a new live reference for a server object in the local address space, to use sockets of the specified type. |
| public | |
| public | LiveRef(ObjID objID, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
Construct a new live reference for a "well-known" server object in the local address space, to use sockets of the specified type. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public void | |
| public Channel | |
| public RMIClientSocketFactory | |
| pack-priv Endpoint | |
| public ObjID | |
| public int | |
| public RMIServerSocketFactory | |
| public int | |
| public static LiveRef | |
| public boolean | |
| public String | |
| public void |
| ch | back to summary |
|---|---|
| private transient Channel ch cached connection service for the object | |
| ep | back to summary |
|---|---|
| private final Endpoint ep wire representation for the object | |
| id | back to summary |
|---|---|
| private final ObjID id | |
| isLocal | back to summary |
|---|---|
| private final boolean isLocal flag to indicate whether this ref specifies a local server or is a ref for a remote object (surrogate) | |
| LiveRef | back to summary |
|---|---|
| public LiveRef(ObjID objID, Endpoint endpoint, boolean isLocal) Construct a "well-known" live reference to a remote object
| |
| LiveRef | back to summary |
|---|---|
| public LiveRef(int port) Construct a new live reference for a server object in the local address space. | |
| LiveRef | back to summary |
|---|---|
| public LiveRef(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) Construct a new live reference for a server object in the local address space, to use sockets of the specified type. | |
| LiveRef | back to summary |
|---|---|
| public LiveRef(ObjID objID, int port) Construct a new live reference for a "well-known" server object in the local address space. | |
| LiveRef | back to summary |
|---|---|
| public LiveRef(ObjID objID, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) Construct a new live reference for a "well-known" server object in the local address space, to use sockets of the specified type. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Return a shallow copy of this ref. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| exportObject | back to summary |
|---|---|
| public void exportObject(Target target) throws RemoteException Export the object to accept incoming calls. | |
| getChannel | back to summary |
|---|---|
| public Channel getChannel() throws RemoteException | |
| getClientSocketFactory | back to summary |
|---|---|
| public RMIClientSocketFactory getClientSocketFactory() Return the client socket factory associated with this ref. Note There is a JDK-internal dependency on the existence of this method in the implementation of javax.management.remote.rmi.RMIConnector. | |
| getEndpoint | back to summary |
|---|---|
| pack-priv Endpoint getEndpoint() | |
| getObjID | back to summary |
|---|---|
| public ObjID getObjID() | |
| getPort | back to summary |
|---|---|
| public int getPort() Return the port number associated with this ref. | |
| getServerSocketFactory | back to summary |
|---|---|
| public RMIServerSocketFactory getServerSocketFactory() Return the server socket factory associated with this ref. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| read | back to summary |
|---|---|
| public static LiveRef read(ObjectInput in, boolean useNewFormat) throws IOException, ClassNotFoundException | |
| remoteEquals | back to summary |
|---|---|
| public boolean remoteEquals(Object obj) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| write | back to summary |
|---|---|
| public void write(ObjectOutput out, boolean useNewFormat) throws IOException | |