org.apache.accumulo.server.tabletserver.log
Class RemoteLogger

java.lang.Object
  extended by org.apache.accumulo.server.tabletserver.log.RemoteLogger

public class RemoteLogger
extends java.lang.Object

Wrap a connection to a logger.


Constructor Summary
RemoteLogger(java.lang.String address)
           
RemoteLogger(java.lang.String logger, java.lang.String filename, java.util.UUID tserverUUID)
           
RemoteLogger(java.lang.String address, java.util.UUID tserverUUID)
           
 
Method Summary
 void close()
           
 void defineTablet(int seq, int tid, KeyExtent tablet)
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getClosedLogs()
           
 java.lang.String getFileName()
           
 java.lang.String getLogger()
           
 int hashCode()
           
 void log(int seq, int tid, Mutation mutation)
           
 void logManyTablets(java.util.List<TabletMutations> mutations)
           
 void minorCompactionFinished(int seq, int tid, java.lang.String fqfn)
           
 void minorCompactionStarted(int seq, int tid, java.lang.String fqfn)
           
 void removeFile(java.util.List<java.lang.String> files)
           
 long startCopy(java.lang.String name, java.lang.String fullyQualifiedFileName, boolean sort)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteLogger

public RemoteLogger(java.lang.String address,
                    java.util.UUID tserverUUID)
             throws ThriftSecurityException,
                    org.apache.thrift.TException,
                    java.io.IOException
Throws:
ThriftSecurityException
org.apache.thrift.TException
java.io.IOException

RemoteLogger

public RemoteLogger(java.lang.String address)
             throws java.io.IOException
Throws:
java.io.IOException

RemoteLogger

public RemoteLogger(java.lang.String logger,
                    java.lang.String filename,
                    java.util.UUID tserverUUID)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLogger

public java.lang.String getLogger()

getFileName

public java.lang.String getFileName()

close

public void close()
           throws NoSuchLogIDException,
                  org.apache.thrift.TException
Throws:
NoSuchLogIDException
org.apache.thrift.TException

defineTablet

public void defineTablet(int seq,
                         int tid,
                         KeyExtent tablet)
                  throws NoSuchLogIDException,
                         org.apache.thrift.TException
Throws:
NoSuchLogIDException
org.apache.thrift.TException

log

public void log(int seq,
                int tid,
                Mutation mutation)
         throws NoSuchLogIDException,
                org.apache.thrift.TException
Throws:
NoSuchLogIDException
org.apache.thrift.TException

logManyTablets

public void logManyTablets(java.util.List<TabletMutations> mutations)
                    throws NoSuchLogIDException,
                           org.apache.thrift.TException
Throws:
NoSuchLogIDException
org.apache.thrift.TException

minorCompactionFinished

public void minorCompactionFinished(int seq,
                                    int tid,
                                    java.lang.String fqfn)
                             throws NoSuchLogIDException,
                                    org.apache.thrift.TException
Throws:
NoSuchLogIDException
org.apache.thrift.TException

minorCompactionStarted

public void minorCompactionStarted(int seq,
                                   int tid,
                                   java.lang.String fqfn)
                            throws NoSuchLogIDException,
                                   org.apache.thrift.TException
Throws:
NoSuchLogIDException
org.apache.thrift.TException

startCopy

public long startCopy(java.lang.String name,
                      java.lang.String fullyQualifiedFileName,
                      boolean sort)
               throws ThriftSecurityException,
                      org.apache.thrift.TException
Throws:
ThriftSecurityException
org.apache.thrift.TException

getClosedLogs

public java.util.List<java.lang.String> getClosedLogs()
                                               throws ThriftSecurityException,
                                                      org.apache.thrift.TException
Throws:
ThriftSecurityException
org.apache.thrift.TException

removeFile

public void removeFile(java.util.List<java.lang.String> files)
                throws ThriftSecurityException,
                       org.apache.thrift.TException
Throws:
ThriftSecurityException
org.apache.thrift.TException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.