public class DeadServer extends Object implements Set<ServerName>
Constructor and Description |
---|
DeadServer() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ServerName e) |
boolean |
addAll(Collection<? extends ServerName> c) |
boolean |
areDeadServersInProgress()
Checks if there are currently any dead servers being processed by the
master.
|
boolean |
cleanPreviousInstance(ServerName newServerName)
A dead server that comes back alive has a different start code.
|
void |
clear() |
Set<ServerName> |
clone() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
void |
finish(ServerName e) |
int |
hashCode() |
boolean |
isDeadServer(String serverName) |
boolean |
isEmpty() |
Iterator<ServerName> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
public boolean isDeadServer(String serverName)
serverName
- Server namepublic boolean cleanPreviousInstance(ServerName newServerName)
newServerName
- Servername as either host:port
or
host,port,startcode
.public boolean areDeadServersInProgress()
public Set<ServerName> clone()
public boolean add(ServerName e)
add
in interface Collection<ServerName>
add
in interface Set<ServerName>
public void finish(ServerName e)
public int size()
size
in interface Collection<ServerName>
size
in interface Set<ServerName>
public boolean isEmpty()
isEmpty
in interface Collection<ServerName>
isEmpty
in interface Set<ServerName>
public boolean contains(Object o)
contains
in interface Collection<ServerName>
contains
in interface Set<ServerName>
public Iterator<ServerName> iterator()
iterator
in interface Iterable<ServerName>
iterator
in interface Collection<ServerName>
iterator
in interface Set<ServerName>
public Object[] toArray()
toArray
in interface Collection<ServerName>
toArray
in interface Set<ServerName>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<ServerName>
toArray
in interface Set<ServerName>
public boolean remove(Object o)
remove
in interface Collection<ServerName>
remove
in interface Set<ServerName>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<ServerName>
containsAll
in interface Set<ServerName>
public boolean addAll(Collection<? extends ServerName> c)
addAll
in interface Collection<ServerName>
addAll
in interface Set<ServerName>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<ServerName>
retainAll
in interface Set<ServerName>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<ServerName>
removeAll
in interface Set<ServerName>
public void clear()
clear
in interface Collection<ServerName>
clear
in interface Set<ServerName>
public boolean equals(Object o)
equals
in interface Collection<ServerName>
equals
in interface Set<ServerName>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<ServerName>
hashCode
in interface Set<ServerName>
hashCode
in class Object
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.