public class IgfsContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IgniteLogger |
log
Logger.
|
| Constructor and Description |
|---|
IgfsContext(GridKernalContext ctx,
FileSystemConfiguration cfg,
IgfsMetaManager metaMgr,
IgfsDataManager dataMgr,
IgfsServerManager srvMgr,
IgfsFragmentizerManager fragmentizerMgr) |
| Modifier and Type | Method and Description |
|---|---|
FileSystemConfiguration |
configuration() |
IgfsDataManager |
data() |
IgfsFragmentizerManager |
fragmentizer() |
IgfsEx |
igfs() |
boolean |
igfsNode(ClusterNode node)
Checks if given node is a IGFS node.
|
GridKernalContext |
kernalContext() |
ClusterNode |
localNode()
Get local node.
|
List<IgfsManager> |
managers() |
IgfsMetaManager |
meta() |
IgfsLocalMetrics |
metrics()
Get local metrics.
|
void |
runInIgfsThreadPool(Runnable r)
Executes runnable in IGFS executor service.
|
void |
send(ClusterNode node,
Object topic,
IgfsCommunicationMessage msg,
byte plc) |
void |
send(UUID nodeId,
Object topic,
IgfsCommunicationMessage msg,
byte plc) |
IgfsServerManager |
server() |
protected IgniteLogger log
public IgfsContext(GridKernalContext ctx, FileSystemConfiguration cfg, IgfsMetaManager metaMgr, IgfsDataManager dataMgr, IgfsServerManager srvMgr, IgfsFragmentizerManager fragmentizerMgr) throws IgniteCheckedException
ctx - Kernal context.cfg - IGFS configuration.metaMgr - Meta manager.dataMgr - Data manager.srvMgr - Server manager.fragmentizerMgr - Fragmentizer manager.IgniteCheckedException - If IGFS context instantiation is failed.public IgfsEx igfs()
public GridKernalContext kernalContext()
public FileSystemConfiguration configuration()
public List<IgfsManager> managers()
public IgfsMetaManager meta()
public IgfsDataManager data()
public IgfsServerManager server()
public IgfsFragmentizerManager fragmentizer()
public void send(UUID nodeId, Object topic, IgfsCommunicationMessage msg, byte plc) throws IgniteCheckedException
nodeId - Node ID.topic - Topic.msg - Message.plc - Policy.IgniteCheckedException - In case of error.public void send(ClusterNode node, Object topic, IgfsCommunicationMessage msg, byte plc) throws IgniteCheckedException
node - Node.topic - Topic.msg - Message.plc - Policy.IgniteCheckedException - In case of error.public boolean igfsNode(ClusterNode node)
node - Node to check.True if node has IGFS with this name, false otherwise.public IgfsLocalMetrics metrics()
public ClusterNode localNode()
public void runInIgfsThreadPool(Runnable r)
r - Runnable to execute.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016