org.apache.accumulo.server.tabletserver.log
Class RemoteLogger
java.lang.Object
org.apache.accumulo.server.tabletserver.log.RemoteLogger
public class RemoteLogger
- extends Object
Wrap a connection to a logger.
Method Summary |
void |
close()
|
void |
defineTablet(int seq,
int tid,
KeyExtent tablet)
|
boolean |
equals(Object obj)
|
List<String> |
getClosedLogs()
|
String |
getFileName()
|
String |
getLogger()
|
int |
hashCode()
|
void |
log(int seq,
int tid,
Mutation mutation)
|
void |
logManyTablets(List<TabletMutations> mutations)
|
void |
minorCompactionFinished(int seq,
int tid,
String fqfn)
|
void |
minorCompactionStarted(int seq,
int tid,
String fqfn)
|
void |
removeFile(List<String> files)
|
LogCopyInfo |
startCopy(String name,
String fullyQualifiedFileName,
boolean sort)
|
String |
toString()
|
RemoteLogger
public RemoteLogger(String address,
UUID tserverUUID)
throws ThriftSecurityException,
LoggerClosedException,
org.apache.thrift.TException,
IOException
- Throws:
ThriftSecurityException
LoggerClosedException
org.apache.thrift.TException
IOException
RemoteLogger
public RemoteLogger(String address)
throws IOException
- Throws:
IOException
RemoteLogger
public RemoteLogger(String logger,
String filename,
UUID tserverUUID)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getLogger
public String getLogger()
getFileName
public String getFileName()
close
public void close()
throws NoSuchLogIDException,
LoggerClosedException,
org.apache.thrift.TException
- Throws:
NoSuchLogIDException
LoggerClosedException
org.apache.thrift.TException
defineTablet
public void defineTablet(int seq,
int tid,
KeyExtent tablet)
throws NoSuchLogIDException,
LoggerClosedException,
org.apache.thrift.TException
- Throws:
NoSuchLogIDException
LoggerClosedException
org.apache.thrift.TException
log
public void log(int seq,
int tid,
Mutation mutation)
throws NoSuchLogIDException,
LoggerClosedException,
org.apache.thrift.TException
- Throws:
NoSuchLogIDException
LoggerClosedException
org.apache.thrift.TException
logManyTablets
public void logManyTablets(List<TabletMutations> mutations)
throws NoSuchLogIDException,
LoggerClosedException,
org.apache.thrift.TException
- Throws:
NoSuchLogIDException
LoggerClosedException
org.apache.thrift.TException
minorCompactionFinished
public void minorCompactionFinished(int seq,
int tid,
String fqfn)
throws NoSuchLogIDException,
LoggerClosedException,
org.apache.thrift.TException
- Throws:
NoSuchLogIDException
LoggerClosedException
org.apache.thrift.TException
minorCompactionStarted
public void minorCompactionStarted(int seq,
int tid,
String fqfn)
throws NoSuchLogIDException,
LoggerClosedException,
org.apache.thrift.TException
- Throws:
NoSuchLogIDException
LoggerClosedException
org.apache.thrift.TException
startCopy
public LogCopyInfo startCopy(String name,
String fullyQualifiedFileName,
boolean sort)
throws ThriftSecurityException,
org.apache.thrift.TException
- Throws:
ThriftSecurityException
org.apache.thrift.TException
getClosedLogs
public List<String> getClosedLogs()
throws ThriftSecurityException,
org.apache.thrift.TException
- Throws:
ThriftSecurityException
org.apache.thrift.TException
removeFile
public void removeFile(List<String> files)
throws ThriftSecurityException,
org.apache.thrift.TException
- Throws:
ThriftSecurityException
org.apache.thrift.TException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.