| ºü¸¥ Java Á÷·ÄÈ ºü¸¥ Java Serializations ÇÁ·ÎÁ§Æ®ÀÇ ¸ñÇ¥´Â ºñÇà Áß¿¡ ¹ÙÀÌÆ® Äڵ带 »ý¼ºÇÏ¿©º¸´Ù ºü¸¥ Á÷·Äȸ¦ °¡´ÉÇÏ°ÔÇÏ´Â °ÍÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
ºü¸¥ Java Á÷·ÄÈ ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Leonardo Mesquita
ºü¸¥ Java Á÷·ÄÈ Å±×
ºü¸¥ Java Á÷·ÄÈ ¼³¸í
ÇÁ·ÎÁ§Æ®ÀÇ Faster Java Serializations ¸ñÇ¥´Â Áï½Ã ¹ÙÀÌÆ® Äڵ带 »ý¼ºÇÏ¿© ´õ ºü¸¥ Á÷·Äȸ¦ °¡´ÉÇÏ°ÔÇÏ´Â °ÍÀÔ´Ï´Ù. ProjectÀÇ Faster Java Serializations ¸ñÇ¥´Â °´Ã¼¸¦ Á÷·ÄÈ ÇÒ ¶§ Áï½Ã ¹ÙÀÌÆ® Äڵ带 »ý¼º ÇÒ ¶§ ´õ ºü¸¥ Á÷·Äȸ¦ °¡´ÉÇÏ°ÔÇÏ´Â °ÍÀÔ´Ï´Ù. ¿ÀºêÁ§Æ®°¡ Á÷·ÄȵǸé Ŭ·¡½º°¡ °Ë»çµÇ°í Serializer ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϴ Ŭ·¡½º°¡ »ý¼ºµË´Ï´Ù. ÀÌ Å¬·¡½º´Â ÁÖ¾îÁø °´Ã¼ÀÇ Å¬·¡½ºÀÇ Çʵ带 Á÷·ÄÈÇϱâ À§ÇØ Àç´Ü»ç·Î ¸¸µé¾îÁ³½À´Ï´Ù. °´Ã¼¸¦ bytebuffer¿¡ Á÷·ÄÈÇÏ·Á¸é, Ŭ·¡½º °æ·Î¿¡ jserial.jar¸¦ Ãß°¡ÇÏ°í SerializationContext context = »õ·Î¿î serializationContext¸¦ »ç¿ëÇϽʽÿÀ. (); bytebuffer buffer = bytebuffer.Allocate (1024); context.Serialize (myObject, buffer); ... myObject Á÷·ÄÈ. Á÷·ÄȵDZâ À§Çؼ´Â °´Ã¼°¡ java.io.SerializableTo¸¦ ±¸ÇöÇؾßÇÕ´Ï´Ù. °´Ã¼¸¦ À籸¼ºÇؾßÇÕ´Ï´Ù. DeserializationContext Ŭ·¡½º¸¦ »ç¿ëÇÏ´Â °ÍÀº ´ÙÀ½°ú °°½À´Ï´Ù. ... DeserializationContext ÄÁÅؽºÆ® = »õ DeserializationContext (); MyObject ReconstructedObject = (MyObject) Context.Deserialize (¹öÆÛ); ... ReconstructedObject¸¦ ÀнÀ´Ï´Ù. ±× µ¿¾È ByteBufferÀÇ µ¥ÀÌÅÍ´Â Java NIO¸¦ »ç¿ëÇÏ¿© ÆÄÀÏ¿¡ ½±°Ô ÆÄÀÏ¿¡ ±â·ÏµÇ°Å³ª ³×Æ®¿öÅ©¸¦ ÅëÇØ Àü¼ÛÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ÇÁ·ÎÁ§Æ®´Â javassist-3.3ÀÇ ¼öÁ¤ µÈ ¹öÀüÀ» »ç¿ëÇÏ¿© ÄÚµå »ý¼ºÀ» ¼öÇàÇÕ´Ï´Ù. in java.io.Externalizable ¡¤ WriteObject, ReadObject, WriteReplace, ReadResolve ¶Ç´Â ±âŸ Ư¼ö Á÷·ÄÈ ¹æ¹ýÀ» ÅëÇÑ »ç¿ëÀÚ Á¤ÀÇ Á÷·ÄÈ. ¡¤ ³»ºÎ / ·ÎÄà / À͸í Ŭ·¡½º Á÷·ÄÈ. ¡¤ Á¤ÀûÀÌ ¾Æ´Ñ ÃÖÁ¾ ÇʵåÀÇ Á÷·ÄÈ´Â ÀÌ·¯ÇÑ Çʵ尡ÀÖ´Â °´Ã¼¸¦ Á÷·ÄÈ ÇÒ ¶§ ¿À·ù°¡ ¹ß»ýÇÏÁö ¾Ê½À´Ï´Ù.
ºü¸¥ Java Á÷·ÄÈ °ü·Ã ¼ÒÇÁÆ®¿þ¾î