addChannelFactory
public void addChannelFactory(String channelName,
ChannelFactory cf)
throws IOException
closeChannel
protected void closeChannel(Channel channel)
throws IOException
containsChannelFactory
public boolean containsChannelFactory(String channelName)
freeChannel
protected void freeChannel(Channel channel)
isConnected
public boolean isConnected()
onGlobalRequest
protected void onGlobalRequest(String requestName,
boolean wantReply,
byte[] requestData)
throws IOException
requestName
- wantReply
- requestData
-
onServiceInit
protected void onServiceInit(int startMode)
throws IOException
- onServiceInit in interface Service
openChannel
public boolean openChannel(Channel channel)
throws IOException
removeChannelFactory
public void removeChannelFactory(String channelName)
sendChannelData
public void sendChannelData(Channel channel,
byte[] data)
throws IOException
sendChannelEOF
public void sendChannelEOF(Channel channel)
throws IOException
sendChannelExtData
public void sendChannelExtData(Channel channel,
int extendedType,
byte[] data)
throws IOException
channel
- extendedType
- data
-
sendChannelFailure
protected void sendChannelFailure(Channel channel)
throws IOException
sendChannelOpenConfirmation
protected void sendChannelOpenConfirmation(Channel channel)
throws IOException
sendChannelOpenFailure
protected void sendChannelOpenFailure(long remoteChannelId,
long reasonCode,
String additionalInfo,
String languageTag)
throws IOException
remoteChannelId
- reasonCode
- additionalInfo
- languageTag
-
sendChannelRequest
public boolean sendChannelRequest(Channel channel,
String requestType,
boolean wantReply,
byte[] requestData)
throws IOException
channel
- requestType
- wantReply
- requestData
-
sendChannelRequestFailure
public void sendChannelRequestFailure(Channel channel)
throws IOException
sendChannelRequestSuccess
public void sendChannelRequestSuccess(Channel channel)
throws IOException
sendChannelWindowAdjust
public void sendChannelWindowAdjust(Channel channel,
long bytesToAdd)
throws IOException
sendGlobalRequest
public byte[] sendGlobalRequest(String requestName,
boolean wantReply,
byte[] requestData)
throws IOException
requestName
- wantReply
- requestData
-
sendGlobalRequestFailure
protected void sendGlobalRequestFailure()
throws IOException
sendGlobalRequestSuccess
protected void sendGlobalRequestSuccess(byte[] requestData)
throws IOException