- S3_BUCKET - Static variable in class com.staros.util.Config
-
S3 object storage bucket
- S3_ENDPOINT - Static variable in class com.staros.util.Config
-
S3 object storage endpoint
- S3_FSKEY_FOR_CONFIG - Static variable in class com.staros.util.Constant
-
- S3_FSNAME_FOR_CONFIG - Static variable in class com.staros.util.Constant
-
- S3_PATH_PREFIX - Static variable in class com.staros.util.Config
-
S3 path in the bucket to be used as the root path.
- S3_PREFIX - Static variable in class com.staros.util.Constant
-
- S3_REGION - Static variable in class com.staros.util.Config
-
S3 object storage region
- S3FileStore - Class in com.staros.filestore
-
- S3FileStore(String, String, String, String, String, AwsCredential, String) - Constructor for class com.staros.filestore.S3FileStore
-
- S3FileStore(String, String, String, String, String, AwsCredential, String, boolean, int) - Constructor for class com.staros.filestore.S3FileStore
-
- S3FileStore(FileStoreInfo, String, String, AwsCredential, boolean, int) - Constructor for class com.staros.filestore.S3FileStore
-
- scaleResource(ScaleResourceRequest, StreamObserver<ScaleResourceResponse>) - Method in class com.staros.provisioner.StarProvisionService
-
- scheduleAddToDefaultGroup(String, List<Long>) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAddToDefaultGroup(String, List<Long>) - Method in class com.staros.schedule.ShardSchedulerV2
-
Request to schedule a list of shards in service (serviceId), let schedule to choose the default worker group.
- scheduleAddToGroup(String, long, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAddToGroup(String, List<Long>, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAddToGroup(String, long, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
BLOCKING interface to schedule single shard (shardId) in service (serviceId) in workerGroup (wgId).
- scheduleAddToGroup(String, List<Long>, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
BLOCKING interface of scheduling a list of shards to a WorkerGroup.
- scheduleAddToWorker(String, long, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAddToWorker(String, List<Long>, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAddToWorker(String, long, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Phase2: add a replica of a shard to a worker without
- scheduleAddToWorker(String, List<Long>, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Phase2: batch add list of shards to a worker
- scheduleAsyncAddToGroup(String, long, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAsyncAddToGroup(String, long, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Async schedule single shard (shardId) in service (serviceId) in wgId workerGroup (wgId), don't wait for result.
- scheduleAsyncAddToWorker(String, List<Long>, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAsyncAddToWorker(String, List<Long>, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Phase2: Async interface to schedule a list of shards to the target worker, don't wait for the result.
- scheduleAsyncRemoveFromGroup(String, long, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAsyncRemoveFromGroup(String, long, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Remove redundant replicas for the shard, running:
1.
- scheduleAsyncRemoveFromWorker(String, List<Long>, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleAsyncRemoveFromWorker(String, List<Long>, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Phase2: Remove list of shards from target worker, don't wait for the result.
- ScheduleConflictStarException - Exception in com.staros.exception
-
- ScheduleConflictStarException() - Constructor for exception com.staros.exception.ScheduleConflictStarException
-
- Scheduler - Interface in com.staros.schedule
-
- SCHEDULER_BALANCE_MAX_SKEW - Static variable in class com.staros.util.Config
-
Tolerance of max skewness of replicas in a shard group without triggering a balance.
- SCHEDULER_MAX_BATCH_ADD_SHARD_SIZE - Static variable in class com.staros.util.Config
-
Max batch size to call addShard in a single RPC, 8192 shards, (estimated payload size: 2MB)
- SCHEDULER_TRIGGER_SCHEDULE_WHEN_CREATE_SHARD - Static variable in class com.staros.util.Config
-
Whether triggering a scheduling to default worker group when a new shard is created.
- scheduleRemoveFromWorker(String, long, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleRemoveFromWorker(String, List<Long>, long) - Method in interface com.staros.schedule.Scheduler
-
- scheduleRemoveFromWorker(String, long, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Phase2: Remove single shard replica from target worker.
- scheduleRemoveFromWorker(String, List<Long>, long) - Method in class com.staros.schedule.ShardSchedulerV2
-
Phase2: Remove list of shards from target worker, wait for the result back.
- ScheduleScorer - Class in com.staros.schedule
-
- ScheduleScorer(Collection<Long>) - Constructor for class com.staros.schedule.ScheduleScorer
-
- scheduleShardsBelongToWorker(long) - Method in class com.staros.shard.ShardManager
-
- ScheduleStarException - Exception in com.staros.exception
-
- ScheduleStarException(String) - Constructor for exception com.staros.exception.ScheduleStarException
-
- ScheduleStarException(String, Object...) - Constructor for exception com.staros.exception.ScheduleStarException
-
- selectHighEnd(Selector, int) - Method in class com.staros.schedule.ScheduleScorer
-
- selectHighEnd(Map<Long, Double>, int) - Method in class com.staros.schedule.select.FirstNSelector
-
- selectHighEnd(Map<Long, Double>, int) - Method in interface com.staros.schedule.select.Selector
-
Select n elements from given Map (WorkerId, Scores), from the low end, (score value natural order)
- selectLowEnd(Selector, int) - Method in class com.staros.schedule.ScheduleScorer
-
- selectLowEnd(Map<Long, Double>, int) - Method in class com.staros.schedule.select.FirstNSelector
-
- selectLowEnd(Map<Long, Double>, int) - Method in interface com.staros.schedule.select.Selector
-
Select n elements from given Map (WorkerId, Scores), from the low end, (score value natural order)
- Selector - Interface in com.staros.schedule.select
-
- serializeToJson(Object) - Static method in class com.staros.manager.HttpService
-
- serializeToText(Object) - Static method in class com.staros.manager.HttpService
-
- Server - Interface in com.staros.util
-
- Service - Class in com.staros.service
-
- Service(String, String, String) - Constructor for class com.staros.service.Service
-
- ServiceComponent - Class in com.staros.service
-
- ServiceComponent(String) - Constructor for class com.staros.service.ServiceComponent
-
- ServiceManager - Class in com.staros.service
-
Service Manager handles all operations that are related to Service, including
service registration, service bootstrap, etc.
- ServiceManager() - Constructor for class com.staros.service.ServiceManager
-
- ServiceManager(JournalSystem, IdGenerator) - Constructor for class com.staros.service.ServiceManager
-
- ServiceTemplate - Class in com.staros.service
-
- ServiceTemplate(String, List<String>) - Constructor for class com.staros.service.ServiceTemplate
-
- setBuiltin(boolean) - Method in class com.staros.filestore.AbstractFileStore
-
- setBuiltin(boolean) - Method in class com.staros.filestore.DelegatedFileStore
-
- setBuiltin(boolean) - Method in interface com.staros.filestore.FileStore
-
- setEnabled(boolean) - Method in class com.staros.filestore.AbstractFileStore
-
- setEnabled(boolean) - Method in class com.staros.filestore.DelegatedFileStore
-
- setEnabled(boolean) - Method in interface com.staros.filestore.FileStore
-
- setExpectedReplicaNum(int) - Method in class com.staros.shard.Shard
-
Deprecated.
- setFileCacheEnable(boolean) - Method in class com.staros.filecache.FileCache
-
- setFileCacheEnable(boolean) - Method in class com.staros.shard.Shard
-
- setFilePath(FilePath) - Method in class com.staros.shard.Shard
-
- setFileStoreMgr(FileStoreMgr) - Method in class com.staros.service.Service
-
- setLabels(Map<String, String>) - Method in class com.staros.worker.WorkerGroup
-
- setListenAddressInfo(String, int) - Method in class com.staros.manager.StarManager
-
- setNextId(long) - Method in class com.staros.util.IdGenerator
-
- setProperties(Map<String, String>) - Method in class com.staros.shard.Shard
-
- setProperties(Map<String, String>) - Method in class com.staros.worker.WorkerGroup
-
- setReplayId(long) - Method in class com.staros.journal.DelegateJournalSystem
-
- setReplayId(long) - Method in class com.staros.journal.DummyJournalSystem
-
- setReplayId(long) - Method in interface com.staros.journal.JournalSystem
-
- setReplicaNumber(int) - Method in class com.staros.worker.WorkerGroup
-
- setReplicas(List<Replica>) - Method in class com.staros.shard.Shard
-
- setReplicaState(ReplicaState) - Method in class com.staros.replica.Replica
-
- setRole(ReplicaRole) - Method in class com.staros.replica.Replica
-
- setShardGroupIds(List<Long>) - Method in class com.staros.shard.MetaGroup
-
- setShardManager(ShardManager) - Method in class com.staros.service.Service
-
- setShardScheduler(Scheduler) - Method in class com.staros.service.ServiceManager
-
- setState(ServiceState) - Method in class com.staros.service.Service
-
- setState(ShardState) - Method in class com.staros.shard.Shard
-
- setState(WorkerState) - Method in class com.staros.worker.Worker
-
- setWorker(Worker) - Method in class com.staros.starlet.MockStarletAgent
-
- setWorker(Worker) - Method in class com.staros.starlet.StarletAgent
-
- Shard - Class in com.staros.shard
-
- Shard(String, List<Long>, long) - Constructor for class com.staros.shard.Shard
-
- Shard(String, List<Long>, long, FilePath, FileCache) - Constructor for class com.staros.shard.Shard
-
- SHARD_CHECKER_LOOP_INTERVAL_SEC - Static variable in class com.staros.util.Config
-
shard checker loop interval in second
- ShardChecker - Class in com.staros.shard
-
- ShardChecker(ServiceManager, WorkerManager, Scheduler) - Constructor for class com.staros.shard.ShardChecker
-
- ShardGroup - Class in com.staros.shard
-
- ShardGroup(String, long) - Constructor for class com.staros.shard.ShardGroup
-
- ShardGroup(String, long, PlacementPolicy, boolean, long) - Constructor for class com.staros.shard.ShardGroup
-
- ShardGroup(String, long, PlacementPolicy, boolean, long, Map<String, String>, Map<String, String>) - Constructor for class com.staros.shard.ShardGroup
-
- ShardGroup(ShardGroupInfo) - Constructor for class com.staros.shard.ShardGroup
-
- shardGroupBalanceCheckForService(String) - Method in class com.staros.shard.ShardChecker
-
Check and balance shard group if needed
- shardHealthCheck(Shard) - Method in class com.staros.shard.ShardChecker
-
Check given shard's replica status, remove dead replica and add missing replicas.
- shardHealthCheckForService(String) - Method in class com.staros.shard.ShardChecker
-
check the shards inside a service
- ShardManager - Class in com.staros.shard
-
Shard Manager manages all the shard for single service, including
shard group operations and shard operations.
- ShardManager(String, JournalSystem, IdGenerator, Scheduler) - Constructor for class com.staros.shard.ShardManager
-
- ShardPlacementPolicy - Interface in com.staros.shard.policy
-
- ShardPolicyFilter - Class in com.staros.shard
-
- ShardPolicyFilter() - Constructor for class com.staros.shard.ShardPolicyFilter
-
- ShardSchedulerV2 - Class in com.staros.schedule
-
Designed to be multi-services shared scheduler
Assumptions:
Uniqueness:
* serviceId + shardId, globally unique
* shardGroupId, globally unique
* workerGroupId, globally unique
* workerId, globally unique
Two phases scheduling:
- phase 1: calculation
* select worker as target to add/remove shard replica
- phase 2: dispatch
* send RPC call to worker to make the change of the adding/removing shard replica, and update shard info upon success.
- ShardSchedulerV2(ServiceManager, WorkerManager) - Constructor for class com.staros.schedule.ShardSchedulerV2
-
- shutdown() - Method in class com.staros.manager.StarManagerServer
-
- shutdownExecutorService(ExecutorService) - Static method in class com.staros.util.Utils
-
- shutdownService(String) - Method in class com.staros.manager.StarManager
-
- shutdownService(ShutdownServiceRequest, StreamObserver<ShutdownServiceResponse>) - Method in class com.staros.manager.StarManagerService
-
- shutdownService(String) - Method in class com.staros.service.ServiceManager
-
Shutdown a service
- SIMPLE_CREDENTIAL_ACCESS_KEY_ID - Static variable in class com.staros.util.Config
-
- SIMPLE_CREDENTIAL_ACCESS_KEY_SECRET - Static variable in class com.staros.util.Config
-
- StarletAgent - Class in com.staros.starlet
-
- StarletAgent() - Constructor for class com.staros.starlet.StarletAgent
-
- StarletAgentFactory - Class in com.staros.starlet
-
- StarletAgentFactory() - Constructor for class com.staros.starlet.StarletAgentFactory
-
- StarManager - Class in com.staros.manager
-
- StarManager() - Constructor for class com.staros.manager.StarManager
-
- StarManager(JournalSystem) - Constructor for class com.staros.manager.StarManager
-
- StarManagerServer - Class in com.staros.manager
-
- StarManagerServer() - Constructor for class com.staros.manager.StarManagerServer
-
- StarManagerServer(JournalSystem) - Constructor for class com.staros.manager.StarManagerServer
-
- StarManagerService - Class in com.staros.manager
-
- StarManagerService(StarManager) - Constructor for class com.staros.manager.StarManagerService
-
- STARMGR_IP - Static variable in class com.staros.util.Config
-
star manager ip address
- STARMGR_RPC_PORT - Static variable in class com.staros.util.Config
-
star manager rpc port
- starmgrHttpService(HttpRequest) - Method in class com.staros.manager.HttpService
-
- StarMgrJournal - Class in com.staros.journal
-
- StarMgrJournal() - Constructor for class com.staros.journal.StarMgrJournal
-
- StarProvisionManageService - Class in com.staros.provisioner
-
- StarProvisionManageService(StarProvisionServer) - Constructor for class com.staros.provisioner.StarProvisionManageService
-
- StarProvisionServer - Class in com.staros.provisioner
-
- StarProvisionServer() - Constructor for class com.staros.provisioner.StarProvisionServer
-
- StarProvisionServerMain - Class in com.staros.provisioner
-
Convenient entry-point to run a standalone StarProvisionServer for testing
java -cp com.staros.provisioner.StarProvisionServerMain [starmgr.conf] [persistent_datadir]
- StarProvisionServerMain() - Constructor for class com.staros.provisioner.StarProvisionServerMain
-
- StarProvisionService - Class in com.staros.provisioner
-
- StarProvisionService(StarProvisionServer) - Constructor for class com.staros.provisioner.StarProvisionService
-
- start(int) - Method in class com.staros.manager.StarManagerServer
-
- start(String, int, Executor) - Method in class com.staros.manager.StarManagerServer
-
- start() - Method in class com.staros.util.AbstractServer
-
- start() - Method in interface com.staros.util.Server
-
- start() - Method in class com.staros.worker.WorkerManager
-
- startBackgroundThreads() - Method in class com.staros.manager.StarManager
-
- stateTimedOut(long) - Method in class com.staros.replica.Replica
-
- stop() - Method in class com.staros.util.AbstractServer
-
- stop() - Method in interface com.staros.util.Server
-
- stop() - Method in class com.staros.worker.DefaultResourceManager
-
- stop() - Method in class com.staros.worker.DummyResourceManager
-
- stop() - Method in interface com.staros.worker.ResourceManager
-
- stop() - Method in class com.staros.worker.WorkerManager
-
- stopBackgroundThreads() - Method in class com.staros.manager.StarManager
-
- suffix - Variable in class com.staros.filestore.FilePath
-
- swapDelegation(FileStoreInfo) - Method in class com.staros.filestore.DelegatedFileStore
-