@Override public void read(ObjectInput in) throws IOException, ClassNotFoundException { registrarID = new ServiceID(in); }
@Override public void read(ObjectInput in) throws IOException, ClassNotFoundException { registrarID = new ServiceID(in); }
@Override public void read(ObjectInput input) throws IOException, ClassNotFoundException { serviceID = new ServiceID(input); }
@Override public void read(ObjectInput in) throws IOException, ClassNotFoundException { registrarID = new ServiceID(in); }
@Override public void read(ObjectInput in) throws IOException, ClassNotFoundException { servID = new ServiceID(in); }
/** * Reads the service ID, encoded as specified by the ServiceID.writeBytes * method. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); serviceID = new ServiceID(in); }
/** * Reads the default serializable field value for this instance, followed * by the serviceItem's service ID encoded as specified by the * ServiceID.writeBytes method. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); servID = new ServiceID(in); }
/** * Reads the service ID, encoded as specified by the ServiceID.writeBytes method. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); serviceID = new ServiceID(in); }
/** * Reads the default serializable field value for this instance, followed by the registrar's * service ID encoded as specified by the ServiceID.writeBytes method. Verifies that the * deserialized registrar reference is non-null. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); registrarID = new ServiceID(in); if (server == null) { throw new InvalidObjectException("null server"); } }
/** * Reads the default serializable field value for this instance, followed by the registrar's * service ID encoded as specified by the ServiceID.writeBytes method. Verifies that the * deserialized registrar reference is non-null. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); registrarID = new ServiceID(in); if (server == null) { throw new InvalidObjectException("null server"); } }
/** * Reads the default serializable field values for this instance, followed by the registrar's * service ID encoded as specified by the ServiceID.writeBytes method. Verifies that the * deserialized field values are non-null. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); registrarID = new ServiceID(in); if (server == null) { throw new InvalidObjectException("null server"); } else if (leaseID == null) { throw new InvalidObjectException("null leaseID"); } }
/** * Reads the default serializable field value for this instance, followed by the item's service * ID encoded as specified by the ServiceID.writeBytes method. If the value of the item field is * an Item instance, converts it to a ServiceItem. */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); servID = new ServiceID(in); if (item instanceof Item) item = ((Item) item).get(); } }
private static ServiceID getServiceIDFromRequest(LookupRequest request) { if (request.getSpaceUuid() == null) { return null; } UUID uuid = UUID.fromString(request.getSpaceUuid()); return new ServiceID(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits()); }
@Override public ServiceID serviceID() throws IOException { return new ServiceID(serverUuid.getMostSignificantBits(), serverUuid.getLeastSignificantBits()); }
public ServiceID getServiceId() { if (_proxyId == null) return null; return new ServiceID(_proxyId.getMostSignificantBits(), _proxyId.getLeastSignificantBits()); }
@Override public ServiceID serviceID() throws IOException { return new ServiceID(serviceID.getMostSignificantBits(), serviceID.getLeastSignificantBits()); }
public static ServiceID getServiceID(ReferentUuid service) { Uuid uuid = service.getReferentUuid(); return new ServiceID(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits()); }
/** * Generate a new service ID */ private ServiceID newServiceID() { Uuid uuid = serviceIdGenerator.generate(); return new ServiceID( uuid.getMostSignificantBits(), uuid.getLeastSignificantBits()); }
/** * Generate a new service ID */ private ServiceID newServiceID () { Uuid uuid = serviceIdGenerator.generate(); return new ServiceID( uuid.getMostSignificantBits(), uuid.getLeastSignificantBits()); }
public JSpaceProxyWrapper(IJSpace spaceProxy) { proxyObject = spaceProxy; proxyName = spaceProxy.getName(); Uuid spaceUuid = spaceProxy.getReferentUuid(); _serviceID = new ServiceID(spaceUuid.getMostSignificantBits(), spaceUuid.getLeastSignificantBits()); }