Skip to content

Commit 8f4be33

Browse files
committed
Fix issue with missing files
1 parent 40c4565 commit 8f4be33

File tree

9 files changed

+411
-0
lines changed

9 files changed

+411
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Exclude target from main
2+
!target/
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
package com.github.kklisura.cdt.protocol.events.target;
2+
3+
/*-
4+
* #%L
5+
* cdt-java-client
6+
* %%
7+
* Copyright (C) 2018 Kenan Klisura
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
import com.github.kklisura.cdt.protocol.types.target.TargetInfo;
24+
25+
/** Issued when attached to target because of auto-attach or <code>attachToTarget</code> command. */
26+
public class AttachedToTarget {
27+
28+
private String sessionId;
29+
30+
private TargetInfo targetInfo;
31+
32+
private Boolean waitingForDebugger;
33+
34+
/** Identifier assigned to the session used to send/receive messages. */
35+
public String getSessionId() {
36+
return sessionId;
37+
}
38+
39+
/** Identifier assigned to the session used to send/receive messages. */
40+
public void setSessionId(String sessionId) {
41+
this.sessionId = sessionId;
42+
}
43+
44+
public TargetInfo getTargetInfo() {
45+
return targetInfo;
46+
}
47+
48+
public void setTargetInfo(TargetInfo targetInfo) {
49+
this.targetInfo = targetInfo;
50+
}
51+
52+
public Boolean getWaitingForDebugger() {
53+
return waitingForDebugger;
54+
}
55+
56+
public void setWaitingForDebugger(Boolean waitingForDebugger) {
57+
this.waitingForDebugger = waitingForDebugger;
58+
}
59+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
package com.github.kklisura.cdt.protocol.events.target;
2+
3+
/*-
4+
* #%L
5+
* cdt-java-client
6+
* %%
7+
* Copyright (C) 2018 Kenan Klisura
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
import com.github.kklisura.cdt.protocol.support.annotations.Optional;
24+
25+
/**
26+
* Issued when detached from target for any reason (including <code>detachFromTarget</code>
27+
* command). Can be issued multiple times per target if multiple sessions have been attached to it.
28+
*/
29+
public class DetachedFromTarget {
30+
31+
private String sessionId;
32+
33+
@Deprecated @Optional private String targetId;
34+
35+
/** Detached session identifier. */
36+
public String getSessionId() {
37+
return sessionId;
38+
}
39+
40+
/** Detached session identifier. */
41+
public void setSessionId(String sessionId) {
42+
this.sessionId = sessionId;
43+
}
44+
45+
/** Deprecated. */
46+
public String getTargetId() {
47+
return targetId;
48+
}
49+
50+
/** Deprecated. */
51+
public void setTargetId(String targetId) {
52+
this.targetId = targetId;
53+
}
54+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
package com.github.kklisura.cdt.protocol.events.target;
2+
3+
/*-
4+
* #%L
5+
* cdt-java-client
6+
* %%
7+
* Copyright (C) 2018 Kenan Klisura
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
import com.github.kklisura.cdt.protocol.support.annotations.Optional;
24+
25+
/**
26+
* Notifies about a new protocol message received from the session (as reported in <code>
27+
* attachedToTarget</code> event).
28+
*/
29+
public class ReceivedMessageFromTarget {
30+
31+
private String sessionId;
32+
33+
private String message;
34+
35+
@Deprecated @Optional private String targetId;
36+
37+
/** Identifier of a session which sends a message. */
38+
public String getSessionId() {
39+
return sessionId;
40+
}
41+
42+
/** Identifier of a session which sends a message. */
43+
public void setSessionId(String sessionId) {
44+
this.sessionId = sessionId;
45+
}
46+
47+
public String getMessage() {
48+
return message;
49+
}
50+
51+
public void setMessage(String message) {
52+
this.message = message;
53+
}
54+
55+
/** Deprecated. */
56+
public String getTargetId() {
57+
return targetId;
58+
}
59+
60+
/** Deprecated. */
61+
public void setTargetId(String targetId) {
62+
this.targetId = targetId;
63+
}
64+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package com.github.kklisura.cdt.protocol.events.target;
2+
3+
/*-
4+
* #%L
5+
* cdt-java-client
6+
* %%
7+
* Copyright (C) 2018 Kenan Klisura
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
import com.github.kklisura.cdt.protocol.types.target.TargetInfo;
24+
25+
/** Issued when a possible inspection target is created. */
26+
public class TargetCreated {
27+
28+
private TargetInfo targetInfo;
29+
30+
public TargetInfo getTargetInfo() {
31+
return targetInfo;
32+
}
33+
34+
public void setTargetInfo(TargetInfo targetInfo) {
35+
this.targetInfo = targetInfo;
36+
}
37+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.github.kklisura.cdt.protocol.events.target;
2+
3+
/*-
4+
* #%L
5+
* cdt-java-client
6+
* %%
7+
* Copyright (C) 2018 Kenan Klisura
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
/** Issued when a target is destroyed. */
24+
public class TargetDestroyed {
25+
26+
private String targetId;
27+
28+
public String getTargetId() {
29+
return targetId;
30+
}
31+
32+
public void setTargetId(String targetId) {
33+
this.targetId = targetId;
34+
}
35+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package com.github.kklisura.cdt.protocol.events.target;
2+
3+
/*-
4+
* #%L
5+
* cdt-java-client
6+
* %%
7+
* Copyright (C) 2018 Kenan Klisura
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
import com.github.kklisura.cdt.protocol.types.target.TargetInfo;
24+
25+
/**
26+
* Issued when some information about a target has changed. This only happens between <code>
27+
* targetCreated</code> and <code>targetDestroyed</code>.
28+
*/
29+
public class TargetInfoChanged {
30+
31+
private TargetInfo targetInfo;
32+
33+
public TargetInfo getTargetInfo() {
34+
return targetInfo;
35+
}
36+
37+
public void setTargetInfo(TargetInfo targetInfo) {
38+
this.targetInfo = targetInfo;
39+
}
40+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package com.github.kklisura.cdt.protocol.types.target;
2+
3+
/*-
4+
* #%L
5+
* cdt-java-client
6+
* %%
7+
* Copyright (C) 2018 Kenan Klisura
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
public class RemoteLocation {
24+
25+
private String host;
26+
27+
private Integer port;
28+
29+
public String getHost() {
30+
return host;
31+
}
32+
33+
public void setHost(String host) {
34+
this.host = host;
35+
}
36+
37+
public Integer getPort() {
38+
return port;
39+
}
40+
41+
public void setPort(Integer port) {
42+
this.port = port;
43+
}
44+
}

0 commit comments

Comments
 (0)