Package com.jalios.jstore.jsync
Class JSyncEvent
- java.lang.Object
-
- com.jalios.jstore.jsync.JSyncEvent
-
- Direct Known Subclasses:
DisjoinJSyncEvent
,JoinJSyncEvent
,RemoveReplicaJSyncEvent
,SuggestJoinJSyncEvent
,UpdateJSyncEvent
public abstract class JSyncEvent extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JSyncEvent(int direction, Message msg, java.lang.String url, int statusCode)
JSyncEvent(int direction, java.lang.String urid)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
getAction()
int
getDirection()
long
getDuration()
long
getEndTime()
java.util.Map<java.lang.String,java.lang.String>
getJSyncLoggerExtraInfo()
Message
getMessage()
long
getStartTime()
int
getStatusCode()
java.lang.String
getType()
java.lang.String
getUrid()
java.lang.String
getUrl()
boolean
isIn()
boolean
isInternal()
boolean
isOut()
java.lang.String
toString()
-
-
-
Field Detail
-
IN
public static int IN
-
OUT
public static int OUT
-
INTERNAL
public static int INTERNAL
-
direction
protected int direction
-
urid
protected java.lang.String urid
-
msg
protected Message msg
-
url
protected java.lang.String url
-
statusCode
protected int statusCode
-
endTime
protected long endTime
-
-
Constructor Detail
-
JSyncEvent
public JSyncEvent(int direction, java.lang.String urid)
-
JSyncEvent
public JSyncEvent(int direction, Message msg, java.lang.String url, int statusCode)
-
-
Method Detail
-
isOut
public boolean isOut()
-
isIn
public boolean isIn()
-
isInternal
public boolean isInternal()
-
getDirection
public int getDirection()
-
getMessage
public Message getMessage()
-
getStatusCode
public int getStatusCode()
-
getStartTime
public long getStartTime()
-
getEndTime
public long getEndTime()
-
getUrid
public java.lang.String getUrid()
-
getUrl
public java.lang.String getUrl()
-
getDuration
public long getDuration()
-
getType
public java.lang.String getType()
-
getJSyncLoggerExtraInfo
public java.util.Map<java.lang.String,java.lang.String> getJSyncLoggerExtraInfo()
-
getAction
public abstract java.lang.String getAction()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-