link start!
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.tridium.ndriver.comm;
|
||||
|
||||
import com.tridium.ndriver.datatypes.BCommConfig;
|
||||
import javax.baja.spy.SpyWriter;
|
||||
|
||||
public interface IComm {
|
||||
void resetStats();
|
||||
|
||||
void setDefaultListener(ICommListener iCommListener);
|
||||
|
||||
void spy(SpyWriter spyWriter) throws Exception;
|
||||
|
||||
void start() throws Exception;
|
||||
|
||||
void stop() throws Exception;
|
||||
|
||||
void verifySettings(BCommConfig bCommConfig) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.tridium.ndriver.comm;
|
||||
|
||||
public interface ICommFilter {
|
||||
boolean accept(NMessage nMessage);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.tridium.ndriver.comm;
|
||||
|
||||
public interface ICommListener {
|
||||
void receiveMessage(NMessage nMessage);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.tridium.ndriver.comm;
|
||||
|
||||
public interface IFragmentable {
|
||||
NMessage getFragmentAck();
|
||||
|
||||
Object getHash();
|
||||
|
||||
int getTimeout();
|
||||
|
||||
boolean isFinalFragment();
|
||||
|
||||
void merge(IFragmentable iFragmentable) throws Exception;
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.tridium.ndriver.comm;
|
||||
|
||||
import com.tridium.ndriver.datatypes.BCommConfig;
|
||||
import javax.baja.spy.SpyWriter;
|
||||
|
||||
public interface ILinkLayer {
|
||||
void resetStats();
|
||||
|
||||
void sendMessage(LinkMessage linkMessage) throws Exception;
|
||||
|
||||
void spy(SpyWriter spyWriter) throws Exception;
|
||||
|
||||
void start() throws Exception;
|
||||
|
||||
void stop();
|
||||
|
||||
void verifySettings(BCommConfig bCommConfig) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.tridium.ndriver.comm;
|
||||
|
||||
public interface IMessageFactory {
|
||||
NMessage makeMessage(LinkMessage linkMessage) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.tridium.ndriver.comm.tcp;
|
||||
|
||||
import com.tridium.ndriver.datatypes.BIpAddress;
|
||||
|
||||
public interface ITcpEventListener {
|
||||
void socketTerminated(BIpAddress bIpAddress, boolean z);
|
||||
}
|
||||
Reference in New Issue
Block a user