public interface ILocalizer
Download blobs from the blob store and keep them up to date.
Modifier and Type | Method and Description |
---|---|
void |
cleanupUnusedTopologies()
Clean up any topologies that are not in use right now.
|
void |
recoverRunningTopology(LocalAssignment assignemnt,
int port)
Recover a running topology by incrementing references for what it has already downloaded.
|
void |
releaseSlotFor(LocalAssignment assignment,
int port)
dec reference count on all blobs associated with this topology.
|
Future<Void> |
requestDownloadBaseTopologyBlobs(LocalAssignment assignment,
int port)
Download storm.jar, storm.conf, and storm.ser for this topology if not done so already, and inc a reference count on them.
|
Future<Void> |
requestDownloadTopologyBlobs(LocalAssignment assignment,
int port)
Download the blobs for this topology (reading in list in from the config) and inc reference count for these blobs.
|
void recoverRunningTopology(LocalAssignment assignemnt, int port)
Recover a running topology by incrementing references for what it has already downloaded.
assignment
- the assignment the resources are forport
- the port the topology is running in.Future<Void> requestDownloadBaseTopologyBlobs(LocalAssignment assignment, int port) throws IOException
Download storm.jar, storm.conf, and storm.ser for this topology if not done so already, and inc a reference count on them.
assignment
- the assignment the resources are forport
- the port the topology is running onIOException
- on errorFuture<Void> requestDownloadTopologyBlobs(LocalAssignment assignment, int port)
Download the blobs for this topology (reading in list in from the config) and inc reference count for these blobs. PRECONDITION: requestDownloadBaseTopologyBlobs has completed downloading.
assignment
- the assignment the resources are forport
- the port the topology is running onvoid releaseSlotFor(LocalAssignment assignment, int port) throws IOException
dec reference count on all blobs associated with this topology.
assignment
- the assignment the resources are forport
- the port the topology is running onIOException
- on any errorvoid cleanupUnusedTopologies() throws IOException
Clean up any topologies that are not in use right now.
IOException
- on any error.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.