com.sun.nio.sctp.ShutdownNotification Java Examples

The following examples show how to use com.sun.nio.sctp.ShutdownNotification. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AssociationHandler.java    From sctp with GNU Affero General Public License v3.0 6 votes vote down vote up
@Override
public HandlerResult handleNotification(ShutdownNotification not, AssociationImpl associtaion) {
	if (logger.isInfoEnabled()) {
		logger.info(String.format("Association=%s SHUTDOWN", associtaion.getName()));
	}

	// TODO assign Thread's ?

	try {
		associtaion.markAssociationDown();
		associtaion.getAssociationListener().onCommunicationShutdown(associtaion);
	} catch (Exception e) {
		logger.error(String.format("Exception while calling onCommunicationShutdown on AssociationListener for Association=%s", associtaion.getName()), e);
	}

	return HandlerResult.RETURN;
}
 
Example #2
Source File: Branch.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());

    fail("Shutdown should not be received");

    return HandlerResult.RETURN;
}
 
Example #3
Source File: ReceiveIntoDirect.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #4
Source File: ReceiveIntoDirect.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #5
Source File: Shutdown.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, BooleanWrapper bool)
{
    bool.booleanValue(true);
    debug(sn.toString());
    return HandlerResult.RETURN;
}
 
Example #6
Source File: Branch.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());

    fail("Shutdown should not be received");

    return HandlerResult.RETURN;
}
 
Example #7
Source File: Receive.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #8
Source File: Bind.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, Object unused)
{
    debug("ShutdownNotification: " +  sn);
    return HandlerResult.CONTINUE;
}
 
Example #9
Source File: Branch.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());

    fail("Shutdown should not be received");

    return HandlerResult.RETURN;
}
 
Example #10
Source File: Shutdown.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, BooleanWrapper bool)
{
    bool.booleanValue(true);
    debug(sn.toString());
    return HandlerResult.RETURN;
}
 
Example #11
Source File: Receive.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #12
Source File: CommUp.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.RETURN;
}
 
Example #13
Source File: Shutdown.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, BooleanWrapper bool)
{
    bool.booleanValue(true);
    debug(sn.toString());
    return HandlerResult.RETURN;
}
 
Example #14
Source File: Receive.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #15
Source File: CommUp.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.RETURN;
}
 
Example #16
Source File: Bind.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, Object unused)
{
    debug("ShutdownNotification: " +  sn);
    return HandlerResult.CONTINUE;
}
 
Example #17
Source File: Bind.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, Object unused)
{
    debug("ShutdownNotification: " +  sn);
    return HandlerResult.CONTINUE;
}
 
Example #18
Source File: Shutdown.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, BooleanWrapper bool)
{
    bool.booleanValue(true);
    debug(sn.toString());
    return HandlerResult.RETURN;
}
 
Example #19
Source File: Receive.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #20
Source File: CommUp.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.RETURN;
}
 
Example #21
Source File: Bind.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, Object unused)
{
    debug("ShutdownNotification: " +  sn);
    return HandlerResult.CONTINUE;
}
 
Example #22
Source File: Branch.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());

    fail("Shutdown should not be received");

    return HandlerResult.RETURN;
}
 
Example #23
Source File: Shutdown.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, BooleanWrapper bool)
{
    bool.booleanValue(true);
    debug(sn.toString());
    return HandlerResult.RETURN;
}
 
Example #24
Source File: Receive.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #25
Source File: ReceiveIntoDirect.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}
 
Example #26
Source File: CommUp.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.RETURN;
}
 
Example #27
Source File: Bind.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, Object unused)
{
    debug("ShutdownNotification: " +  sn);
    return HandlerResult.CONTINUE;
}
 
Example #28
Source File: Branch.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());

    fail("Shutdown should not be received");

    return HandlerResult.RETURN;
}
 
Example #29
Source File: Shutdown.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification sn, BooleanWrapper bool)
{
    bool.booleanValue(true);
    debug(sn.toString());
    return HandlerResult.RETURN;
}
 
Example #30
Source File: Receive.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public HandlerResult handleNotification(
        ShutdownNotification notification, Object attachment) {
    debug("ShutdownNotification");
    debug("  Association: " + notification.association());
    return HandlerResult.CONTINUE;
}