Package me.ahoo.cosid.machine
Class MachineIdLostException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.ahoo.cosid.CosIdException
me.ahoo.cosid.machine.MachineIdLostException
- All Implemented Interfaces:
Serializable
Exception thrown when a machine ID is lost.
Indicates that a machine ID that was previously allocated can no longer be found in the distributed store.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMachineIdLostException(String namespace, InstanceId instanceId, @Nullable MachineState machineState) Creates a new exception. -
Method Summary
Modifier and TypeMethodDescriptionGets the instance ID.Gets the machine state.Gets the namespace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MachineIdLostException
public MachineIdLostException(String namespace, InstanceId instanceId, @Nullable MachineState machineState) Creates a new exception.- Parameters:
namespace- the namespaceinstanceId- the instance IDmachineState- the machine state (may be null)
-
-
Method Details
-
getNamespace
Gets the namespace.- Returns:
- the namespace
-
getInstanceId
Gets the instance ID.- Returns:
- the instance ID
-
getMachineState
Gets the machine state.- Returns:
- the machine state
-