org.elasticsearch.node.internal
Class InternalNode

java.lang.Object
  extended by org.elasticsearch.node.internal.InternalNode
All Implemented Interfaces:
Node

public final class InternalNode
extends Object
implements Node


Constructor Summary
InternalNode()
           
InternalNode(Settings pSettings, boolean loadConfigSettings)
           
 
Method Summary
 Client client()
          A client that can be used to execute actions (operations) against the cluster.
 void close()
          Closes the node (and Node.stop()s if its running).
 Injector injector()
           
 boolean isClosed()
          Returns true if the node is closed.
static void main(String[] args)
           
 Settings settings()
          The settings that were used to create the node.
 Node start()
          Start the node.
 Node stop()
          Stops the node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalNode

public InternalNode()
             throws ElasticSearchException
Throws:
ElasticSearchException

InternalNode

public InternalNode(Settings pSettings,
                    boolean loadConfigSettings)
             throws ElasticSearchException
Throws:
ElasticSearchException
Method Detail

settings

public Settings settings()
Description copied from interface: Node
The settings that were used to create the node.

Specified by:
settings in interface Node

client

public Client client()
Description copied from interface: Node
A client that can be used to execute actions (operations) against the cluster.

Specified by:
client in interface Node

start

public Node start()
Description copied from interface: Node
Start the node. If the node is already started, this method is no-op.

Specified by:
start in interface Node

stop

public Node stop()
Description copied from interface: Node
Stops the node. If the node is already stopped, this method is no-op.

Specified by:
stop in interface Node

close

public void close()
Description copied from interface: Node
Closes the node (and Node.stop()s if its running).

Specified by:
close in interface Node

isClosed

public boolean isClosed()
Description copied from interface: Node
Returns true if the node is closed.

Specified by:
isClosed in interface Node

injector

public Injector injector()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2009-2012. All Rights Reserved.