protected void start() throws Exception { this.transportManagement.startAssociation(this.association.getName()); this.started = true; }
protected void setAssociation(Association association) { // Unset the listener to previous association if (this.association != null) { this.association.setAssociationListener(null); } this.association = association; this.associationName = this.association.getName(); // Set the listener for new association this.association.setAssociationListener(this); }
/** * SctpManagementJmxMBean Methods */ @Override public Association addAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName) throws Exception { this.wrappedSctpManagement.addAssociation(hostAddress, hostPort, peerAddress, peerPort, assocName); return null; }
boolean isConnected() { if (remoteClientAssociation == null) { return false; } return this.remoteClientAssociation.isConnected(); } }
@Override public Association addSctpServerAssociation(String peerAddress, int peerPort, String serverName, String assocName, String ipChannelType) throws Exception { this.wrappedSctpManagement.addServerAssociation(peerAddress, peerPort, serverName, assocName, IpChannelType.valueOf(ipChannelType.toUpperCase())); return null; }
@Override public Server addSctpServer(String serverName, String hostAddress, int port, String ipChannelType, boolean acceptAnonymousConnections, int maxConcurrentConnectionsCount, String extraHostAddresses) throws Exception { this.wrappedSctpManagement.addServer(serverName, hostAddress, port, IpChannelType.valueOf(ipChannelType.toUpperCase()), acceptAnonymousConnections, maxConcurrentConnectionsCount, (extraHostAddresses != null && !extraHostAddresses.isEmpty()) ? extraHostAddresses.split(",") : null); return null; }
@Override public Server addServer(String serverName, String hostAddress, int port, IpChannelType ipChannelType, boolean acceptAnonymousConnections, int maxConcurrentConnectionsCount, String[] extraHostAddresses) throws Exception { this.wrappedSctpManagement.addServer(serverName, hostAddress, port, ipChannelType, acceptAnonymousConnections, maxConcurrentConnectionsCount, extraHostAddresses); return null; }
@Override public Association addSctpAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName, String ipChannelType, String extraHostAddresses) throws Exception { this.wrappedSctpManagement.addAssociation(hostAddress, hostPort, peerAddress, peerPort, assocName, IpChannelType.valueOf(ipChannelType.toUpperCase()), (extraHostAddresses != null && !extraHostAddresses.isEmpty()) ? extraHostAddresses.split(",") : null); return null; }
@Override public Association addServerAssociation(String peerAddress, int peerPort, String serverName, String assocName) throws Exception { this.wrappedSctpManagement.addServerAssociation(peerAddress, peerPort, serverName, assocName); return null; } @Override
@Override public void modifyAssociation(String hostAddress, Integer hostPort, String peerAddress, Integer peerPort, String assocName, IpChannelType ipChannelType, String[] extraHostAddresses) throws Exception { this.wrappedSctpManagement.modifyAssociation(hostAddress, hostPort, peerAddress, peerPort, assocName, ipChannelType, extraHostAddresses); }
@Override public void modifyServer(String serverName, String hostAddress, Integer port, IpChannelType ipChannelType, Boolean acceptAnonymousConnections, Integer maxConcurrentConnectionsCount, String[] extraHostAddresses) throws Exception { this.wrappedSctpManagement.modifyServer(serverName, hostAddress, port, ipChannelType, acceptAnonymousConnections, maxConcurrentConnectionsCount, extraHostAddresses); }
@Override public void modifyServerAssociation(String assocName, String peerAddress, Integer peerPort, String serverName, IpChannelType ipChannelType) throws Exception { this.wrappedSctpManagement.modifyServerAssociation(assocName, peerAddress, peerPort, serverName, ipChannelType); }
@Override public void setMaxConcurrentConnectionsCount(int val) { this.wrappedServer.setMaxConcurrentConnectionsCount(val); } }
@Override public void setOptionSctpNodelay(Boolean val) { this.wrappedSctpManagement.setOptionSctpNodelay(val); }
protected void start() throws Exception { this.transportManagement.startAssociation(this.association.getName()); this.started = true; }
protected void setAssociation(Association association) { // Unset the listener to previous association if (this.association != null) { this.association.setAssociationListener(null); } this.association = association; this.associationName = this.association.getName(); // Set the listener for new association this.association.setAssociationListener(this); }
@Override public Server addServer(String serverName, String hostAddress, int port) throws Exception { this.wrappedSctpManagement.addServer(serverName, hostAddress, port); return null; }
@Override public Association addServerAssociation(String peerAddress, int peerPort, String serverName, String assocName, IpChannelType ipChannelType) throws Exception { this.wrappedSctpManagement.addServerAssociation(peerAddress, peerPort, serverName, assocName, ipChannelType); return null; }
@Override public Association addAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName, IpChannelType ipChannelType, String[] extraHostAddresses) throws Exception { this.wrappedSctpManagement.addAssociation(hostAddress, hostPort, peerAddress, peerPort, assocName, ipChannelType, extraHostAddresses); return null; }
@Override public Server addServer(String serverName, String hostAddress, int port, IpChannelType ipChannelType, String[] extraHostAddresses) throws Exception { this.wrappedSctpManagement.addServer(serverName, hostAddress, port, ipChannelType, extraHostAddresses); return null; }