[vlma-devel] commit: Serialize the objects properties, not their state. (Adrien Grand )

git version control git at videolan.org
Tue Apr 29 22:51:21 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Tue Apr 29 22:17:33 2008 +0200| [916ce461d90ea9ce68df850c32f5ba67a073a69e]

Serialize the objects properties, not their state.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=916ce461d90ea9ce68df850c32f5ba67a073a69e
---

 .../org/videolan/vlma/common/AbstractVlServer.java |   12 ++++++------
 .../videolan/vlma/common/programs/VlProgram.java   |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/core/src/main/java/org/videolan/vlma/common/AbstractVlServer.java b/core/src/main/java/org/videolan/vlma/common/AbstractVlServer.java
index deb9daf..591a543 100644
--- a/core/src/main/java/org/videolan/vlma/common/AbstractVlServer.java
+++ b/core/src/main/java/org/videolan/vlma/common/AbstractVlServer.java
@@ -56,17 +56,17 @@ public abstract class AbstractVlServer implements IVlServer, Serializable {
 
     protected Map<String, IVlAdapter> adapters;
 
-    protected boolean isUp;
+    protected transient boolean isUp;
 
-    protected double currentCpuLoad;
+    protected transient double currentCpuLoad;
 
-    protected long currentTrafficIn;
+    protected transient long currentTrafficIn;
 
-    protected long currentTrafficOut;
+    protected transient long currentTrafficOut;
 
-    protected double currentVlcCpu;
+    protected transient double currentVlcCpu;
 
-    protected double currentVlcMem;
+    protected transient double currentVlcMem;
 
     public boolean isUp() {
         return isUp;
diff --git a/core/src/main/java/org/videolan/vlma/common/programs/VlProgram.java b/core/src/main/java/org/videolan/vlma/common/programs/VlProgram.java
index 9b042e6..704ddb4 100644
--- a/core/src/main/java/org/videolan/vlma/common/programs/VlProgram.java
+++ b/core/src/main/java/org/videolan/vlma/common/programs/VlProgram.java
@@ -48,7 +48,7 @@ public class VlProgram implements IVlProgram, Serializable {
 
     private String sapGroup;
 
-    private boolean broadcastState;
+    private transient boolean broadcastState;
 
     /**
      * Gets the SAP group.



More information about the vlma-devel mailing list