Class GridClientNodeBean
- java.lang.Object
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientNodeBean
-
- All Implemented Interfaces:
Externalizable,Serializable
public class GridClientNodeBean extends Object implements Externalizable
Node bean.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridClientNodeBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,Object>getAttributes()Gets attributes.Collection<GridClientCacheBean>getCaches()Gets configured node caches.ObjectgetConsistentId()GridClientNodeMetricsBeangetMetrics()Gets metrics.UUIDgetNodeId()Gets node ID.longgetOrder()Node order within grid topology.Collection<String>getTcpAddresses()Gets REST TCP server addresses.Collection<String>getTcpHostNames()Gets REST TCP server host names.intgetTcpPort()Gets REST binary protocol port.inthashCode()voidreadExternal(ObjectInput in)voidsetAttributes(Map<String,Object> attrs)Sets attributes.voidsetCaches(Collection<GridClientCacheBean> caches)Sets configured node caches.voidsetConsistentId(Object consistentId)voidsetMetrics(GridClientNodeMetricsBean metrics)Sets metrics.voidsetNodeId(UUID nodeId)Sets node ID.voidsetOrder(long order)Set node order within grid topologyvoidsetTcpAddresses(Collection<String> tcpAddrs)Sets REST TCP server addresses.voidsetTcpHostNames(Collection<String> tcpHostNames)Sets REST TCP server host names.voidsetTcpPort(int tcpPort)Sets REST binary protocol port.StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
getNodeId
public UUID getNodeId()
Gets node ID.- Returns:
- Node Id.
-
setNodeId
public void setNodeId(UUID nodeId)
Sets node ID.- Parameters:
nodeId- Node ID.
-
getConsistentId
public Object getConsistentId()
- Returns:
- Consistent ID.
-
setConsistentId
public void setConsistentId(Object consistentId)
- Parameters:
consistentId- New consistent ID.
-
getTcpAddresses
public Collection<String> getTcpAddresses()
Gets REST TCP server addresses.- Returns:
- REST TCP server addresses.
-
getTcpHostNames
public Collection<String> getTcpHostNames()
Gets REST TCP server host names.- Returns:
- REST TCP server host names.
-
setTcpAddresses
public void setTcpAddresses(Collection<String> tcpAddrs)
Sets REST TCP server addresses.- Parameters:
tcpAddrs- REST TCP server addresses.
-
setTcpHostNames
public void setTcpHostNames(Collection<String> tcpHostNames)
Sets REST TCP server host names.- Parameters:
tcpHostNames- REST TCP server host names.
-
getMetrics
public GridClientNodeMetricsBean getMetrics()
Gets metrics.- Returns:
- Metrics.
-
setMetrics
public void setMetrics(GridClientNodeMetricsBean metrics)
Sets metrics.- Parameters:
metrics- Metrics.
-
setAttributes
public void setAttributes(Map<String,Object> attrs)
Sets attributes.- Parameters:
attrs- Attributes.
-
getTcpPort
public int getTcpPort()
Gets REST binary protocol port.- Returns:
- Port on which REST binary protocol is bound.
-
getCaches
public Collection<GridClientCacheBean> getCaches()
Gets configured node caches.- Returns:
- Configured node caches.
-
setCaches
public void setCaches(Collection<GridClientCacheBean> caches)
Sets configured node caches.- Parameters:
caches- Configured node caches.
-
setTcpPort
public void setTcpPort(int tcpPort)
Sets REST binary protocol port.- Parameters:
tcpPort- Port on which REST binary protocol is bound.
-
getOrder
public long getOrder()
Node order within grid topology.- Returns:
- Node startup order.
-
setOrder
public void setOrder(long order)
Set node order within grid topology- Parameters:
order- Node order within grid topology
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-