public class Arbiter
extends java.lang.Object
The Arbiter node participates in elections and may acknowledge transaction commits.
The Arbiter state is as follows: UNKNOWN [ UNKNOWN | REPLICA]+ DETACHED
| Constructor and Description |
|---|
Arbiter(ArbiterConfig arbiterConfig)
An Arbiter used in elections and transaction acknowledgments.
|
| Modifier and Type | Method and Description |
|---|---|
ArbiterMutableConfig |
getArbiterMutableConfig()
Returns the Arbiter mutable attributes.
|
ReplicatedEnvironment.State |
getState()
Gets the Arbiter state.
|
ArbiterStats |
getStats(StatsConfig config)
Gets the Arbiter statistics.
|
void |
setArbiterMutableConfig(ArbiterMutableConfig config)
Sets the Arbiter mutable attributes.
|
void |
shutdown()
Shutdown the Arbiter.
|
public Arbiter(ArbiterConfig arbiterConfig) throws EnvironmentNotFoundException, EnvironmentLockedException, DatabaseException, java.lang.IllegalArgumentException
arbiterConfig - Configuration parameters for the Arbiter.EnvironmentNotFoundException - if the environment does not existEnvironmentLockedException - when an environment cannot be opened
because another Arbiter has the environment open.DatabaseException - problem establishing connection to the master.java.lang.IllegalArgumentException - if an invalid parameter is specified,
for example, an invalid ArbiterConfig parameter.public ArbiterMutableConfig getArbiterMutableConfig()
public void setArbiterMutableConfig(ArbiterMutableConfig config) throws DatabaseException
config - Arbiter attributes.DatabaseExceptionpublic ReplicatedEnvironment.State getState()
public ArbiterStats getStats(StatsConfig config) throws DatabaseException
config - The general statistics attributes. If null, default
attributes are used.DatabaseExceptionpublic void shutdown()
throws DatabaseException
DatabaseExceptionCopyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.