java.lang.Object
com.zeroc.IceGrid.AdapterDescriptor
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an indirect object adapter.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe descriptors of allocatable objectsA description of this object adapter.The adapter ID.The object adapter name.The descriptors of well-known objects.The adapter priority.boolean
Whentrue
, the object adapter registers a process object.The replica group ID.boolean
Whentrue
, 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 aAdapterDescriptor
with values for all its fields. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
static AdapterDescriptor
ice_read
(InputStream istr) Unmarshals anAdapterDescriptor
from an input stream.static Optional<AdapterDescriptor>
ice_read
(InputStream istr, int tag) Unmarshals an optionalAdapterDescriptor
from an input stream.void
ice_readMembers
(InputStream istr) Unmarshals and sets this object's fields from an input stream.static void
ice_write
(OutputStream ostr, int tag, AdapterDescriptor v) Marshals an optionalAdapterDescriptor
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<AdapterDescriptor> v) Marshals an optionalAdapterDescriptor
into an output stream.static void
ice_write
(OutputStream ostr, AdapterDescriptor v) Marshals anAdapterDescriptor
into an output stream.void
ice_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 aAdapterDescriptor
with 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 anAdapterDescriptor
into an output stream.- Parameters:
ostr
- the output streamv
- theAdapterDescriptor
to marshal; can be null
-
ice_read
Unmarshals anAdapterDescriptor
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
AdapterDescriptor
-
ice_write
Marshals an optionalAdapterDescriptor
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalAdapterDescriptor
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalAdapterDescriptor
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-