Edit C:\Users\Admin\.m2\repository\org\dspace\handle\6.2\net\handle\apps\tools\RecoverJDB.class
???? 0 U ? R ? R ? R ? R ? R ? ? ? ? ? ? ? ? 0 ? R ? 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? $ ? ? ? ) ? ? ) ? ? R ? ? ? ? 0 ? ? 0 ? ? ? 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? H ? G ? G ? ? ? ? ? ? ? ? ? ? R ? R ? ? hdlDBFile Ljava/io/File; naDBFile hdlBackupFile naBackupFile txnFile <init> I(Ljava/io/File;Ljava/io/File;Ljava/io/File;Ljava/io/File;Ljava/io/File;)V Code LineNumberTable LocalVariableTable this "Lnet/handle/apps/tools/RecoverJDB; Exceptions ? doRecovery ()V copyBuf [B hdlDB Lnet/handle/jdb/DBHash; naDB txnInput Ljava/io/InputStream; txn Lnet/handle/server/DBTxn; copyFile (Ljava/io/File;Ljava/io/File;)V source dest buf r I fin Ljava/io/FileInputStream; fout Ljava/io/FileOutputStream; printUsage main ([Ljava/lang/String;)V argv [Ljava/lang/String; hsDir haveHDLBackup Z haveNABackup in Ljava/io/BufferedReader; line Ljava/lang/String; recoverer SourceFile RecoverJDB.java \ f Y W V W Z W X W [ W ? ? ? Restoring backup databases... ? ? ? ? f ? ? p q ? ? Opening databases... net/handle/jdb/DBHash \ ? Restoring from transactions... java/io/BufferedInputStream java/io/FileInputStream \ ? \ ? ? ? ? ? ? java/lang/StringBuffer Restore txn: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? f java/lang/Exception *Error: Unknown action in transaction log: ? \ ? f java/io/FileOutputStream ?usage: java net.handle.apps.tools.RecoverJDB <server_directory> { f java/io/File directory: ? Server directory doesn't exist! handles.bak \ backup file: handles.jdb DB file: ?Warning: Handle backup file (handles.bak) doesn't exist; assuming all changes are in the dbtxns.log file and that we can safely delete the current database. nas.bak nas.jdb ?Warning: NA backup file (nas.bak) doesn't exist; assuming all changes are in the dbtxns.log file and that we can safely delete the current database. dbtxns.log 7Error: Transaction log file (dbtxns.log) doesn't exist! 5Welcome to the Handle Server database recovery tool. 4This tool should only be used if the handle database has somehow been corrupted. >WARNING: This program will attempt to restore the handles.jdb 9and nas.jdb files. If you would like to keep the current /contents of these files then BACK THEM UP NOW! 3Type the word "continue" and hit ENTER to continue java/io/BufferedReader java/io/InputStreamReader ? m \ ? ? ? CONTINUE Exiting... net/handle/apps/tools/RecoverJDB \ ] e f java/lang/Object java/io/IOException java/lang/System out Ljava/io/PrintStream; java/io/PrintStream println (Ljava/lang/String;)V flush exists ()Z delete (Ljava/io/File;II)V (Ljava/io/File;)V (Ljava/io/InputStream;)V net/handle/server/DBTxn readTxn 0(Ljava/io/InputStream;)Lnet/handle/server/DBTxn; err append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; toString ()Ljava/lang/String; getAction ()B getKey ()[B getValue setValue ([B[B)V deleteValue ([B)Z deleteAllRecords (I)Ljava/lang/StringBuffer; close read ([B)I write ([BII)V exit (I)V isDirectory #(Ljava/io/File;Ljava/lang/String;)V (Ljava/io/Reader;)V readLine java/lang/String trim toUpperCase equals (Ljava/lang/Object;)Z R U V W X W Y W Z W [ W \ ] ^ ? *? *+? *,? *-? *? *? ? _ ! "