java.lang.Object
com.zeroc.IceGrid.AdapterDescriptor
- All Implemented Interfaces:
Serializable,Cloneable
Describes an indirect object adapter.
Remarks:
The Slice compiler generated this class from Slice struct ::IceGrid::AdapterDescriptor.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe descriptors of allocatable objects.A description of this object adapter.The adapter ID.The object adapter name.The descriptors of well-known objects.The adapter priority.booleanWhentrue, the object adapter registers a process object.The replica group ID.booleanWhentrue, the lifetime of this object adapter is the same of the server lifetime. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aAdapterDescriptor.AdapterDescriptor(String name, String description, String id, String replicaGroupId, String priority, boolean registerProcess, boolean serverLifetime, List<ObjectDescriptor> objects, List<ObjectDescriptor> allocatables) Constructs aAdapterDescriptorwith values for all its fields. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleaninthashCode()static AdapterDescriptorice_read(InputStream istr) Unmarshals anAdapterDescriptorfrom an input stream.static Optional<AdapterDescriptor>ice_read(InputStream istr, int tag) Unmarshals an optionalAdapterDescriptorfrom an input stream.voidice_readMembers(InputStream istr) Unmarshals and sets this object's fields from an input stream.static voidice_write(OutputStream ostr, int tag, AdapterDescriptor v) Marshals an optionalAdapterDescriptorinto an output stream.static voidice_write(OutputStream ostr, int tag, Optional<AdapterDescriptor> v) Marshals an optionalAdapterDescriptorinto an output stream.static voidice_write(OutputStream ostr, AdapterDescriptor v) Marshals anAdapterDescriptorinto an output stream.voidice_writeMembers(OutputStream ostr) Marshals this object's fields into an output stream.
-
Field Details
-
name
The object adapter name. -
description
A description of this object adapter. -
id
The adapter ID. -
replicaGroupId
The replica group ID. It's empty when the adapter is not part of a replica group. -
priority
The adapter priority. Only relevant when the adapter is in a replica group. -
registerProcess
public boolean registerProcessWhentrue, the object adapter registers a process object. -
serverLifetime
public boolean serverLifetimeWhentrue, the lifetime of this object adapter is the same of the server lifetime. This information is used by the IceGrid node to figure out the server state: the server is active when all its "server lifetime" adapters are active. -
objects
The descriptors of well-known objects. -
allocatables
The descriptors of allocatable objects.
-
-
Constructor Details
-
AdapterDescriptor
public AdapterDescriptor()Constructs aAdapterDescriptor. -
AdapterDescriptor
public AdapterDescriptor(String name, String description, String id, String replicaGroupId, String priority, boolean registerProcess, boolean serverLifetime, List<ObjectDescriptor> objects, List<ObjectDescriptor> allocatables) Constructs aAdapterDescriptorwith values for all its fields.- Parameters:
name- The object adapter name.description- A description of this object adapter.id- The adapter ID.replicaGroupId- The replica group ID.priority- The adapter priority.registerProcess- Whentrue, the object adapter registers a process object.serverLifetime- Whentrue, the lifetime of this object adapter is the same of the server lifetime.objects- The descriptors of well-known objects.allocatables- The descriptors of allocatable objects.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
clone
-
ice_writeMembers
Marshals this object's fields into an output stream.- Parameters:
ostr- the output stream
-
ice_readMembers
Unmarshals and sets this object's fields from an input stream.- Parameters:
istr- the input stream
-
ice_write
Marshals anAdapterDescriptorinto an output stream.- Parameters:
ostr- the output streamv- theAdapterDescriptorto marshal
-
ice_read
Unmarshals anAdapterDescriptorfrom an input stream.- Parameters:
istr- the input stream- Returns:
- the unmarshaled
AdapterDescriptor
-
ice_write
Marshals an optionalAdapterDescriptorinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_write
Marshals an optionalAdapterDescriptorinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_read
Unmarshals an optionalAdapterDescriptorfrom an input stream.- Parameters:
istr- the input streamtag- the tag- Returns:
- the unmarshaled value
-