fabric.store
Class Node

java.lang.Object
  extended by fabric.store.Node

public class Node
extends java.lang.Object


Nested Class Summary
protected  class Node.Store
           
 
Field Summary
 Options opts
           
protected  Node.Store store
          A map from store host-names to corresponding SSLSocketFactorys and TransactionManagers.
 
Constructor Summary
Node(Options opts)
           
 
Method Summary
 java.security.PrivateKey getPrivateKey(java.lang.String storeName)
           
 javax.net.ssl.SSLSocketFactory getSSLSocketFactory(java.lang.String storeName)
          Given the host name for an object store, returns its corresponding SSLSocketFactory.
 Node.Store getStore(java.lang.String name)
          Returns the store corresponding to the given name.
 SurrogateManager getSurrogateManager(java.lang.String storeName)
           
 TransactionManager getTransactionManager(java.lang.String storeName)
          Given the host name for an object store, returns its corresponding TransactionManager.
 void start()
          The main execution body of a store node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opts

public Options opts

store

protected Node.Store store
A map from store host-names to corresponding SSLSocketFactorys and TransactionManagers.

Constructor Detail

Node

public Node(Options opts)
Method Detail

getStore

public Node.Store getStore(java.lang.String name)
Returns the store corresponding to the given name.

Parameters:
name - Name of store to retrieve.
Returns:
The requested store, or null if it does not exist.

getTransactionManager

public TransactionManager getTransactionManager(java.lang.String storeName)
Given the host name for an object store, returns its corresponding TransactionManager.

Returns:
null if there is no corresponding binding.

getSSLSocketFactory

public javax.net.ssl.SSLSocketFactory getSSLSocketFactory(java.lang.String storeName)
Given the host name for an object store, returns its corresponding SSLSocketFactory.


getSurrogateManager

public SurrogateManager getSurrogateManager(java.lang.String storeName)

getPrivateKey

public java.security.PrivateKey getPrivateKey(java.lang.String storeName)

start

public void start()
           throws java.io.IOException
The main execution body of a store node.

Throws:
java.io.IOException