# Host

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>Host<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Represents a Cassandra node.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="Host"><span class="type-signature"></span>new Host<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Creates a new Host instance.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L13" target="_blank" rel="noopener">host.js, line 13</a></p></div>




















    
    

    
        </div>

## Extends

<div class="jsdoc-content">

        


    <ul>
        <li>EventEmitter</li>
    </ul>


    

    

    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h4 class="name" id="address"><span class="type-signature"></span>address<span class="type-signature"> :String</span></h4>




<div class="description">
    <p>Gets ip address and port number of the node separated by <code>:</code>.</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">String</span>


        </li>
    </ul>





<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L23" target="_blank" rel="noopener">host.js, line 23</a></p></div>






        
            
<h4 class="name" id="cassandraVersion"><span class="type-signature"></span>cassandraVersion<span class="type-signature"> :String</span></h4>




<div class="description">
    <p>Gets string containing the Cassandra version.</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">String</span>


        </li>
    </ul>





<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L29" target="_blank" rel="noopener">host.js, line 29</a></p></div>






        
            
<h4 class="name" id="datacenter"><span class="type-signature"></span>datacenter<span class="type-signature"> :String</span></h4>




<div class="description">
    <p>Gets data center name of the node.</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">String</span>


        </li>
    </ul>





<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L35" target="_blank" rel="noopener">host.js, line 35</a></p></div>






        
            
<h4 class="name" id="dseVersion"><span class="type-signature"></span>dseVersion<span class="type-signature"></span></h4>










<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L61" target="_blank" rel="noopener">host.js, line 61</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>






        
            
<h4 class="name" id="hostId"><span class="type-signature"></span>hostId<span class="type-signature"> :Uuid</span></h4>




<div class="description">
    <p>Gets the id of the host.</p>
<p>This identifier is used by the server for internal communication / gossip.</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Uuid</span>


        </li>
    </ul>





<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L55" target="_blank" rel="noopener">host.js, line 55</a></p></div>






        
            
<h4 class="name" id="rack"><span class="type-signature"></span>rack<span class="type-signature"> :String</span></h4>




<div class="description">
    <p>Gets rack name of the node.</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">String</span>


        </li>
    </ul>





<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L41" target="_blank" rel="noopener">host.js, line 41</a></p></div>






        
            
<h4 class="name" id="tokens"><span class="type-signature"></span>tokens<span class="type-signature"> :Array&lt;any></span></h4>




<div class="description">
    <p>Gets the tokens assigned to the node.</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">Array&lt;any></span>


        </li>
    </ul>





<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L47" target="_blank" rel="noopener">host.js, line 47</a></p></div>






        
            
<h4 class="name" id="workloads"><span class="type-signature"></span>workloads<span class="type-signature"></span></h4>










<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L73" target="_blank" rel="noopener">host.js, line 73</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h4 class="name" id="canBeConsideredAsUp"><span class="type-signature"></span>canBeConsideredAsUp<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
    

    



<div class="description">
    <p>This endpoint is not yet implemented, and its usage will throw an error</p>
<p>Determines if the host can be considered as UP.
Deprecated: Use Host#isUp() instead.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L99" target="_blank" rel="noopener">host.js, line 99</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="getCassandraVersion"><span class="type-signature"></span>getCassandraVersion<span class="signature">()</span><span class="type-signature"> &rarr; {Array&lt;Number>}</span></h4>
    

    



<div class="description">
    <p>This endpoint is not yet implemented, and its usage will throw an error</p>
<p>Returns an array containing the Cassandra Version as an Array of Numbers having the major version in the first
position.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L110" target="_blank" rel="noopener">host.js, line 110</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array&lt;Number></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="getDseVersion"><span class="type-signature"></span>getDseVersion<span class="signature">()</span><span class="type-signature"></span></h4>
    

    















<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L127" target="_blank" rel="noopener">host.js, line 127</a></p></div>
<div class="admonition warning"><p class="admonition-title">Deprecated</p><p>Not supported by the driver. Usage will throw an error.</p></div>




















        
            

    

    
    <h4 class="name" id="isUp"><span class="type-signature"></span>isUp<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
    

    



<div class="description">
    <p>This endpoint is not yet implemented, and its usage will throw an error</p>
<p>Determines if the node is UP now (seen as UP by the driver).</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L88" target="_blank" rel="noopener">host.js, line 88</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id=".fromRust"><span class="type-signature">(package, static) </span>fromRust<span class="signature">(hostWrapper)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Creates a Host instance from a Rust HostWrapper.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>hostWrapper</code></td>
            

            <td class="type">
            
                
<span class="param-type">_rust.HostWrapper</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/host.js#L136" target="_blank" rel="noopener">host.js, line 136</a></p></div></div>
